How chitra123-hub/sackbag-counting works
This repository is a collection of standalone computer-vision scripts, not a shared application. The main workflow tracks sackbags in a video, counts each tracked object crossing a line, and saves and displays the annotated video. Separate scripts inspect video metadata, run image detection and save/display annotations, or load a model and print its class names. The tree and excerpts show no shared internal runtime layer; the empty file and trivial greeting script do not represent product capabilities.
Main entry points: counting item.py Video Counter · testimage.py.py Image Detector · check count.py Video Probe · from ultralytics import YOLO.py Model Inspector
Components 12
Video Processing
- Video Counter
counting item.py - Video Probe
check count.py
Image Detection
- Image Detector
testimage.py.py - Model Inspector
from ultralytics import YOLO.py
Other components
- Input Video
- Input Image
- Model Weights
- Ultralytics YOLO
- OpenCV
- Annotated Video
- Annotated Image
- Display Window
Connections 16
- Video Counter → Input Video: reads frames
counting item.py - Video Counter → Model Weights: loads weights
counting item.py - Video Counter → Ultralytics YOLO: tracks objects
counting item.py - Video Counter → OpenCV: processes frames
counting item.py - Video Counter → Annotated Video: writes video
counting item.py - Video Counter → Display Window: shows frames
counting item.py - Video Probe → Input Video: reads metadata
check count.py - Video Probe → OpenCV: opens video
check count.py - Image Detector → Input Image: loads image
testimage.py.py - Image Detector → Model Weights: loads weights
testimage.py.py - Image Detector → Ultralytics YOLO: predicts objects
testimage.py.py - Image Detector → OpenCV: saves and displays
testimage.py.py - Image Detector → Annotated Image: writes annotation
testimage.py.py - Image Detector → Display Window: shows annotation
testimage.py.py - Model Inspector → Model Weights: loads weights
from ultralytics import YOLO.py - Model Inspector → Ultralytics YOLO: reads class names
from ultralytics import YOLO.py