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

Method AddFrameDataToProto

src/CVTracker.cpp:362–374  ·  view source on GitHub ↗

Add frame tracked data into protobuf message.

Source from the content-addressed store, hash-verified

360
361// Add frame tracked data into protobuf message.
362void CVTracker::AddFrameDataToProto(pb_tracker::Frame* pbFrameData, FrameData& fData) {
363
364 // Save frame number and rotation
365 pbFrameData->set_id(fData.frame_id);
366 pbFrameData->set_rotation(0);
367
368 pb_tracker::Frame::Box* box = pbFrameData->mutable_bounding_box();
369 // Save bounding box data
370 box->set_x1(fData.x1);
371 box->set_y1(fData.y1);
372 box->set_x2(fData.x2);
373 box->set_y2(fData.y2);
374}
375
376// Get tracker info for the desired frame
377FrameData CVTracker::GetTrackedData(size_t frameId){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected