1

我想使用 ArUco 标记来做 AR,我想知道我是否可以在灰度 OpenCV 图像中跟踪 ArUco 标记?

谢谢。

YL

4

1 回答 1

1

是的,Aruco 能够检测灰度图像。

frame = cv2.imread("aruco_captured_image.png")
gray = cv2.cvtColor(frame, cv2.COLOR_RGB2GRAY)
aruco_dict = aruco.Dictionary_get(aruco.DICT_6X6_250)
parameters = aruco.DetectorParameters_create()
corners, ids, rejectedImgPoints = aruco.detectMarkers(gray, aruco_dict, parameters=parameters)

当我通过单个捕获的帧时,这对于 aruco 检测效果很好。

于 2018-09-20T04:47:51.677 回答