This project is a MATLAB-based implementation of a motion-based multi-object tracking system using Kalman filters and blob analysis. The code processes video input, detects moving objects, and tracks their positions over time.
- Object Tracking: The script detects and tracks moving objects in a video stream.
- Kalman Filtering: Kalman filters are used to predict and correct object positions.
- User-Friendly: The code is well-commented and structured for ease of understanding and modification.
Before running the code, ensure you have the following:
- MATLAB with Image Processing Toolbox.
-
Clone this repository to your local machine.
-
Open MATLAB and navigate to the repository's directory.
-
Open the
MotionBasedMultiObjectTrackingExample.m
script. -
Modify the script or input video file path if needed.
-
Run the script to start object tracking.
MotionBasedMultiObjectTrackingExample.m
: The main script that performs object tracking.setupSystemObjects.m
: Initializes video input and output objects.initializeTracks.m
: Creates an empty array of object tracks.detectObjects.m
: Detects moving objects in each frame.- Other helper functions: Functions for prediction, assignment, updating tracks, and displaying results.
Contributions to this project are welcome! If you have suggestions for improvements or additional features, please create a pull request.
Enjoy object tracking with MATLAB!