-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
C++ face alignment #333
Comments
Yes, check cpp-align dir |
@nttstar Thank you for your response, I have check the dir of cpp-align, it seems that there is only a header file FacePreprocess.h, it implements similar transformation(without key facial points), but how could I used it face alignment?
|
I also don't know how to use ccp-align code, and do you know now? @anguoyang |
感谢感谢,解决了~ |
It seems that your solution is wrong, because you have to add 8 to X coordinates of reference points as mentioned here: |
@anguoyang 你好。对于这个“cv::Mat align_face(const cv::Mat& src, const FaceLandmark& landmark, int width, int height)”我有几个问题:
|
@anguoyang 你好。对于这个“cv::Mat align_face(const cv::Mat& src, const FaceLandmark& landmark, int width, int height)”我有几个问题:
@MirrorYuChen 你解决了吗,能帮我回答以上问题吗? |
你可以参考我的ncnn-example项目里面,有个align模块的代码,觉得有用记得给star: |
我这里计算的时候,src是原图,如果想用截取出来的图,在计算关键点坐标时,需要减去人脸左上角点坐标~ |
然后加不加8这个偏移量,取决于你人脸识112x112还是112x96 |
@MirrorYuChen 谢谢,我先试试,不懂的还要问您。 |
@MirrorYuChen 解决了,谢谢老哥。方便加个微信吗13969756973 |
已经添加好友~ |
Hey guys, sorry for bothering you. But my issue might be related to this issue. That is I sometimes received an up-side-down aligned face when I used the C++ version of the face align code. Especially, it's usually happened with high face's yaw value. Debugging brings me to a conclusion that it's an error in calculating the rotation value in SimilarityTransform in C++, when its scikit-image version in Python works perfectly without any issues. I've created an issue in #1559 but no one care, then I try to re-post this issue around to find if someone can help. Thanks a lot for your attention. |
is there a c++ version of face alignment? thank you
The text was updated successfully, but these errors were encountered: