OpenPose VideoCapture (video) could not be opened for path: 'examples/media/video.avi'.

好不容易安装完OpenPose,运行一下demo,发现出现以下问题:

Starting pose estimation demo.
Unable to stop the stream: Inappropriate ioctl for device
terminate called after throwing an instance of 'std::runtime_error'
what():
Error:
VideoCapture (video) could not be opened for path: 'examples/media/video.avi'.

Coming from:

  • src/openpose/producer/videoCaptureReader.cpp:VideoCaptureReader():33
  • src/openpose/producer/videoCaptureReader.cpp:VideoCaptureReader():37

Aborted (core dumped)


是不是很崩溃?没关系,重新编译安装一下OpenCV就好了。

https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/41

在官方github的issue中,作者提到可能是OpenCV的问题。果然重新编译一下就好了,估计是cuda的问题。

你可能感兴趣的:(OpenCV,OpenPose,OpenPose)