Code Monkey home page Code Monkey logo

Comments (2)

KanaHayama avatar KanaHayama commented on August 27, 2024

Hello @youssef266 .
I haven't seen this before. I am sorry that from this error message, I cannot tell where the problem is.
I think there are 2 possible places that may lead to this problem. The first is that the runtime environment is not compatible, the second one is that the way that components are connected is not the optimal form (The stable version in the master branch does not detect connection errors).

Maybe you can first create a configuration containing only MediaCapture and ColorVideoVisualizer to test whether the webcam is working well.
The full pipeline should contain MediaCapture , OpenPose and OpenPoseVisualizer. Where OpenPoseVisualizer accepts outputs from both MediaCapture and OpenPose.

For the question about pushing the output to other places, OpenSense only supports /psi built-in remoting protocol. You can receive data from another host only if you can run .net core in your ROS,

Actually, I cannot recall the detailed implementation of the version in the master branch. Our latest version (now in the dev branch) has changed a lot and it provides the ability to easily add new customized components, maybe you want to use that to implement a private protocol to send data.

By the way, here are the detail steps to run OpenPose in OpenSense using the version in the dev branch.

  • Switch to the dev branch.
  • Open the visual studio solution file OpenSense.sln
  • Double click project WpfApplication to open and edit its project file.
  • add <ProjectReference Include="..\Psi.Media.Windows.Wpf\Psi.Media.Windows.Wpf.csproj" />, <ProjectReference Include="..\OpenPose.Wpf\OpenPose.Wpf.csproj" /> and <ProjectReference Include="..\OpenPose.Visualizer.Wpf\OpenPose.Visualizer.Wpf.csproj" /> between line 53 to 62. By adding these dependencies of required components, you do not need to copy compiled DLLs manually.
  • Modify the target build architecture from Any CPU to x64 on the top of visual studio, because OpenPose only supports .net framework not .net standard like other components.
  • Build the WpfApplication project.
  • Copy OpenSense\OpenPosePInvoke\OpenPoseLib\models directory to the output directory of WpfApplication. These are the model files of OpenPose which can not be copied automatically.
  • Copy all the files under OpenSense\OpenPosePInvoke\OpenPoseLib\bin\x64\Common and OpenSense\OpenPosePInvoke\OpenPoseLib\bin\x64\Debug (if you are using the Debug configuration). These are native OpenPose libraries which also can not be copied automatically.
  • Run the WpfApplication and open the configuration file here: openpose sample config dev branch.pipe.zip
  • Change the default webcam of this configuration, and you may want to reduce to resolution to increase the frame rate.
  • Run this pipeline to see the result.

Please feel free to ask if you meet any further problems.

from opensense.

KanaHayama avatar KanaHayama commented on August 27, 2024

Some clarifications:

  • Since by now our OpenSense only supports /psi built-in protocol. If you want to run OpenSense in your ROS to receive data, the ROS should be able to install a .net core runtime.
  • If you choose to implement a private protocol to send data, you do not need OpenSense in your ROS. I will provide information if you want to write a customized component. Or you can just add your code after line 97 of OpenPose.cs.
  • The latest version output directory layout will should look like this
Debug/
   models/
   ......
   cublas64_100.dll
   ......
   openposed.dll
   ......
   OpenSense.Wpf.exe
   ......

from opensense.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.