emilianavt / OpenSeeFace

Robust realtime face and facial landmark tracking on CPU with Unity integration
BSD 2-Clause "Simplified" License
1.46k stars 152 forks source link

why detect time always show 0.00ms? #6

Closed JH95-ai closed 4 years ago

JH95-ai commented 4 years ago

Hello,dear anchor.I‘m testing your project,and now have a problem.That is why detect time always show 0.00ms,test picture is following: image Next I found that parameter duration_fd mainly saved the detection time.and it's true.picture is following: image How should I modify to display the correct detection time? Thanks you watching!

emilianavt commented 4 years ago

0ms is correct. Face detection is only performed when less than --max-faces faces were detected last frame and only every --scan-every frames. Otherwise the face tracking will only look for faces around the bounding boxes of the faces from the previous frame. If you want to make sure that face detection runs every frame, set --max-faces to a higher number of faces than are present in the input and set --scan-every to 0.

JH95-ai commented 4 years ago

Oh,I see ,thank you for your help.Best wishes for you.