0

I am working with ros melodic, opencv 4.5.5, ubuntu 18.04. I draw 3 axis of marker aruco to display on rqt_image_view. when running i get this problem AttributeError: 'module' object has no attribute 'drawAxis' Here is the code of my axis plot:

 ......................
    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"))
    ....................... 

when i do aruco aruco without ros it's normal,when it's right it will look like this

enter image description here

toyota Supra
  • 3,181
  • 4
  • 15
  • 19
huytd-pi
  • 21
  • 1

1 Answers1

1

I think you meant to use cv2.drawFrameAxes instead of cv2.drawAxes.

Jeru Luke
  • 20,118
  • 13
  • 80
  • 87
aheigins
  • 2,574
  • 3
  • 19
  • 26