Image processing Application created by Python (OpenCV Python, NumPy and Tkinter).
- Select the directory containing PNG pictures for processing images with Image Processing.
- Load this image and the following image.
- Verify whether an image is grayscale or RGB.
- Determine each image's gradient in the x and y directions.
- Determine the gradient in each pixel of the two photos.
- Determine how each pixel's gradient differs from the image.
- Make a 3x3 filter matrix that is all ones.
- Convolution filter using an array and filter matrix from 6
- Select the better pixel from each image and save the outcome.
The image in the one that follows will be the result of combining images from the previous one if there are more than two files. Save the final output.png file with the combined photos.
First install the dependencies (required packages) using following command:
pip3 install -r requirements.txtThen run main .py script using command:
python all_in_focus.py| 1st image | 2nd image | 3rd image | 4th image |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |



