Merge pull request #585 from OpenShot/opencv

3 New OpenCV Effects (Tracker, Stabilization, and Object Detection)
This commit is contained in:
Jonathan Thomas
2021-01-28 17:28:15 -06:00
committed by GitHub
52 changed files with 5269 additions and 45 deletions

View File

@@ -983,11 +983,11 @@ void Clip::SetJsonValue(const Json::Value root) {
for (const auto existing_effect : root["effects"]) {
// Create Effect
EffectBase *e = NULL;
if (!existing_effect["type"].isNull()) {
// Create instance of effect
if ( (e = EffectInfo().CreateEffect(existing_effect["type"].asString())) ) {
// Create instance of effect
if ( (e = EffectInfo().CreateEffect(existing_effect["type"].asString()))) {
// Load Json into Effect
e->SetJsonValue(existing_effect);