Open schwarzwals opened 3 years ago
any ideas anyone ?
hmm, how about you resize the image you're trying to analyze?
I also have this issue. But I'm surprised by the time you have, 6 seconds! Mine is about 1 second, however I have to run it twice.
I also think that time could be sped up if we called for less landmarks. But the thing is, dlib (Which an entire different program/database which is implemented in python to get face_landmarks) is locating the landmarks, and I have no idea if dlib supports this feature. Also, resizing the image should help, but not too much. I will try to look into how this could be fixed. If anyone who knows more about dlib could help, that would be appreciated!
I found out that face landmarks are being detected by this model. However, I cannot dissect this as I have no experience in C++ and .dat files. I also found out that dlib is not detecting landmarks. Dlib is instead loading this model. I do not see any parameter to limit the amount of landmarks in the method used to locate the landmarks. However I believe that it is possible. We may have to modify the model and/or use an alternative to dlib. I will look into the model and follow up again.
I looked into the model used to detect face landmarks. It uses a .dat file as the model. However, I looked into DLib once again to see if DLib was causing the issue. The model is called using the class dlib.shape_predictor
, and this may be the issue. I looked for alternatives to detecting face landmarks and found this. However I do not think this is the answer and will return the same speed. If anyone else knows more about dlib and/or the models used, your help would be appreciated.
I am detecting face landmarks. Mostly nose bridge in order to crop the images later. I found it pretty slow to do it. About 6 seconds per image.
Is there a way to speed up the process ? Can I look only for the nose bridge landmarks somehow ? Would that be faster ? Also file size might be a problem ?
Any help is appreciated !