GeekAlexis / FastMOT

High-performance multiple object tracking based on YOLO, Deep SORT, and KLT 🚀
MIT License
1.15k stars 253 forks source link

[Question] detections and cropping only in a ROI section #255

Closed GMBarra closed 2 years ago

GMBarra commented 2 years ago

Hi @GeekAlexis, as always thanks you for keeping this project update. Right now I need to perform the detections only in a ROI and generate an image crop&save when the target class enters for the first time or leaves said region of interest. Since my objective is only to detect in that ROI, I have to consider the ID track only within the region. So I was wondering if you can guide me in which code section would be better to implement this function (app.py, mot.py or tracker.py).

GeekAlexis commented 2 years ago

Use app.py as a starting point for any downstream application that uses FastMOT. Only modify mot.py or tracker.py if you want to alter the tracker logic/algorithms.

GMBarra commented 2 years ago

I actually implement it on app.py and I am planning to move it inside the classes for a more clean code. So no problems here, Thank you!!