while(True):
clock.tick()
img = sensor.snapshot()
for blob in img.find_blobs([thresholds[0]], pixels_threshold=200, area_threshold=200, merge=True):
img.draw_rectangle(blob.rect())
img.draw_cross(blob.cx(), blob.cy())最后一行色块坐标是相对什么而言的
图像的基本运算 (http://book.openmv.cc/image/basic-operation.html)
最后一行不是色块的中心坐标吗?
是的
http://book.openmv.cc/image/blob.html#blob%E8%89%B2%E5%9D%97%E5%AF%B9%E8%B1%A1
那这个坐标是以什么为基准就是原点
看二楼 yuan的链接,教程里有。