aboutsummaryrefslogtreecommitdiff
path: root/src/argaze.test/ArUcoMarkers/ArUcoMarkersDictionary.py
diff options
context:
space:
mode:
authorThéo de la Hogue2023-03-14 14:49:05 +0100
committerThéo de la Hogue2023-03-14 14:49:05 +0100
commit421fc1ee8b4b754df6af846f083b99d629c4fb6f (patch)
tree44d1054caf816cfe1453bd9cf1c1d8b460825d69 /src/argaze.test/ArUcoMarkers/ArUcoMarkersDictionary.py
parent27999659257ec15ebf6a598b65b47f3f19ddaaa8 (diff)
downloadargaze-421fc1ee8b4b754df6af846f083b99d629c4fb6f.zip
argaze-421fc1ee8b4b754df6af846f083b99d629c4fb6f.tar.gz
argaze-421fc1ee8b4b754df6af846f083b99d629c4fb6f.tar.bz2
argaze-421fc1ee8b4b754df6af846f083b99d629c4fb6f.tar.xz
Default ArUco Dictionary creation.
Diffstat (limited to 'src/argaze.test/ArUcoMarkers/ArUcoMarkersDictionary.py')
-rw-r--r--src/argaze.test/ArUcoMarkers/ArUcoMarkersDictionary.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/argaze.test/ArUcoMarkers/ArUcoMarkersDictionary.py b/src/argaze.test/ArUcoMarkers/ArUcoMarkersDictionary.py
index 58849a6..e27580f 100644
--- a/src/argaze.test/ArUcoMarkers/ArUcoMarkersDictionary.py
+++ b/src/argaze.test/ArUcoMarkers/ArUcoMarkersDictionary.py
@@ -15,13 +15,20 @@ class TestArUcoMarkersDictionaryClass(unittest.TestCase):
aruco_dictionary = ArUcoMarkersDictionary.ArUcoMarkersDictionary('BAD_DICT_NAME')
- # Check DICT_ARUCO_ORIGINAL ArUcoMarkersDictionary creation
- aruco_dictionary = ArUcoMarkersDictionary.ArUcoMarkersDictionary('DICT_ARUCO_ORIGINAL')
+ # Check default ArUcoMarkersDictionary creation
+ aruco_dictionary = ArUcoMarkersDictionary.ArUcoMarkersDictionary()
self.assertEqual(aruco_dictionary.name, 'DICT_ARUCO_ORIGINAL')
self.assertEqual(aruco_dictionary.format, '5X5')
self.assertEqual(aruco_dictionary.number, 1024)
+ # Check DICT_APRILTAG_16h5 ArUcoMarkersDictionary creation
+ aruco_dictionary = ArUcoMarkersDictionary.ArUcoMarkersDictionary('DICT_APRILTAG_16h5')
+
+ self.assertEqual(aruco_dictionary.name, 'DICT_APRILTAG_16h5')
+ self.assertEqual(aruco_dictionary.format, '4X4')
+ self.assertEqual(aruco_dictionary.number, 30)
+
if __name__ == '__main__':
unittest.main() \ No newline at end of file