-
Install requirements
pip install -r requirements.txt
-
Run detection script
python detection_parallel.py
The script uses OpenCV to read from a live videostream in Las Vegas then, using PyTorch, it loads 2 object detection models and displays the results side by side in the same window.
The two models I used:
- YoloV5 from Ultralytics
- EfficientDet from Yet Another EfficientDet Pytorch