Skip to content

Commit 36c7222

Browse files
committed
Fixed Json in Tracker Tests
1 parent d9e4f04 commit 36c7222

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/CVTracker.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ TEST_CASE( "Track_Video", "[libopenshot][opencv][tracker]" )
5757
{
5858
"protobuf_data_path": "kcf_tracker.data",
5959
"tracker-type": "KCF",
60-
"region": {"x": 294, "y": 102, "width": 180, "height": 166, "first-frame": 1}
60+
"region": {"normalized_x": 0.459375, "normalized_y": 0.28333, "normalized_width": 0.28125, "normalized_height": 0.461111, "first-frame": 1}
6161
} )proto";
6262

6363
// Create tracker
@@ -73,9 +73,9 @@ TEST_CASE( "Track_Video", "[libopenshot][opencv][tracker]" )
7373
float height = fd.y2 - y;
7474

7575
// Compare if tracked data is equal to pre-tested ones
76-
CHECK((int)(x * 640) == 259);
77-
CHECK((int)(y * 360) == 131);
78-
CHECK((int)(width * 640) == 180);
76+
CHECK((int)(x * 640) == 256);
77+
CHECK((int)(y * 360) == 134);
78+
CHECK((int)(width * 640) == 179);
7979
CHECK((int)(height * 360) == 166);
8080
}
8181

0 commit comments

Comments
 (0)