PyImageSearch Blog posts implementations:
- Increasing webcam FPS with Python and OpenCV:
- Code: fps_demo.py
- Run:
- Test #1: > python fps_demo.py
- Test #2: > python fps_demo.py --display 1
- Object detection with deep learning and OpenCV:
- Code: dl_object_detection.py
- Run:
- Test #1: > python dl_object_detection.py --image ....\extras\images\object_detection\example_01.jpg
- Test #2: > python dl_object_detection.py --image ....\extras\images\object_detection\example_02.jpg
- Test #3: > python dl_object_detection.py --image ....\extras\images\object_detection\example_03.jpg
- Test #4: > python dl_object_detection.py --image ....\extras\images\object_detection\example_04.jpg
- Test #5: > python dl_object_detection.py --image ....\extras\images\object_detection\example_05.jpg
- Test #6: > python dl_object_detection.py --image ....\extras\images\object_detection\example_06.jpg
- Test #7: > python dl_object_detection.py --image ....\extras\images\object_detection\example_03.jpg --confidence 0.8
- A gentle guide to deep learning object detection:
- Code: filter_object_detection.py
- Run:
- Test #1: > python filter_object_detection.py
- Test #2: > python filter_object_detection.py --confidence 0.6
- Simple object tracking with OpenCV
- Code: object_tracker.py
- Run: > python object_tracker.py
- OpenCV Object Tracking
- Code: opencv_object_tracking.py
- Run:
- Webcam: > python opencv_object_tracking.py
- Webcam + csrt tracker: > python opencv_object_tracking.py --tracker csrt
- Video 1: > python opencv_object_tracking.py --video "../../extras/videos/dashcam_boston.mp4" --tracker csrt --tracker csrt
- Video 2: > python opencv_object_tracking.py --video "../../extras/videos/american_pharoah.mp4" --tracker csrt --tracker csrt
- Video 3: > python opencv_object_tracking.py --video "../../extras/videos/drone.mp4" --tracker csrt --tracker csrt
- Video 4: > python opencv_object_tracking.py --video "../../extras/videos/nascar_01.mp4" --tracker csrt --tracker csrt
- Video 5: > python opencv_object_tracking.py --video "../../extras/videos/nascar_02.mp4" --tracker csrt --tracker csrt
- Video 6: > python opencv_object_tracking.py --video "../../extras/videos/race.mp4" --tracker csrt --tracker csrt
- Tracking multiple objects with OpenCV
- Code: multi_object_tracking.py
- Run:
- Webcam: > python multi_object_tracking.py
- Video 1: > python multi_object_tracking.py --video "../../extras/videos/los_angeles.mp4" --tracker csrt --tracker csrt
- Video 2: > python multi_object_tracking.py --video "../../extras/videos/nascar_01.mp4" --tracker csrt --tracker csrt
- Video 3: > python multi_object_tracking.py --video "../../extras/videos/soccer_01.mp4" --tracker csrt --tracker csrt
- Video 4: > python multi_object_tracking.py --video "../../extras/videos/nascar_02.mp4" --tracker csrt --tracker csrt
- OpenCV People Counter
- Code: people_counter.py
- Run:
- Video 1: > python people_counter.py --input "../../extras/videos/people_counter_01.mp4"
- Video 2: > python people_counter.py --input "../../extras/videos/people_counter_02.mp4"
Credits to Adrian Rosebrock on http://www.pyimagesearch.com