opencv - 在灰度 OpenCV 图像中跟踪 ArUco 标记?

标签 opencv aruco

我想使用 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/

相关文章:

c++ - OpenCV 错误 : Unsupported format or combination of formats (vector of vectors of points of type Point3f)

c++ - 使用 openCv 的 Aruco 标记,获取 3d 角坐标?

python - 属性错误 : 'module' object has no attribute 'drawAxis'

opencv - 用于构建 OpenCV 的 OpenCL 内核错误生成

python - opencv cap.read 有一个属性错误。如何排除故障?

python - opencv2 Aruco 库模块不适用于 python

c++ - Aruco 函数 estimatePoseSingleMarkers() 错误

python - opencv python 中每个 channel 的 HSV 、 YCrCb 和 LAB 颜色空间的像素值范围是多少

c++ - 如何判断棋盘上是否有棋子?

c++ - OpenCV - 如何计算照片中的物体?