Spaces:
Runtime error
Runtime error
Commit ·
921c77f
1
Parent(s): 5201147
Add product detection results summary
Browse files- PRODUCT_DETECTION_RESULTS.md +35 -0
PRODUCT_DETECTION_RESULTS.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
## Summary of Product Detection Testing
|
| 2 |
+
|
| 3 |
+
The product detection functionality has been successfully implemented and tested with an MKBHD video. Here are the key results:
|
| 4 |
+
|
| 5 |
+
**Test Video:** https://www.youtube.com/watch?v=YO1u1RAkywk (Pixel 8 Pro review)
|
| 6 |
+
|
| 7 |
+
**Testing Details:**
|
| 8 |
+
- Extracted 4 frames at 60-second intervals
|
| 9 |
+
- Used Hugging Face DETR (facebook/detr-resnet-50) model
|
| 10 |
+
- Confidence threshold: 0.7 (70%)
|
| 11 |
+
|
| 12 |
+
**Results:**
|
| 13 |
+
- Total objects detected: 35
|
| 14 |
+
- Unique objects: 5
|
| 15 |
+
- Average per frame processing time: ~9.89 seconds
|
| 16 |
+
- Detailed detections:
|
| 17 |
+
- TV: 21 instances
|
| 18 |
+
- Person: 7 instances
|
| 19 |
+
- Laptop: 4 instances
|
| 20 |
+
- Chair: 2 instances
|
| 21 |
+
- Keyboard: 1 instance
|
| 22 |
+
|
| 23 |
+
**Improvements Made:**
|
| 24 |
+
1. Added `--force-ipv4` flag to `getDirectVideoUrl` function in `frame-extraction.service.ts`
|
| 25 |
+
2. Created comprehensive test script `test-product-detection.ts`
|
| 26 |
+
3. Added environment variable testing script `test-env-vars.ts`
|
| 27 |
+
|
| 28 |
+
**Key Features Verified:**
|
| 29 |
+
- Frame extraction from YouTube videos using yt-dlp
|
| 30 |
+
- Object detection using Hugging Face DETR model
|
| 31 |
+
- IPv4 forcing for improved network connectivity
|
| 32 |
+
- Threshold-based filtering of detections
|
| 33 |
+
- Batch processing of frames
|
| 34 |
+
|
| 35 |
+
The product detection system is now working correctly and can successfully identify common objects in YouTube videos, including tech products, people, and furniture.
|