Worked on different algorithms to track multiple selected object in a webcam stream or video using OpenCV and Python. In this program I have used seven different object tracking algorithms to track multiple selected objects:
- BOOSTING Tracker
- MIL Tracker
- KCF Tracker
- CSRT Tracker
- MedianFlow Tracker
- TLD Tracker
- MOSSE Tracker
In Windows
1.Open Command terminal in Anaconda Navigator(anaconda3) i.e. CMD.exe Prompt be causious to see that: (base) C:\Users\XXXX>
2.To use a specific video in program type: (base) C:\Users\XXXX>python address_of_python_program\multiple.py --video address_of_video\videoname.format
3.To use webcam type: (base) C:\Users\XXXX>python address_of_python_program\multiple.py
4.--video is a switch to use a particular video
In Ubuntu open Terminal
1.To use a specific video in program type: $ python address_of_python_program\multiple.py --video address_of_video\videoname.format 2.To use webcam type: $ python address_of_python_program\multiple.py 3.--video is a switch to use a particular video.
To select an object press s and pause the video stream and right click and drag mouse on object that you wish to choose. To select multiple object you have to repeat this step everytime, you select. To quit this program simply press q.