You can quickly add your custom code into this folder so that quick prototypes can be easily tested without having to create a whoel new project just for it.
- Install/compile OpenPose as usual.
- Add your custom *.cpp / *.hpp files here,. Hint: You might want to start by copying the OpenPoseDemo example or any of the examples/tutorial_wrapper/ examples. Then, you can simply modify their content.
- Add the name of your custom *.cpp / *.hpp files at the top of the examples/user_code/CMakeLists.txt file.
- Re-compile OpenPose.
# Ubuntu/Mac
cd build/
make -j`nproc`
# Windows
# Close Visual Studio, re-run CMake, and re-compile the project in Visual Studio
- Run step 4 every time that you make changes into your code.
Run:
./build/examples/user_code/{your_custom_file_name}