Skip to content

KnowledgePending/Object-Removal-using-Image-Processing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Object Removal using Image Processing

✂️⚽🖼️ Object Removal without Machine Learning


You can see the code running with more examples at the colab link below

Prerequisites

pip3 install opencv-contrib-python numpy

Algorithm:

  1. Crop image to location of the white ball.
  2. Detect Ball within cropped image using Circle Hough and get its dimensions.
  3. Convert cropped coordinates to lie within the full image.
  4. Get a Sample area of the image to cover the hole.
  5. Convert sample to HSV to measure Standard deviation.
  6. Check if sample is valid based on Standard deviation and whether it lies within the image.
  7. If sample is valid, blend sample in with background using inpainting.
  8. If not valid, use inpainting to fill in hole.
  9. Display before and after images.

Releases

No releases published

Packages

No packages published

Languages