pose-tensorflow
pose-tensorflow copied to clipboard
webcam Inference
Hi
Thanks for the great work. I was able to change singleperson.py and use it for real time inference as bellow:

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
+1
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
....