From 36c72224cf1a7feb725868d151f131188c81be38 Mon Sep 17 00:00:00 2001 From: Brenno Date: Wed, 19 May 2021 10:45:15 -0300 Subject: [PATCH] Fixed Json in Tracker Tests --- tests/CVTracker.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/CVTracker.cpp b/tests/CVTracker.cpp index 5106a2d94..85611a0b9 100644 --- a/tests/CVTracker.cpp +++ b/tests/CVTracker.cpp @@ -57,7 +57,7 @@ TEST_CASE( "Track_Video", "[libopenshot][opencv][tracker]" ) { "protobuf_data_path": "kcf_tracker.data", "tracker-type": "KCF", - "region": {"x": 294, "y": 102, "width": 180, "height": 166, "first-frame": 1} + "region": {"normalized_x": 0.459375, "normalized_y": 0.28333, "normalized_width": 0.28125, "normalized_height": 0.461111, "first-frame": 1} } )proto"; // Create tracker @@ -73,9 +73,9 @@ TEST_CASE( "Track_Video", "[libopenshot][opencv][tracker]" ) float height = fd.y2 - y; // Compare if tracked data is equal to pre-tested ones - CHECK((int)(x * 640) == 259); - CHECK((int)(y * 360) == 131); - CHECK((int)(width * 640) == 180); + CHECK((int)(x * 640) == 256); + CHECK((int)(y * 360) == 134); + CHECK((int)(width * 640) == 179); CHECK((int)(height * 360) == 166); }