Add frame tracked data into protobuf message.
| 360 | |
| 361 | // Add frame tracked data into protobuf message. |
| 362 | void 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 |
| 377 | FrameData CVTracker::GetTrackedData(size_t frameId){ |
nothing calls this directly
no outgoing calls
no test coverage detected