Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.16 KB

File metadata and controls

31 lines (21 loc) · 1.16 KB

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