-
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
polling multi_face_landmarks packet from the face_mesh crashes the code #1747
Comments
Hi @vamsee-asu2019, Could you share the crash log here. And also mention what all did you try ? |
Hi @sgowroji, there is no crash log . But the visualization freezes when there are no facial landmarks detected. All the change I made was to access the |
@vamsee-asu2019 Can you share the graph to understand the issue much better. Thanks! |
@sgowroji I am using the same graph from the pbtxt file here face_mesh_desktop_live_gpu.pbtxt And I am trying to access the
Inside the while loop for accessing each frame of videocapture
So when there are no landmarks from the detection packet, it crashes. I tried to put the entire code inside a try-catch block, but even then it crashes. It would be great if you could answer : Is this behaviour expected when accessing the |
Hello @ivan-grishchenko, |
Is anyone looking into this? |
@ivan-grishchenko |
@jiuqiant Can you help me with this? I am stuck with this issue for more than 10 days now. |
I have changed the https://github.com/google/mediapipe/blob/a92cff7a60031f5c3097b06e74416732d85b5011/mediapipe/framework/graph_output_stream.cc#L144 to
|
Hi @ivan-grishchenko , @sgowroji and @jiuqiant , And then adding a try-catch when we call the .Next() method to get the |
We are glad to see you resolved. And thank you so much for sharing your code, which will be useful for other users. |
I am facing the same issue. The console shows no error but screen just freezes giving no response at all ... Please help me |
Hi @Hrituraj202, Did this resolution #1747 (comment) helped ?. If not can you share complete details in a new issue. Thanks! |
Hi,
I am trying to access the landmarks from the face_mesh as shown in the comments of #1739.
But now when I go out of frame or there are no facial landmarks detected the code crashes. I tried to put all the code block in try and catch, even that didn`t work.
Can anyone help me with this?
The text was updated successfully, but these errors were encountered: