-
Notifications
You must be signed in to change notification settings - Fork 13
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
Face Landmark Detection #9
Comments
Hello, I am sorry, the face landmark is another extra module, so it's not in the official binaries. |
Hello, This code is used to compare these faces from the same person (ME) [Images resized to 160x160]
but Cosine dissimilarity ( (1-Score)*100) is too high: 53.45620 Would you please advise me how to achieve best similarity scroe?
and if possible test the code by yourself. Thank you again! |
Hello, I have tested your images with my code (the example project1), not having all your source. Regards |
Hi, Thank you for your prompt response. The face images should be provided by an external module. So, only recognition should be used. The conversion to RGB 16 is made by: The Detection code used:
Thank you so much. |
Hi, The Code modified by introducing pCvFaceRecognizerSFalignCrop and the score became 07.04583% of Dissimilarity.
Should Aligned/Cropped Mat be an image content? Exported one is empty bu has a structure of an image. Best regards. |
Hello, I tested to save aligned image, adding this simple code in my program: pCvFaceRecognizerSFalignCrop(................., AlignedImg); The saved image is a valid jpg image, exactly the face cropped from original image and straightened up. |
Hello, I implemented Face Detection as you advised using FaceDetectorYN. FaceBox is imported/exported as Json using:
and re-implemented the Face Detection/Recognition inspired from your code:
finally, the score became close to yours (100-38.80430) = (0.6*100). Which Cosine Score and Norm Distance are adequate to settle Similarity? Many Thanks. |
Hi, Please note these modifications related to a Multi-Face recognition (Row Index):
Best regards. |
The recommended values from Opencv docs is: cosine >= 0.363 and L2 normal =< 1.128 |
Hi, Please find a function to load image from memory (saved into TBytes) blob:
Best regards. |
Hi, Decreasing ScoreThreshold to 0.8 helped to detect face on blurred image. Best Regards. |
Hi, Regarding this note from https://github.com/ShiqiYu/libfacedetection Please note that OpenCV DNN does not support the latest version of YuNet with dynamic input shape. Please ensure you have the exact same input shape as the one in the ONNX model to run latest YuNet with OpenCV DNN.
Would you please confirm that OpenCV DNN does not support the latest version of YuNet with dynamic input shape? Best regards. |
Hi, Please find comparative tests using LibFaceDetection & OpenCV.
Face Box is built from libfacedetection and passed to the PCvFaceRecognizerSF_t instance without using PCvPtr_FaceDetectorYN. Best regards. |
Hello, attached a simple code to read and write a Mat image in an array of bytes. |
Hi, Please note that this code should be replaced (mat2bytes)
because of 32/64 bit adressing longint >> NativeInt
Best regards. |
Hello, Please find my implementation for exporting image to Bytes:
Best regards. |
Hello, your function is very good. |
Hi, Even the Size is less than expected, pCvimencode will increase it to fit the one needed. Allocating the exact size not possible due to the output format (would not be predicted). The Size would be set to at least the original one. Size also would be set to 0. Setting to maximum size avoids memory reallocation.
Best regards. |
Hello, pCvimencode is similar to pCvimwrite, so it saves an image in memory array instead that on disk. |
Hi,
Would you please integrate Face Landmark Detection into your invaluable library?
Best regards.
The text was updated successfully, but these errors were encountered: