quanhua92 / human-pose-estimation-opencv

Perform Human Pose Estimation in OpenCV Using OpenPose MobileNet
Apache License 2.0
356 stars 146 forks source link

cannot connect to X server #5

Closed HARIHARAN1103 closed 5 years ago

HARIHARAN1103 commented 5 years ago

I have tried this model on the google colab.

!python openpose.py --input image5.jpg :cannot connect to X server

please suggest the solution.

quanhua92 commented 5 years ago

The openpose.py uses cv.imshow('OpenPose using OpenCV', frame) to show the frame image so it can't run on Colab. You need to use matplotlib pyplot to show the image. Here is the tutorial: https://matplotlib.org/users/image_tutorial.html