Added zoom to Stabilizer Effect

This commit is contained in:
Brenno
2020-07-22 14:05:19 -03:00
parent 6d6c156415
commit e69f7b8f12
6 changed files with 39 additions and 11 deletions

View File

@@ -71,6 +71,16 @@ void displayClip(openshot::Clip &r9){
cv::destroyAllWindows();
}
/*
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The following methods are just for getting JSON info to the pre-processing effects
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
*/
// Return JSON string for the tracker effect
string trackerJson(cv::Rect2d r, bool onlyProtoPath){
// Set the tracker
@@ -108,6 +118,16 @@ string stabilizerJson(bool onlyProtoPath){
return "{" + protobuf_data_path + ", " + smoothing_window.str() + "}";
}
string objectDetectionJson(bool onlyProtoPath){
// Construct all the composition of the JSON string
string protobuf_data_path = "\"protobuf_data_path\": \"example_object_detection.data\"";
// Return only the the protobuf path in JSON format
if(onlyProtoPath)
return "{" + protobuf_data_path + "}";
}
int main(int argc, char* argv[]) {
// Set pre-processing effects