openpose_unity_plugin icon indicating copy to clipboard operation
openpose_unity_plugin copied to clipboard

VideoCapture (IP camera/video) could not be opened for path: '1'. If it is a video path, is the path correct? How do I solve this?

Open JulessFontys opened this issue 3 years ago • 2 comments

Posting rules

  1. Duplicated posts will not be answered. Check the FAQ section, other GitHub issues, and general documentation before posting. E.g., low-speed, out-of-memory, output format, 0-people detected, installation issues, ...).
  2. Fill the Your System Configuration section (all of it or it will not be answered!) if you are facing an error or unexpected behavior. Feature requests or some other type of posts might not require it.
  3. No questions about OpenPose or 3rd party libraries:
    • OpenPose-related issues should check the official OpenPose GitHub repository.
    • Caffe errors/issues, check Caffe documentation.
    • CUDA check failed errors: They are usually fixed by re-installing CUDA, then re-installing the proper cuDNN version, and then re-compiling (or re-installing) OpenPose. Otherwise, check for help in CUDA forums.
    • OpenCV errors: Install the default/pre-compiled OpenCV or check for online help.
  4. Set a proper issue title: add the Ubuntu/Windows keyword and be specific (e.g., do not call it: Error).
  5. Only English comments. Posts which do not follow these rules will be ignored, closed, or reported with no further clarification.

Issue Summary

I'm pretty new to Unity. I'm working in the 'Demo' scene. I'm trying to get OpenPose in Unity to work of a video but I can't get it to work. I set the Input Type to video but I don't know where I can select what video it needs to be using (I'm pretty new). I also added the videos to a new project folder for easier access. So I added a videoplayer to the (Canvas > Panel). Now I can see the video but nothing is happening. It gives me the error that the video path is incorrect but I have no idea how to solve it. I'm probably doing something obvious really really wrong but I can't figure it out :(

Executed Command (if any)

OpenPose Output (if any)

OP_Log: Starting OpenPose... UnityEngine.Debug:Log(Object) OpenPose.<>c:<.cctor>b__29_0(String, Int32) (at Assets/OpenPose/Modules/Scripts/OPWrapper.cs:229) OpenPose.OPBind:_OPRun() OpenPose.OPWrapper:OPExecuteThread() (at Assets/OpenPose/Modules/Scripts/OPWrapper.cs:268) System.Threading.ThreadHelper:ThreadStart()

Errors (if any)

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

Type of Issue

You might select multiple topics, delete the rest:

  • Help wanted
  • Question

Your System Configuration

  1. Whole console output (if errors appeared), paste the error to PasteBin and then paste the link here: https://pastebin.com/m5pm0wNx

  2. OpenPose version: OpenPose Unity Plugin default? Or specific commit (e.g., d52878f)? Or specific version from Release section (e.g., 1.5.0)? OpenPose Unity Plugin v1.0.0alpha-1.5.0

  3. General configuration:

    • Operating system (lsb_release -a in Ubuntu): Windows 10
    • Release or Debug mode? (by default: release): release
    • Compiler (gcc --version in Ubuntu or VS version in Windows): 5.4.0, ... (Ubuntu); VS2015 Enterprise Update 3, VS2017 community, ... (Windows); ...?
  4. Non-default settings:

    • Any custom OpenPose configuration with respect to the default version? (by default: no): no
  5. 3rd-party software:

    • Caffe version: Default from OpenPose, custom version, ...?
    • OpenCV version: pre-compiled apt-get install libopencv-dev (only Ubuntu); OpenPose default (only Windows); compiled from source? If so, 2.4.9, 2.4.12, 3.1, 3.2?; ...?
  6. If GPU mode issue:

    • CUDA version (cat /usr/local/cuda/version.txt in most cases):
    • cuDNN version:
    • GPU model (nvidia-smi in Ubuntu): Intel HD Graphics 620
  7. If CPU-only mode issue:

    • CPU brand & model: Intel Core i5 7200U @ 2.50GHz
    • Total RAM memory available: 8GB
  8. If Windows system:

    • Default OpenPose DLL or Portable demo or compiled library?
  9. If speed performance issue:

    • Run the OpenPose binaries and report the OpenPose timing speed based on this link.

JulessFontys avatar Feb 23 '21 09:02 JulessFontys

Anyone who can help me?

JulessFontys avatar Mar 01 '21 08:03 JulessFontys

@JulessFontys

I remembered that you can put your path on the openpose variable.

shaojim12 avatar Apr 23 '21 20:04 shaojim12