f_x = (2.8 / 3.984) * 160 # 默认值
f_y = (2.8 / 2.952) * 120 # 默认值
c_x = 320 * 0.5 # 默认值(image.w * 0.5)
c_y = 240 * 0.5 # 默认值(image.h * 0.5)
def degrees(radians):
return (180 * radians) / math.pi
while(True):
clock.tick()
img = sensor.snapshot()
for tag in image.find_apriltags(families=image.TAG36H11, f_x, f_y, c_x, c_y):
print("Tx: %f, Ty %f, Tz %f, Rx %f, Ry %f, Rz %f" % print_args)报错:
SyntaxError: non-keyword arg after keyword arg
百度了一下没看明白错在哪
https://book.openmv.cc/example/26-April-Tags/find-apriltags.html
例子是全家族的。
你的代码不全,没法运行的。