Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Lim Xiang Yann 469d6ed0ac
Doc improvements for mac (hw.logicalcpu) (#1415)
4 years ago
..
d5d3427414
OpenCV (so all 3rdparty deps) removed from headers
4 years ago
469d6ed0ac
Doc improvements for mac (hw.logicalcpu) (#1415)
4 years ago

README.md

You have to be logged in to leave a comment. Sign In

Adding and Testing Custom Code

Purpose

You can quickly add your custom code into this folder so that quick prototypes can be easily tested without having to create a whole new project just for it.

How-to

  1. Install/compile OpenPose as usual.
  2. Add your custom *.cpp / *.hpp files here,. Hint: You might want to start by copying the OpenPoseDemo example or any of the examples/tutorial_api_cpp/ examples. Then, you can simply modify their content.
  3. Add the name of your custom *.cpp / *.hpp files at the top of the examples/user_code/CMakeLists.txt file.
  4. Re-compile OpenPose. Depending on your OS, that means...
  • Ubuntu:
cd build/
make -j`nproc`
  • Mac:
cd build/
make -j`sysctl -n hw.logicalcpu`
  • Windows: Close Visual Studio, re-run CMake, and re-compile the project in Visual Studio.
  1. Run step 4 every time that you make changes into your code.

Running your Custom Code

Run:

./build/examples/user_code/{your_custom_file_name}
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...