-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement: Accept Grayscale as Input #46
Comments
Solution:
This is really speeding up the detection!!! Hope helping somebody |
@EzequielAdrianM Thanks!
But it did NOT work in speeding up the detection. Any idea ? |
It does not work because you are not sending the gray scaled mat to the detector. You keep sending the original in color. |
@EzequielAdrianM I did send gray scaled mat to the detector, NOT the bgr mat. For ur convenience, I adjust the code sequence as following: in
Is it right ? |
Yes, it is right |
Currently when detection is performed, the code reads the channels of a Mat object as input. But if it is in grayscale (Channels == 1) it is converted again to color:
detector.h
However, the Dlib documentation points out that: "Any built in scalar type may be used as a grayscale pixel type. For example, unsigned char, int, double, etc."
So bgr_pixel type is not the only alternative.
The text was updated successfully, but these errors were encountered: