Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,12 +1,25 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
+
hape Detection App A computer vision application that automatically detects and classifies geometric shapes in images using OpenCV and Gradio. Features
|
| 2 |
+
|
| 3 |
+
Automatic Shape Detection: Identifies triangles, squares, rectangles, and circles Real-time Processing: Instant results when you upload an image Visual Feedback: Draws contours and labels on detected shapes Detailed Analysis: Provides shape count, vertices, area, and position information User-friendly Interface: Clean and intuitive Gradio web interface
|
| 4 |
+
|
| 5 |
+
How it Works
|
| 6 |
+
|
| 7 |
+
Image Processing: Converts uploaded image to grayscale and applies Gaussian blur Edge Detection: Uses Canny edge detection to find shape boundaries Contour Analysis: Finds and analyzes contours in the image Shape Classification: Determines shape type based on number of vertices:
|
| 8 |
+
|
| 9 |
+
3 vertices → Triangle 4 vertices → Square (if ratio ≈ 1) or Rectangle
|
| 10 |
+
|
| 11 |
+
6 vertices → Circle
|
| 12 |
+
|
| 13 |
+
Usage
|
| 14 |
+
|
| 15 |
+
Upload an image containing geometric shapes The app will automatically process and detect shapes View the annotated result with detected shapes highlighted Check the summary for detailed information about each detected shape
|
| 16 |
+
|
| 17 |
+
Technical Details
|
| 18 |
+
|
| 19 |
+
Minimum Shape Size: 500 pixels area (filters out noise) Edge Detection: Canny algorithm with thresholds 50-150 Approximation: Contour approximation with 2% epsilon Square Detection: Width/height ratio between 0.95-1.05
|
| 20 |
+
|
| 21 |
+
Requirements
|
| 22 |
+
|
| 23 |
+
Python 3.8+ OpenCV Gradio NumPy Pillow
|
| 24 |
|
| 25 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|