pntt3011 / mediapipe_face_iris_cpp

Real-time Face and Iris Landmarks Detection using C++
GNU General Public License v3.0
81 stars 15 forks source link

Do you have mediapipe_hand_landmark_cpp ? #21

Open lexidliny opened 2 years ago

pntt3011 commented 2 years ago

HI @lexidliny, i have a separate branch for it. https://github.com/pntt3011/mediapipe_face_iris_cpp/tree/HandLandmark. Hope this help.

lexidliny commented 2 years ago

Thank you ! I have tested this code on my computer and I get "Segmentation fault (core dumped)". How do I fix this fault? The face_landmark_cpp program works well on my computer with ubuntu 18.04.

pntt3011 commented 2 years ago

Can you show your detailed error? I tested on my computer and it ran normally. Did you compile Debug or Release mode? If you compile with Debug mode, try again with Release mode.

lexidliny commented 2 years ago

I have tried again, and I located this error in the my::DetectionPostProcess::getHighestScoreDetection function.

pntt3011 commented 2 years ago

@lexidliny, did you change the define values in DetectionPostProcess.hpp? They are different from those of Face landmark model.

lexidliny commented 2 years ago

I found that I forgot to modfy the path to anchors.csv. Now it works well. Thank you !

lexidliny commented 2 years ago

It seems that the accuracy is not as good as mediapipe. Is it caused by palm_detection_without_custom_layer.tflite ?

lexidliny commented 2 years ago

It seems that the accuracy is not as good as mediapipe. Is it caused by palm_detection_without_custom_layer.tflite ?

lexidliny commented 2 years ago

Screenshot from 2022-10-31 21-01-53

pntt3011 commented 2 years ago

@lexidliny, if i remember correctly, the landmark model works best with straight up hand. Therefore, from the detection model, you should:

pntt3011 commented 2 years ago

You can get the straight up direction from palm and middle finger landmark (2 of the output landmarks from detection model)