mikel-brostrom / yolo_tracking

BoxMOT: pluggable SOTA tracking modules for segmentation, object detection and pose estimation models
GNU Affero General Public License v3.0
6.27k stars 1.66k forks source link

Is there a way to turn of camera movement correction (cmc)? #1404

Closed AlexanderNevarko closed 3 weeks ago

AlexanderNevarko commented 1 month ago

Search before asking

Question

I am using your wonderful tracking tool for tracking people from static surveillance cameras. I use BoTSort algorithm, which has SOF method for camera movement correction built in. As far as I understood reading the source code, it detects strong ORB keypoints and matches them from frame to frame to correct detections based on camera movement. It takes processing time and for static cameras it is useless. Furthermore, static cameras usually have OSD on frames (date and time, written on some corner of the frame). The characters from this OSD may also affect CMC, which can result in worse tracking performance. As for now I haven't seen the ability to turn off the CMC, but in my case it will be very useful! Thanks for your awesome work!

mikel-brostrom commented 1 month ago

There is no toggle flag for this at the moment. But if you are working with BoTSORT you could simply delete these code lines:

https://github.com/mikel-brostrom/yolo_tracking/blob/d079d3d03ddee639705edb2bbead373df0a82fe4/boxmot/trackers/botsort/bot_sort.py#L303-L305

AlexanderNevarko commented 1 month ago

Thanks! Let me check the usage of cmc in other trackers and may be submit a PR. Is it going to be useful?

mikel-brostrom commented 1 month ago

A toggler for CMC would be nice IMO 😄

github-actions[bot] commented 1 month ago

👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs. Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!