How can I make this while loop able to detect ancd classify objects only when they stops?
I have this while loop that takes a video and does the detection and clasification of some objects. I use yolov8 as a detector and efficientnetB3 as classifier. It works well but it does the detection and classification tasks in every moment. Now I want to change it in order to execute these tasks only when an object is stopped on the ground. How can I resolve it? I cannot use the yolo tracker, can I use someother tracker or can I somehow work on centroids without any tracker??