1rvec, tvec, markerPoints = aruco.estimatePoseSingleMarkers(corners[i], 0.02, matrix_coefficients,
2 distortion_coefficients)
3(rvec - tvec).any() # get rid of that nasty numpy value array error
4aruco.drawDetectedMarkers(frame, corners) # Draw A square around the markers
5aruco.drawAxis(frame, matrix_coefficients, distortion_coefficients, rvec, tvec, 0.01) # Draw axis
6