You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Merge branch 'opencv' into keyframe-refactor
This commit is contained in:
@@ -224,7 +224,7 @@ void KeyFrameBBox::ScalePoints(double time_scale){
|
||||
bool KeyFrameBBox::LoadBoxData(std::string inputFilePath)
|
||||
{
|
||||
// Variable to hold the loaded data
|
||||
libopenshottracker::Tracker bboxMessage;
|
||||
pb_tracker::Tracker bboxMessage;
|
||||
|
||||
// Read the existing tracker message.
|
||||
fstream input(inputFilePath, ios::in | ios::binary);
|
||||
@@ -242,13 +242,13 @@ bool KeyFrameBBox::LoadBoxData(std::string inputFilePath)
|
||||
for (size_t i = 0; i < bboxMessage.frame_size(); i++)
|
||||
{
|
||||
// Get data of the i-th frame
|
||||
const libopenshottracker::Frame &pbFrameData = bboxMessage.frame(i);
|
||||
const pb_tracker::Frame &pbFrameData = bboxMessage.frame(i);
|
||||
|
||||
// Get frame number
|
||||
size_t frame_number = pbFrameData.id();
|
||||
|
||||
// Get bounding box data from current frame
|
||||
const libopenshottracker::Frame::Box &box = pbFrameData.bounding_box();
|
||||
const pb_tracker::Frame::Box &box = pbFrameData.bounding_box();
|
||||
|
||||
float width = box.x2() - box.x1();
|
||||
float height = box.y2() - box.y1();
|
||||
|
||||
Reference in New Issue
Block a user