Skip to content
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

webcam Inference #104

Open
bardia-esmaeili opened this issue Jul 12, 2019 · 2 comments
Open

webcam Inference #104

bardia-esmaeili opened this issue Jul 12, 2019 · 2 comments

Comments

@bardia-esmaeili
Copy link

Hi

Thanks for the great work. I was able to change singleperson.py and use it for real time inference as bellow:

code

However, this could only show the joints. I was wondering if it is possible to draw the lines between the joints, as well.

I would really appreciate it, if you could help me

Thanks

@Zumbalamambo
Copy link

+1

@raspberry-pi-maker
Copy link

You should convert OpenCV format to PIL format before inferencing

from PIL import Image
....
ret, frame = cap.read()
image = Image.fromarray(np.uint8(frame)) #OpenCV format -> PIL Format

....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants