Overview: This project demonstrates the object tracker using OpenCV's built-in KCF (Kernelized Correlation Filters) Tracker. It allows users to select a Region of Interest (ROI) for tracking and visualize the tracked object in real-time.
How to use:
- Install Python
- Install OpenCV using: pip install opencv-python
- Ensure camera is working and accessible!
- Run the code: python object_tracker.py
- Tracker Screen: After running the script, the webcam feed (Tracking window) will be displayed.
- Selecting ROI: a. Press Esc to stop the initial tracking and activate the ROI selector window. b. Use the mouse to mark the object of interest in the ROI selector window, then press enter. c. The code will start tracking the selected ROI
- Press "Esc" to exit.