OpenShot Library | libopenshot
0.4.0
|
Go to the documentation of this file.
14 #ifndef OPENSHOT_TRACKER_EFFECT_H
15 #define OPENSHOT_TRACKER_EFFECT_H
32 class TrackedObjectBBox;
45 void init_effect_details();
57 Tracker(std::string clipTrackerDataPath);
64 std::shared_ptr<Frame>
GetFrame(std::shared_ptr<Frame> frame, int64_t frame_number)
override;
66 std::shared_ptr<openshot::Frame>
68 return GetFrame(std::shared_ptr<Frame>(
new Frame()), frame_number);
77 std::string
Json()
const override;
79 void SetJson(
const std::string value)
override;
89 std::string
PropertiesJSON(int64_t requested_frame)
const override;
std::string Json() const override
Generate JSON string of this object.
This abstract class is the base class, used by all effects in libopenshot.
This namespace is the default namespace for all code in the openshot library.
This class represents a fraction.
void SetJson(const std::string value) override
Load JSON string into this object.
std::string GetVisibleObjects(int64_t frame_number) const override
Get the indexes and IDs of all visible objects in the given frame.
This class represents a single frame of video (i.e. image & audio data)
Header file for EffectBase class.
Header file for the Keyframe class.
std::string PropertiesJSON(int64_t requested_frame) const override
std::string protobuf_data_path
Path to the protobuf file that holds the bounding-box data.
Json::Value JsonValue() const override
Generate Json::Value for this object.
This class tracks a given object through the clip, draws a box around it and allow the user to attach...
std::shared_ptr< openshot::Frame > GetFrame(int64_t frame_number) override
This method is required for all derived classes of ClipBase, and returns a new openshot::Frame object...
std::shared_ptr< TrackedObjectBBox > trackedData
Pointer to an object that holds the bounding-box data and it's Keyframes.
std::shared_ptr< Frame > GetFrame(std::shared_ptr< Frame > frame, int64_t frame_number) override
Apply this effect to an openshot::Frame.
void SetJsonValue(const Json::Value root) override
Load Json::Value into this object.
Header file for the TrackedObjectBBox class.
Header file for JSON class.
Tracker()
Default constructor.