@dicktom wrote:
Kind of stuck on this atm, how can I load an ofJson object from a string that contains json data. There only seems to be a function to load from a file in the openframeworks ofJson.h file?
string data = "{\"bboxes\":[[0.10875897854566574,0.16948606073856354,0.9021437764167786,0.9771744012832642]],\"classes\":[\"person\"],\"scores\":[0.9999969005584717]}"; ofJson jsonData = data;
Tried this and it just crashes when I try to access anything in the jsonData object.
Posts: 1
Participants: 1