Ep6 Tracking Persons & assigning unique Ids | Jetson Computer Vision | Jetson Nano | Python

preview_player
Показать описание


In this video we are going to track a person in a video file and will also assign a unique object id to it. We are going to use the Centroid Tracking Algorithm of OpenCV to track the person and based on it, we will assign the object id to it.

This object id will remain same as long as the person is in the frame. If that person goes out of the frame, we will loose the tracking and will also de register the object id. This video only tracks the person but the code can work for any object you want to detect. For example, you want to detect and track the number of cars, you can do that by just passing the bounding box of the car to the tracker and the tracker will track it and assign the unique object id to it.

Tracking any object is very important for any computer vision and AI project. Once you have the tracking enabled in your code, you can count the number of persons in the frame and you can also calculate the time they have spent in the frame. So tracking really important in computer vision and AI project. Make sure you watch the video till end and comment below if you have any questions.

Рекомендации по теме
Комментарии
Автор

Hi Dear, i hava a question ; when id ; 0 moved to out frame, rectangel waited 2-3 seconds and then removed, assume that, after that id; 0 comes to frame again about 1 minute later, what will become id ? ID ıt 0 or new ID ? summary is it unique person detect ?

ibrahimsimsek
Автор

Well done bro! Also the explanation is very clear.. By the way it is the problem of social distancing with mask and no mask, right ?

smdathahar