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);
62 tracker.trackClip(clip);
72 tracker.SaveTrackedData();
82 CVObjectDetection objDetector(processInfoJson, controller);
84 objDetector.detectObjectsClip(clip);
94 objDetector.SaveObjDetectedData();
104 stabilizer.stabilizeClip(clip);
114 stabilizer.SaveStabilizedData();
142 return processingController.
GetError();
Header for ClipProcessingJobs class.
This class stabilizes a video frame using optical flow.
std::string GetErrorMessage()
The tracker class will receive one bounding box provided by the user and then iterate over the clip f...
void processClip(Clip &clip, std::string json)
ClipProcessingJobs(std::string processingType, std::string processInfoJson)
std::string GetErrorMessage()
This class represents a clip (used to arrange readers on the timeline)
This namespace is the default namespace for all code in the openshot library.