PyOpenPose
PyOpenPose copied to clipboard
How to save output keypoints as json file?
After extracting hand or face keypoints, how to save these keypoints as json file?
You use the getKeypoints method. The keypoints are return as a matrix with one keypoint (X,Y) per row. You can use the json library of python to store the matrix to a json file.
I mean how to use json format in original openpose? After I get keypoints from getKeypoints, I want to use write json of openpose. How to call write json in PyOpenPose?