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

Fail to run demo (VideoCapture (IP camera/video) could not be opened for path) #2321

Open
linjiangya opened this issue Oct 28, 2024 · 0 comments

Comments

@linjiangya
Copy link

linjiangya commented Oct 28, 2024

Issue Summary

I finished compilation of openpose, however I got below when running demo.

Executed Command (if any)

./build/examples/openpose/openpose.bin --video examples/media/video.avi --write_images output_images/ --display 0 --logging_level 0 --disable_multi_thread

and

./build/examples/openpose/openpose.bin --image_dir examples/media/ --display 0 --write_images output_images/ --logging_level 0 --disable_multi_thread

OpenPose Output (if any)

None

Errors (if any)

For --video examples/media/video.avi I got:

Starting OpenPose demo...
Configuring OpenPose...
/vol/bitbucket/zy3023/code/motion/humor/external/openpose/src/openpose/utilities/flagsToOpenPose.cpp:flagsToProducer():210
/vol/bitbucket/zy3023/code/motion/humor/external/openpose/src/openpose/utilities/flagsToOpenPose.cpp:flagsToProducerType():170
/vol/bitbucket/zy3023/code/motion/humor/external/openpose/src/openpose/utilities/flagsToOpenPose.cpp:flagsToPoseMode():11
/vol/bitbucket/zy3023/code/motion/humor/external/openpose/src/openpose/utilities/flagsToOpenPose.cpp:flagsToPoseModel():33
/vol/bitbucket/zy3023/code/motion/humor/external/openpose/src/openpose/utilities/flagsToOpenPose.cpp:flagsToScaleMode():82
/vol/bitbucket/zy3023/code/motion/humor/external/openpose/src/openpose/utilities/flagsToOpenPose.cpp:flagsToHeatMapScaleMode():116
/vol/bitbucket/zy3023/code/motion/humor/external/openpose/src/openpose/utilities/flagsToOpenPose.cpp:flagsToDetector():147
/vol/bitbucket/zy3023/code/motion/humor/external/openpose/src/openpose/utilities/flagsToOpenPose.cpp:flagsToDetector():147
Starting thread(s)...
Running configureThreadManager...
/vol/bitbucket/zy3023/code/motion/humor/external/openpose/src/openpose/producer/producer.cpp:createProducer():417
[ERROR:0] VIDEOIO(cvCreateFileCapture_Images(filename.c_str())): raised OpenCV exception:

OpenCV(3.4.16) /vol/bitbucket/zy3023/code/motion/humor/external/opencv-3.4.16/modules/videoio/src/cap_images.cpp:246: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): examples/media/video.avi in function 'icvExtractPattern'



Error:
VideoCapture (IP camera/video) could not be opened for path: 'examples/media/video.avi'. If it is a video path, is the path correct?

Coming from:
- /vol/bitbucket/zy3023/code/motion/humor/external/openpose/src/openpose/producer/videoCaptureReader.cpp:VideoCaptureReader():54
- /vol/bitbucket/zy3023/code/motion/humor/external/openpose/src/openpose/producer/videoCaptureReader.cpp:VideoCaptureReader():58
- /vol/bitbucket/zy3023/code/motion/humor/external/openpose/src/openpose/producer/producer.cpp:createProducer():475
- /vol/bitbucket/zy3023/code/motion/humor/external/openpose/include/openpose/wrapper/wrapperAuxiliary.hpp:configureThreadManager():1221
- /vol/bitbucket/zy3023/code/motion/humor/external/openpose/include/openpose/wrapper/wrapper.hpp:exec():424
/vol/bitbucket/zy3023/code/motion/humor/external/openpose/include/openpose/thread/threadManager.hpp:stop():230
/vol/bitbucket/zy3023/code/motion/humor/external/openpose/include/openpose/thread/threadManager.hpp:stop():233
/vol/bitbucket/zy3023/code/motion/humor/external/openpose/include/openpose/thread/threadManager.hpp:stop():237
/vol/bitbucket/zy3023/code/motion/humor/external/openpose/include/openpose/thread/threadManager.hpp:stop():239

