How ibaigorordo/onnx-imagenet-1k-object-detector works
The product detects class-agnostic object boxes, classifies each crop into ImageNet-1K labels, and displays annotated results for images, videos, or webcam frames. The central pipeline is implemented in detector1K/detector1K.py; the README documents automatic model downloads. Relationships below are grounded in the sampled source and README; model runtime internals are not expanded.
Main entry points: detector1K.py Detection pipeline · image_object_detection.py Image script · video_object_detection.py Video script · webcam_object_detection.py Webcam script
Components 11
Input workflows
- Image script
image_object_detection.py - Video script
video_object_detection.py - Webcam script
webcam_object_detection.py
Detection pipeline
- Detection pipeline
detector1K/detector1K.py - ResNet classifier
detector1K/resnet50Classifier.py - Download helpers
detector1K/utils.py
Models and labels
- ImageNet labels
detector1K/imagenet1000_clsid_to_human.pkl - ONNX model files
models
Other components
- User media
- Google Drive
- Annotated display
Connections 18
- User media → Image script: supplies image
README.md - User media → Video script: supplies video
README.md - User media → Webcam script: supplies frames
webcam_object_detection.py - Image script → Detection pipeline: calls detector
image_object_detection.py - Video script → Detection pipeline: calls detector
video_object_detection.py - Webcam script → Detection pipeline: calls detector
webcam_object_detection.py - Detection pipeline → ResNet classifier: classifies crops
detector1K/detector1K.py - ResNet classifier → ImageNet labels: reads labels
detector1K/resnet50Classifier.py - Detection pipeline → Download helpers: downloads localizer
detector1K/detector1K.py - ResNet classifier → Download helpers: downloads classifier
detector1K/resnet50Classifier.py - Download helpers → Google Drive: downloads models
detector1K/utils.py - Download helpers → ONNX model files: writes model files
detector1K/utils.py - Image script → Detection pipeline: renders detections
image_object_detection.py - Video script → Detection pipeline: renders frames
video_object_detection.py - Webcam script → Detection pipeline: renders frames
webcam_object_detection.py - Image script → Annotated display: shows image
image_object_detection.py - Video script → Annotated display: shows frames
video_object_detection.py - Webcam script → Annotated display: shows frames
webcam_object_detection.py