我想使用 ArUco 标记进行 AR,并且想知道是否可以在灰度 OpenCV 图像中跟踪 ArUco 标记?
谢谢。
YL
最佳答案
是的,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 检测效果很好,因为我传递了单个捕获的帧。
关于opencv - 在灰度 OpenCV 图像中跟踪 ArUco 标记?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49184309/