38 processingType(processingType), processInfoJson(processInfoJson){
42 processInfoJson = json;
45 if(processingType ==
"Stabilizer"){
46 t = std::thread(&ClipProcessingJobs::stabilizeClip,
this, std::ref(clip), std::ref(this->processingController));
48 if(processingType ==
"Tracker"){
49 t = std::thread(&ClipProcessingJobs::trackClip,
this, std::ref(clip), std::ref(this->processingController));
51 if(processingType ==
"Object Detector"){
52 t = std::thread(&ClipProcessingJobs::detectObjectsClip,
this, std::ref(clip), std::ref(this->processingController));
60 CVTracker tracker(processInfoJson, controller);
142 return processingController.
GetError();
Header for ClipProcessingJobs class.
This class stabilizes a video frame using optical flow.
void stabilizeClip(openshot::Clip &video, size_t _start=0, size_t _end=0, bool process_interval=false)
Process clip and store necessary stabilization data.
ClipProcessingJobs(std::string processingType, std::string processInfoJson)
void trackClip(openshot::Clip &video, size_t _start=0, size_t _end=0, bool process_interval=false)
This class represents a clip (used to arrange readers on the timeline)
void processClip(Clip &clip, std::string json)
This class runs trought a clip to detect objects and returns the bounding boxes and its properties...
std::string GetErrorMessage()
bool SaveTrackedData()
Save protobuf file.
void detectObjectsClip(openshot::Clip &video, size_t start=0, size_t end=0, bool process_interval=false)
This namespace is the default namespace for all code in the openshot library.
The tracker class will receive one bounding box provided by the user and then iterate over the clip f...
bool SaveObjDetectedData()
Protobuf Save and Load methods.
std::string GetErrorMessage()
bool SaveStabilizedData()