Skip to content

nithishdasariraju/Image-Processing-Application-Python-OpenCv-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python All-in-Focus Imaging

Introduction

Image processing Application created by Python (OpenCV Python, NumPy and Tkinter).

Pipeline

  1. Select the directory containing PNG pictures for processing images with Image Processing.
  2. Load this image and the following image.
  3. Verify whether an image is grayscale or RGB.
  4. Determine each image's gradient in the x and y directions.
  5. Determine the gradient in each pixel of the two photos.
  6. Determine how each pixel's gradient differs from the image.
  7. Make a 3x3 filter matrix that is all ones.
  8. Convolution filter using an array and filter matrix from 6
  9. 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.

Setup

First install the dependencies (required packages) using following command:

pip3 install -r requirements.txt

Then run main .py script using command:

python all_in_focus.py

Example result

Input data:

1st image 2nd image 3rd image 4th image
1st image 2nd image 3rd image 4th image

Output data:

About

Built a Python image processing program with the OpenCV package. Put into practice features like color editing, edge recognition, and picture filtering. Created an easy-to-use Tkinter interface for the input and output of images. Used a variety of computer vision techniques to improve and alter pictures.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages