I saw a python code online for detecting aruco markers, this is part of that code:
for i in range(len(tvecs)):
imaxis = aruco.drawAxis(imaxis, mtx, dist, rvecs[i], tvecs[i], length_of_axis)
I wanted to draw the x-, y-, z-axis too, but I got an error saying:
for i in range(len(tvecs)):
TypeError: object of type 'NoneType' has no len()
So why rvecs and tvecs are NoneType? How can I get two arrays?