fixed imports
This commit is contained in:
@@ -3,7 +3,7 @@ import math
|
|||||||
import cv2 as cv
|
import cv2 as cv
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from .utils import to_board_pose_euler
|
from ar_tag_pose.utils import to_board_pose_euler
|
||||||
|
|
||||||
RESULTS_FOLDER = "results"
|
RESULTS_FOLDER = "results"
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import cv2 as cv
|
import cv2 as cv
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from .board_pose import BoardPose
|
from ar_tag_pose.board_pose import BoardPose
|
||||||
from .types import ARUCO_DICT
|
from ar_tag_pose.types import ARUCO_DICT
|
||||||
|
|
||||||
def factory(dict_type: int, board_size: cv.typing.Size, marker_length: float=100.0, marker_sep=10):
|
def factory(dict_type: int, board_size: cv.typing.Size, marker_length: float=100.0, marker_sep=10):
|
||||||
aruco_dict = cv.aruco.getPredefinedDictionary(dict_type)
|
aruco_dict = cv.aruco.getPredefinedDictionary(dict_type)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import cv2 as cv
|
import cv2 as cv
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from .board_pose import BoardPose
|
from ar_tag_pose.board_pose import BoardPose
|
||||||
from .types import ARUCO_DICT
|
from ar_tag_pose.types import ARUCO_DICT
|
||||||
|
|
||||||
def factory(dict_type: int, board_size: cv.typing.Size, square_length: float = 5.0, marker_length: float = 3.0):
|
def factory(dict_type: int, board_size: cv.typing.Size, square_length: float = 5.0, marker_length: float = 3.0):
|
||||||
aruco_dict = cv.aruco.getPredefinedDictionary(dict_type)
|
aruco_dict = cv.aruco.getPredefinedDictionary(dict_type)
|
||||||
|
|||||||
Reference in New Issue
Block a user