This project is a simplified version of Project A. When you have data captured from fixed cameras, this project allows you to obtain trajectories in the world coordinate system. Yolov8 is required in this project.
Please follow the steps from Step1 to Step9. Note that Step4 and Step789 are for visualizing the results. If you only need a trajectory CSV file, you can skip these steps.
Extracts frames from the input video at a specified frame rate.
Applies super-resolution to the extracted frames to enhance image quality.
Uses YOLOv8 for object detection and tracking on the extracted frames.
Combines the frames with tracking results into a video for visualization. (Optional)
Converts the tracking results to a trajectory CSV file.
Converts the pixel coordinates from the tracking results to world coordinates using camera calibration data.
Post-processes the trajectory data for further analysis.
Restores labeled data onto the original images for visualization. (Optional)
Combines all the labeled images into a single MP4 file. (Optional)
If you are using data captured from UAVs or other moving cameras, it is recommended to use a more complex repository: Filed-data-Corridor-Vehicle-Trajectory-Tracking.