How to correctly exit code for webcam? #2612
Unanswered
seon-creator
asked this question in
Q&A
Replies: 1 comment
-
The webcam API is no longer supported in the latest version. We suggest utilizing the webcam function with either the demo script or inferencer, which is more stable and efficient. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using mmpose that includes the webcam api codes.
I have some problem when I exit webcam, I pressed the keyboard 'q'.
Sometimes it doesn't perfectly exit. It means that webcam's board is closed well but in terminal, It is still operating.
So I have to press ctrl + c to make KeyboardInterrupt and then exit.
I want that just press q and then exit all of them.
So I revised the code of the webcam_executor.py
The root is __mmpose/mmpose/apis/webcam/webcam_executor.py
I revise the two functions
I write "# edit" that I add or revise.
After then when I press 'q' it works well but I don't know this method for exit is correct.
If this method has problem, please advise to me and tell me is it correct.
I show the all of the code webcam_excutor.py
Beta Was this translation helpful? Give feedback.
All reactions