PyOpenPose icon indicating copy to clipboard operation
PyOpenPose copied to clipboard

How to save output keypoints as json file?

Open JasOlean opened this issue 6 years ago • 2 comments

After extracting hand or face keypoints, how to save these keypoints as json file?

JasOlean avatar Feb 05 '19 04:02 JasOlean

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.

padeler avatar Feb 07 '19 12:02 padeler

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?

JasOlean avatar May 22 '19 09:05 JasOlean