Skip to content

mdhrn/shapeDetection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Real-Time Shape Detection with OpenCV

This project is a Python-based real-time shape detection tool using OpenCV. It uses contour analysis, Canny edge detection, and morphological operations to identify basic geometric shapes like triangles, rectangles, circles, and octagons from webcam input.

Features

  • Live video capture from webcam or IP camera
  • Adjustable edge detection thresholds via trackbars
  • Automatic shape detection (Triangle, Rectangle, Circle, Octagon)
  • Displays contour area, number of vertices, and shape classification
  • Real-time FPS counter for performance monitoring
  • Modular preprocessing functions for extensibility

Requirements

  • Python 3.x
  • OpenCV
  • NumPy

Documentations

image image image image

Install the dependencies using pip:

pip install opencv-python numpy

About

Shape detection program for Image Processing final project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published