Track black object with optical flow

asked 2020-10-12 13:12:37 -0600

KyloEntro gravatar image

updated 2020-10-12 14:25:17 -0600

Hi,

I want to do multi object tracking on real time device. So I want a fast tracker. I tried to do tacking with optical flow (PyrLKOpticalFlow). It works very fast and fine on a video with cars. But I move on to a video with peoples (TownCentre) and the tracker failed on people with black coat.

I select a point at the center of the object and then I track this point to know the position of the object over frames.

I tried to generate points with cv2.goodFeaturesToTrack but no points on the guys with black coat... I join a screen shot of the object I want to track : https://ibb.co/pZS1HsD image description

I have the same issue with KCF tracker, KCF failed to track this guys ...

Is there a solution to my problem ?

edit retag flag offensive close merge delete

Comments

please put your image here, not on an external bin, thank you.

berak gravatar imageberak ( 2020-10-12 13:58:21 -0600 )edit

I tried, but I can not upload my image ... Do not know why. Nothing happen

KyloEntro gravatar imageKyloEntro ( 2020-10-12 14:12:47 -0600 )edit

Look at median flow paper. There is apparently no benefit to using GFFT or FAST. You must also use more than one feature point per object. Preferably several to compute scale and rotation changes, but you are tracking non-rigid objects, so...

Der Luftmensch gravatar imageDer Luftmensch ( 2020-10-12 15:06:07 -0600 )edit

@KyloEntro. Do u want to select 2 person with black jackets or any person? What's language to write? I merely used python 3.7 or later. Btw, I can only elected 2 person by using mouse events.

supra56 gravatar imagesupra56 ( 2020-10-13 08:51:38 -0600 )edit