aboutsummaryrefslogtreecommitdiff
path: root/src/argaze.test/ArUcoMarkers
diff options
context:
space:
mode:
authorThéo de la Hogue2023-06-21 09:03:41 +0200
committerThéo de la Hogue2023-06-21 09:03:41 +0200
commita594afb5bb17798cd138f1632dcfc53f4eaac09f (patch)
treeac3527627e4171e6fd545c73e0cc81f49dfe6a94 /src/argaze.test/ArUcoMarkers
parent0354377903fbc8a828b5735b2d25e1c5bc02c768 (diff)
downloadargaze-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/ArUcoMarkers')
-rw-r--r--src/argaze.test/ArUcoMarkers/ArUcoDetector.py8
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)