FORTH-ModelBasedTracker / PyOpenPose

Python bindings for the Openpose library
BSD 3-Clause "New" or "Revised" License
287 stars 80 forks source link

How to save output keypoints as json file? #79

Open JasOlean opened 5 years ago

JasOlean commented 5 years ago

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

padeler commented 5 years ago

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.

JasOlean commented 5 years ago

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?