Object detection with tinyYOLOv2 in Python using OpenVINO Execution Provider:
-
The Object detection sample again uses a tinyYOLOv2 Deep Learning ONNX Model from the ONNX Model Zoo.
-
The sample involves presenting a frame-by-frame video to ONNX Runtime (RT), which uses the OpenVINO Execution Provider to run inference on various Intel hardware devices as mentioned before and perform object detection to detect up to 20 different objects like birds, buses, cars, people and much more.
The source code for this sample is available here.
How to build
Prerequisites
-
Download the latest tinyYOLOv2 model from the ONNX Model Zoo. This model was adapted from ONNX Model Zoo.Download the latest version of the tinyYOLOv2 model from here.
Install ONNX Runtime for OpenVINO Execution Provider
Build steps
Reference Documentation
Requirements
- ONNX Runtime 1.6+
- numpy version 1.19.5+
- opencv 4.5.1+
- python 3+
- use any sample video with objects as test input to this sample
- Download the tinyYOLOv2 model from the ONNX Model Zoo
Running the ONNXRuntime OpenVINO Execution Provider sample
python3 tiny_yolov2_obj_detection_sample.py
To stop the sample from running
Just press the letter 'q' or Ctrl+C if on Windows