refactored

This commit is contained in:
2025-11-28 16:34:51 +01:00
parent 05399fdce1
commit 5ca684de0b
2 changed files with 4 additions and 8 deletions
+2 -4
View File
@@ -1,9 +1,7 @@
from PIL.ImageOps import posterize
import cv2 as cv
import numpy as np
from ar_tag_pose import ArTagPose
from aruco_types import ARUCO_DICT
import numpy as np
import cv2 as cv
def factory(dict_type: int, board_size: cv.typing.Size, marker_length: float=100.0, marker_sep=10, margins=10):
aruco_dict = cv.aruco.getPredefinedDictionary(dict_type)
+2 -4
View File
@@ -1,9 +1,7 @@
from PIL.ImageOps import posterize
import cv2 as cv
import numpy as np
from ar_tag_pose import ArTagPose
from aruco_types import ARUCO_DICT
import numpy as np
import cv2 as cv
def factory(dict_type: int, board_size: cv.typing.Size, square_length: float = 5.0, marker_length: float = 3.0, margin_length=0):
im_w = 800