For --image_dir examples/media/, I got:

Starting OpenPose demo...
Configuring OpenPose...
Starting thread(s)...
Auto-detecting all available GPUs... Detected 7 GPU(s), using 7 of them starting at GPU 0.
F1031 19:29:49.952697 817102 cudnn_conv_layer.cpp:53] Check failed: status == CUDNN_STATUS_SUCCESS (1 vs. 0)  CUDNN_STATUS_NOT_INITIALIZED
*** Check failure stack trace: ***
    @     0x77ce3a23ab03  google::LogMessage::Fail()
    @     0x77ce3a2429d1  google::LogMessage::SendToLog()
    @     0x77ce3a23a7c2  google::LogMessage::Flush()
    @     0x77ce3a23c78f  google::LogMessageFatal::~LogMessageFatal()
    @     0x77ce38fa7e0b  caffe::CuDNNConvolutionLayer<>::LayerSetUp()
    @     0x77ce39091199  caffe::Net<>::Init()
    @     0x77ce39093120  caffe::Net<>::Net()
    @     0x77ce3a75b98c  op::NetCaffe::initializationOnThread()
    @     0x77ce3a77570f  op::addCaffeNetOnThread()
    @     0x77ce3a7769eb  op::PoseExtractorCaffe::netInitializationOnThread()
    @     0x77ce3a77b496  op::PoseExtractorNet::initializationOnThread()
    @     0x77ce3a773417  op::PoseExtractor::initializationOnThread()
    @     0x77ce3a76ed57  op::WPoseExtractor<>::initializationOnThread()
    @     0x77ce3a7a4145  op::Worker<>::initializationOnThreadNoException()
    @     0x77ce3a7a42b8  op::SubThread<>::initializationOnThread()
    @     0x77ce3a7a5cd8  op::Thread<>::initializationOnThread()
    @     0x77ce3a7a835c  op::Thread<>::threadFunction()
    @     0x77ce3a3f3b65  execute_native_thread_routine
    @     0x77ce3a094ac3  (unknown)
    @     0x77ce3a126850  (unknown)
    @              (nil)  (unknown)
Aborted

Type of Issue

Select the topic(s) on your post, delete the rest:

  • Compilation/installation error
  • Execution error

Your System Configuration

  1. Whole console output (if errors appeared), paste the error to PasteBin and then paste the link here: LINK

  2. OpenPose version: Latest GitHub code

  3. General configuration:

    • Installation mode: CMake, sh script, manual Makefile installation, ... (Ubuntu); CMake, ... (Windows); ...?
    • Operating system (lsb_release -a in Ubuntu): Ubuntu 22.04.5 LTS
    • Operating system version (e.g., Ubuntu 16, Windows 10, ...): Ubuntu 22.04.5 LTS
    • Release or Debug mode? (by default: release):
    • Compiler (gcc --version in Ubuntu or VS version in Windows): gcc (conda-forge gcc 14.2.0-1) 14.2.0
  4. Non-default settings:

    • 3-D Reconstruction module added? (by default: no):
    • Any other custom CMake configuration with respect to the default version? (by default: no):
  5. 3rd-party software:

    • Caffe version: Default from OpenPose
    • CMake version (cmake --version in Ubuntu): 3.30.3
    • OpenCV version: compiled from source, 3.4.16
  6. If GPU mode issue:

    • CUDA version (cat /usr/local/cuda/version.txt in most cases): 11.7
    • cuDNN version: 8.4
    • GPU model (nvidia-smi in Ubuntu): A100
  7. If Python API:

    • Python version: 2.7, 3.7, ...?
    • Numpy version (python -c "import numpy; print numpy.version.version" in Ubuntu):
@linjiangya linjiangya changed the title Fail to compile openpose on Linux boost/shared_ptr.hpp: No such file or directory Oct 30, 2024
@linjiangya linjiangya changed the title boost/shared_ptr.hpp: No such file or directory Fail to run demo (VideoCapture (IP camera/video) could not be opened for path) Oct 31, 2024
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

1 participant