Sample code using MoveNet with onnxruntime and openCV in cpp
Based on PINTO_model_zoo
onnxruntime official repository
First, install onnxruntime.
Then, run
mkdir build
cd build
cmake ..
make
You may have to set the variables ONNX_RUNTIME_SESSION_INCLUDE_DIRS
and ONNX_RUNTIME_LIB
if onnxruntime is not detected by cmake.
Use the scripts from PINTO_model_zoo
To change the model file, use --model followed by the model path
To change the dnn input size, use --input_size followed by the input size (one number)
To change the keypoint score threshold, use --keypoint_score followed by the score threshold (between 0 and 1)
To run onnxruntime with cuda, use --cuda
To change the device id of the camera, use --device_id followed by the camera id (one number)