Speed up or faster alternative to Opencv CascadeClassifier
Hi, I use a cascade classifier from Opencv to detect some objects in real time (12801024px image) but It too slow for me. I use 20 stages cascade on 2020px patch with a scale factor of 1.1. I'm about 2.5FPS on an embedded computer. I would like about 10FPS.
Here is my questions :
Is there some well known bottlenecks in this part of Opencv that I could rapidly fix?
Is there some projects (github ...) to improve this part of Opencv?
Is there some libraries (open source or not) that have a faster implementation of Viola Jones detector (cascade classifier)?
.
You can find my own TODO list here: https://github.com/StevenPuttemans/op.... Feel free to start any discussions there!
I have some ideas but most of those are not compatible with LBP or HOG detector (setImage once in detectmultiscale, update pointer in setwindow, scale feature during pointer updating ...). I'm not sure (I'm not sure to well understand ystep) but it seems that the detector run for each line. Is this necessary? 1/2 or 2/3 of overlap is not enough?
Thats because the implementation follows the initial idea. It moves per pixel yes, in a sliding window manner. Updating that could work, but it would have to be in an overload function or a completely new one, because we need to maintain backwards and ABI compatibility.
Ok, thank you for your answers. I will try some minor changes (parametric overlap, reduce lock of mutex) and I will come back to give you my results. If it's not enough and if I have enough time, I will try to change the haar cascade.