You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

OpenCV ArUco Marker检测失败求助:低分辨率是否为诱因?

ArUco Marker检测失败排查

我正尝试使用OpenCV检测图像中的ArUco Marker,但检测未成功。推测可能是分辨率过低导致,但无法确定。我使用在线工具生成了4x4 ID的Marker。

我的代码如下:

aruco_dict = cv2.aruco.getPredefinedDictionary(cv2.aruco.DICT_4X4_100)

def find_marker(img, x1, y1, x2, y2):
    img = img[y1:y2, x1:x2]
    img = imutils.resize(img, width=500)
    cv2.imshow('result', img)
    cv2.waitKey(0)
    corners, ids, rej = cv2.aruco.detectMarkers(img, aruco_dict)
    print(corners)
    print(ids)

运行代码时,cv2.imshow显示的图像如下:
低分辨率的ArUco Marker图像

可见该ArUco Marker分辨率较低但理论上应可识别,然而代码输出corners为(),ids为None。


内容的提问来源于stack exchange,提问作者unfestive chicken

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.07 05:02:47