diff options
Diffstat (limited to 'src/argaze.test')
-rw-r--r-- | src/argaze.test/ArUcoMarkers/ArUcoDetector.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/argaze.test/ArUcoMarkers/ArUcoDetector.py b/src/argaze.test/ArUcoMarkers/ArUcoDetector.py index 750aaa5..403d1a6 100644 --- a/src/argaze.test/ArUcoMarkers/ArUcoDetector.py +++ b/src/argaze.test/ArUcoMarkers/ArUcoDetector.py @@ -89,10 +89,10 @@ class TestArUcoDetectorClass(unittest.TestCase): # Load picture Full HD to test ArUcoMarker detection current_directory = os.path.dirname(os.path.abspath(__file__)) - frame = cv.imread(os.path.join(current_directory, 'utils/full_hd_marker.png')) + image = cv.imread(os.path.join(current_directory, 'utils/full_hd_marker.png')) # Check ArUcoMarker detection - aruco_detector.detect_markers(frame) + aruco_detector.detect_markers(image) self.assertEqual(aruco_detector.detected_markers_number, 1) @@ -126,10 +126,10 @@ class TestArUcoDetectorClass(unittest.TestCase): # Load picture Full HD to test ArUcoMarker board detection current_directory = os.path.dirname(os.path.abspath(__file__)) - frame = cv.imread(os.path.join(current_directory, 'utils/full_hd_board.png')) + image = cv.imread(os.path.join(current_directory, 'utils/full_hd_board.png')) # Check ArUcoMarker board detection - aruco_detector.detect_board(frame, aruco_board, aruco_board.markers_number) + aruco_detector.detect_board(image, aruco_board, aruco_board.markers_number) self.assertEqual(aruco_detector.board_corners_number, aruco_board.corners_number) self.assertEqual(len(aruco_detector.board_corners), 24) |