๐Ÿ›’ Retail Shelf Stock Monitor

CLIP gates empty shelves โ†’ Grounding DINO detects products โ†’ post-processing gives stock level + misplaced flag

โšก CPU-friendly lazy loading
๐Ÿ–ผ๏ธ Image / ๐Ÿ“ธ Webcam / ๐ŸŽฌ Video
๐Ÿ“Š Stock + misplaced metrics
1 20

1. CLIP (zero-shot classification) โ€“ decides if the shelf is empty.
2. Grounding DINO โ€“ detects grocery items with bounding boxes.
3. Post-processing โ€“ filters false positives, deduplicates, counts products, and flags misplaced items via spatial outlier detection.
4. Output โ€“ annotated image/video with stock status and misplaced highlights.

empty score โ‰ฅ 0.6
and > stocked

else

Input image

CLIP zero-shot
empty vs stocked

Return EMPTY

Grounding DINO
detect grocery items

Filter + deduplicate boxes

Count products & compare threshold

Spatial outlier detection
โ†’ misplaced flag

Annotated output

CLIP acts as a fast gate โ†’ only non-empty shelves trigger object detection.

๐Ÿ“ Try a sample image