aboutsummaryrefslogtreecommitdiff
path: root/src/argaze/ArUcoMarkers/ArUcoDetector.py
diff options
context:
space:
mode:
authorThéo de la Hogue2024-01-23 14:54:30 +0100
committerThéo de la Hogue2024-01-23 14:54:30 +0100
commitd904b99cc969c977f911d36cfeb2279544c528e5 (patch)
treeff23c5f0a3279581a86aafe98f86a2894d9f00f1 /src/argaze/ArUcoMarkers/ArUcoDetector.py
parent8d0a2f7c4f3483aac55603a141e23e1dcc5b0dca (diff)
downloadargaze-d904b99cc969c977f911d36cfeb2279544c528e5.zip
argaze-d904b99cc969c977f911d36cfeb2279544c528e5.tar.gz
argaze-d904b99cc969c977f911d36cfeb2279544c528e5.tar.bz2
argaze-d904b99cc969c977f911d36cfeb2279544c528e5.tar.xz
Defing PipelineStepObject and PipelineStepMethod to assess time execution. Removing exception managment to let the user catch them into the script.
Diffstat (limited to 'src/argaze/ArUcoMarkers/ArUcoDetector.py')
-rw-r--r--src/argaze/ArUcoMarkers/ArUcoDetector.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/argaze/ArUcoMarkers/ArUcoDetector.py b/src/argaze/ArUcoMarkers/ArUcoDetector.py
index e6a305f..6d12f3d 100644
--- a/src/argaze/ArUcoMarkers/ArUcoDetector.py
+++ b/src/argaze/ArUcoMarkers/ArUcoDetector.py
@@ -14,6 +14,7 @@ import os
from collections import Counter
import time
+from argaze import DataFeatures
from argaze.ArUcoMarkers import ArUcoMarkersDictionary, ArUcoMarker, ArUcoOpticCalibrator
import numpy
@@ -131,7 +132,7 @@ class DetectorParameters():
return self.__parameters
@dataclass
-class ArUcoDetector():
+class ArUcoDetector(DataFeatures.PipelineStepObject):
"""ArUco markers detector.
Parameters:
@@ -255,6 +256,7 @@ class ArUcoDetector():
return output
+ @DataFeatures.PipelineStepMethod
def detect_markers(self, image: numpy.array) -> float:
"""Detect all ArUco markers into an image.