From 2ce2752e4ba1a02cf6abed03c8aeb83ba5a0b418 Mon Sep 17 00:00:00 2001 From: Robin Bijl <r.a.bijl@student.tudelft.nl> Date: Fri, 31 May 2019 17:38:01 +0200 Subject: [PATCH] makes page and marker format global variables and changes the tests to make use of updated coords --- tests/test_scans.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_scans.py b/tests/test_scans.py index 79a4e7aa..8ea9f718 100644 --- a/tests/test_scans.py +++ b/tests/test_scans.py @@ -286,12 +286,12 @@ def test_image_extraction(datadir, filename): @pytest.mark.parametrize('file_name', ["a4-rotated.png", "a4-3-markers.png", "a4-rotated-3-markers.png"]) def test_realign_image(datadir, file_name): dir_name = "cornermarkers" - epsilon = 2 + epsilon = 1 test_file = os.path.join(datadir, dir_name, file_name) test_image = np.array(PIL.Image.open(test_file)) - correct_corner_markers = [(59, 59), (1181, 59), (59, 1694), (1181, 1694)] + correct_corner_markers = [(59, 59), (1181, 59), (59, 1695), (1181, 1695)] result_image, result_corner_markers = scans.realign_image(test_image) -- GitLab