-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
ERROR while trying to access the Normalizedlandmarks from face mesh #1739
Comments
@jiuqiant And then added a variable to tap landmarks : And then included the code to poll the output packet with landmarks as follows:
Got the landmarks from the packet using :
And then trying to print the landmarks : After which I added the following lines to BUILD file inside mediapipe\mediapipe\examples\desktop
And also I have changed the line:30 in BUILD file inside mediapipe\mediapipe\examples\desktop\face_mesh to : For the build I am using the following command : ` |
I copied your code into demo_run_graph_main.cc and compiled mediapipe/examples/desktop/face_mesh:face_mesh_cpu. It went well on a surface pro: The diff is the following. Note that I didn't check the correctness of the code and just copied your code into the files.
|
@jiuqiant Yeah this works. the build is successful now. Thanks for that, I was hooked up on this for the whole day. I am not sure what's wrong with the new file though. Now when try to run the face_mesh_cpu.exe by passing the corresponding calculator graph config file I get the following error : Command used : In the pbtxt file I [assed, I can see that there is an output stream named "multi_face_landmarks" of type std::vector. I am not sure why it says it received empty packet . What can be the reasons for this ? Am I accessing it the wrong way ? Were you able to run the executable and print the landmarks? |
Yeah, because there is a bug in the code. Should be
Then, you will get something like the following in the terminal: BTW, you can use the MediaPipe Python PyPI package if it's not necessary to be c++. |
@jiuqiant Yeah I just came here to mention that. I was able to figure it out. Anyways thanks man for the help :) I want to use this in another c++ project . which is why I am trying to use C++ version of the mediapipe. |
Glad to help. Closing this issue now. |
I have been trying to get the iris_landmarks. |
Hello! I have the same issue, as you do. I am also trying to figure out for iris. Have you managed to solve it? |
I have been trying to access the landmarks from the face mesh . I have followed the steps given in #200 (comment) .
I get the following error :
Compiling mediapipe/framework/formats/landmark.pb.cc [for host] failed: undeclared inclusion(s) in rule '//mediapipe/framework/formats:landmark_cc_proto': this rule is missing dependency declarations for the following files included by 'mediapipe/framework/formats/landmark.pb.cc': 'mediapipe/framework/formats/landmark.pb.h' Target //mediapipe/examples/desktop/face_mesh:face_mesh_cpu failed to build
OS : Windows 10
So while looking into BUILD file related to landmark_proto, I see that there are no dependencies mentioned (reference: https://github.com/google/mediapipe/blob/a92cff7a60031f5c3097b06e74416732d85b5011/mediapipe/framework/formats/BUILD#L250 ). Is there something that this file is missing in terms of mentioning the dependencies for landamrk_proto??
Could anyone help me with this?
The text was updated successfully, but these errors were encountered: