ncnn-android-scrfd icon indicating copy to clipboard operation
ncnn-android-scrfd copied to clipboard

Frames dropping and slowness

Open aboozaid opened this issue 2 years ago • 1 comments

The problem

Actually this is not a problem with your code or ncnn model it just a generic problem when it comes to face heavy operations. Slowness and image frame cuttering because you detect faces in every camera frame

So

Well actually phones cpus and gpus aren't much power than our desktops or laptops. It needs a different treatment and workaround to get the best results so far I have used many workarounds and really get some good results overall but still need much smoothness between frames, So far I tried

  • Resizing an image before getting into processing
  • Do the process task in a standalone thread
  • Trackers ?
  • If you know any workaround please mention it

How to get more good results

I believe using trackers play a powerful role in this problem but in myself didn't find a good resource to start implement that and see what the output. Did you ever tried to solve this problem using trackers? and if you have a good repos for trackers to use please mention them below

Thanks!

aboozaid avatar Oct 06 '22 23:10 aboozaid

@nihui

aboozaid avatar Oct 07 '22 18:10 aboozaid