Python Tensorflow 2 scripts for detecting objects of any class in an image without knowing their label.
Original image taken from the OpenCV AI Kit – Lite, make sure to check it out: https://www.kickstarter.com/projects/opencv/opencv-ai-kit-oak-depth-camera-4k-cv-edge-object-detection
The object detector works better with images with few objects and it starts to fail in more complex scenes. The model is suitable for automatically labelling objects for custom object detection models.
- OpenCV, imread-from-url and tensorflow. Also, pafy and youtube-dl are required for youtube video inference.
pip install -r requirements.txt pip install pafy youtube-dl
Use the following script to download the model:
- Image inference:
- Webcam inference:
- Video inference:
Original video by Animist: https://youtu.be/uKyoV0uG9rQ