pose-tensorflow icon indicating copy to clipboard operation
pose-tensorflow copied to clipboard

webcam Inference

Open bardia-esmaeili opened this issue 6 years ago • 2 comments

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

bardia-esmaeili avatar Jul 12 '19 18:07 bardia-esmaeili

+1

Zumbalamambo avatar Apr 07 '20 11:04 Zumbalamambo

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

....

raspberry-pi-maker avatar Jul 31 '20 14:07 raspberry-pi-maker