diff options
author | Théo de la Hogue | 2023-06-21 09:03:41 +0200 |
---|---|---|
committer | Théo de la Hogue | 2023-06-21 09:03:41 +0200 |
commit | a594afb5bb17798cd138f1632dcfc53f4eaac09f (patch) | |
tree | ac3527627e4171e6fd545c73e0cc81f49dfe6a94 /src/argaze.test | |
parent | 0354377903fbc8a828b5735b2d25e1c5bc02c768 (diff) | |
download | argaze-a594afb5bb17798cd138f1632dcfc53f4eaac09f.zip argaze-a594afb5bb17798cd138f1632dcfc53f4eaac09f.tar.gz argaze-a594afb5bb17798cd138f1632dcfc53f4eaac09f.tar.bz2 argaze-a594afb5bb17798cd138f1632dcfc53f4eaac09f.tar.xz |
Replacing frame word by image when it is about drawing or detecting.
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) |