aboutsummaryrefslogtreecommitdiff
path: root/src/argaze.test
diff options
context:
space:
mode:
authorThéo de la Hogue2024-04-10 12:37:08 +0200
committerThéo de la Hogue2024-04-10 12:37:08 +0200
commitc03097c7b8e9b3fbbe188c0c99908fae2b28ba37 (patch)
treec7a5d1db9d65e27db19c0f91d74c8cd3202ffc8a /src/argaze.test
parentf3a09d79cafef66693c1792d21d722870ab53dc7 (diff)
downloadargaze-c03097c7b8e9b3fbbe188c0c99908fae2b28ba37.zip
argaze-c03097c7b8e9b3fbbe188c0c99908fae2b28ba37.tar.gz
argaze-c03097c7b8e9b3fbbe188c0c99908fae2b28ba37.tar.bz2
argaze-c03097c7b8e9b3fbbe188c0c99908fae2b28ba37.tar.xz
Adding new argaze.load package function to ease the access to DataFeatures.from_json function.
Diffstat (limited to 'src/argaze.test')
-rw-r--r--src/argaze.test/ArUcoMarkers/ArUcoCamera.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/argaze.test/ArUcoMarkers/ArUcoCamera.py b/src/argaze.test/ArUcoMarkers/ArUcoCamera.py
index 091383e..eb930ab 100644
--- a/src/argaze.test/ArUcoMarkers/ArUcoCamera.py
+++ b/src/argaze.test/ArUcoMarkers/ArUcoCamera.py
@@ -19,7 +19,7 @@ __license__ = "GPLv3"
import unittest
import os
-from argaze.ArUcoMarkers import ArUcoCamera
+import argaze
import numpy
@@ -34,7 +34,7 @@ class TestArUcoCameraClass(unittest.TestCase):
json_filepath = os.path.join(current_directory, 'utils/aruco_camera.json')
# Load test aruco camera
- with ArUcoCamera.ArUcoCamera.from_json(json_filepath) as aruco_camera:
+ with argaze.load(json_filepath) as aruco_camera:
# Check aruco camera meta data
self.assertEqual(aruco_camera.name, "TestArUcoCamera")