gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 19:04:51 24 4
gpt4 key购买 nike

我正在使用 ros melodic、opencv 4.5.5、ubuntu 18.04。我绘制了标记 aruco 的 3 轴以显示在 rqt_image_view 上。运行时出现此问题 AttributeError: 'module' object has no attribute 'drawAxis'
这是我的轴图的代码:

 ......................
frame_out = aruco.drawAxis( img, self.K, self.distCoeffs, rvecs, tvecs, axisLength)
...................
self.aruco_marker_img_pub.publish(self.bridge.cv2_to_imgmsg(frame_out, "bgr8"))
.......................
当我在没有 ros 的情况下做 aruco aruco 这是正常的,当它正确时它看起来像这样
enter image description here

最佳答案

我想你的意思是使用 cv2.drawFrameAxes而不是 cv2.drawAxes .

关于python - 属性错误 : 'module' object has no attribute 'drawAxis' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72466209/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com