MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / PropertiesJSON

Method PropertiesJSON

src/effects/Tracker.cpp:291–307  ·  view source on GitHub ↗

Get all properties for a specific frame

Source from the content-addressed store, hash-verified

289
290// Get all properties for a specific frame
291std::string Tracker::PropertiesJSON(int64_t requested_frame) const {
292
293 // Generate JSON properties list
294 Json::Value root = BasePropertiesJSON(requested_frame);
295
296 // Add trackedObject properties to JSON
297 Json::Value objects;
298 for (auto const& trackedObject : trackedObjects){
299 Json::Value trackedObjectJSON = trackedObject.second->PropertiesJSON(requested_frame);
300 // add object json
301 objects[trackedObject.second->Id()] = trackedObjectJSON;
302 }
303 root["objects"] = objects;
304
305 // Return formatted string
306 return root.toStyledString();
307}

Callers 1

GetVisibleObjectsMethod · 0.45

Calls 1

IdMethod · 0.45

Tested by

no test coverage detected