Skip to content

azarankin/triangle_detector.Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Triangle Shape Detector from Live Camera

This project uses OpenCV to detect a specific shape (a triangle) shown on a white paper in front of a live webcam.

🧠 Main Features:

  • Uses cv2.matchShapes() to detect contours similar to a triangle.
  • Adaptive thresholding + contour filtering based on size.
  • Filters small noisy shapes.
  • Designed for real-world use, where lighting and background are imperfect.

πŸ”§ Input:

  • A printed triangle shown on white paper.
  • Live camera feed.

βœ… Output:

  • Green contour drawn on matching shapes in live video.
  • Detection threshold and size filtering configurable.

πŸ“· Detection Example:

Detection

πŸ“ Template Used:

Template

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published