FORTH-ModelBasedTracker / PyOpenPose

Python bindings for the Openpose library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to save output keypoints as json file?

JasOlean opened this issue · comments

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?