rho_err = abs(line.rho())-img.width()/2
theta_err = line.theta()
data_back=bytearray([0x00,0XA0,theta_r,0XAA])
uart.write("data_back")
请不要重复发帖子
https://forum.singtown.com/topic/2363/%E5%85%B3%E4%BA%8Ebytearray-%E5%87%BD%E6%95%B0-can-t-convert-float-to-int