Skip to content

A Python tool using OpenCV to detect and draw contours and centers of objects in an image. It allows real-time parameter adjustments for kernel size, HSV thresholds, and dilation/erosion iterations through interactive trackbars.

Notifications You must be signed in to change notification settings

ssloth1/contour-and-shadow-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

Contour & Shadow Detection

Description

A Python tool using OpenCV to detect and draw contours and centers of objects in an image. It allows real-time parameter adjustments for kernel size, HSV thresholds, and dilation/erosion iterations through interactive trackbars.

Features

  • Real-time image processing with adjustable parameters
  • Detects and draws contours and their centers
  • Uses HSV color space for better thresholding
  • Applies Gaussian blur and morphological transformations

Before and After

Original Image

Original Image

Processed Image

Processed Image

About

A Python tool using OpenCV to detect and draw contours and centers of objects in an image. It allows real-time parameter adjustments for kernel size, HSV thresholds, and dilation/erosion iterations through interactive trackbars.

Topics

Resources

Stars

Watchers

Forks

Languages