I want to save some boxes and points in image to json file

Hi, All.

į„‰į…³į„į…³į„…į…µį†«į„‰į…£į†ŗ 2022-05-05 į„‹į…©į„’į…® 10.41.44

I want to save some boxes and points in image to a json file.

Like this json file:

bounding boxes:

  • box=[x1, y1, x2, y2]
  • [box1, box2]

keypoints :

  • point=[px, py, display=1]
  • [[heat, tail], [head, tail]]

How can I programming this saving using OF ?
I want to not graphics coding but json coding.
Iā€™m a poor jsoner. --;
Help me ~

Thanks in advance .
Best,
@bemoregt.

1 Like

take a look at ofJson, which is basically this library

check out jsonExample to see if it helps.

1 Like