摘要: 本次测量的物体为:一个绿色小瓶盖 首先得通过阈值编译器得到这个绿色小瓶盖得阈值: 代码如下: import sensor, image, time #导入模块 # For color tracking to work really well you should ideally be in a ve 阅读全文
posted @ 2021-01-06 16:01 oldxi 阅读(2276) 评论(0) 推荐(0) 编辑
摘要: find_blobs函数: 通过find_blobs函数可以找到色块.我们来讨论一下,find_blobs的细节。 image.find_blobs(thresholds, roi=Auto, x_stride=2, y_stride=1, invert=False, area_threshold= 阅读全文
posted @ 2021-01-06 15:15 oldxi 阅读(4682) 评论(0) 推荐(1) 编辑
摘要: 首先连接好摄像头端口,点击运行闪烁灯代码(代码如下): #import time, pyb from time import sleep from pyb import LED led1 = LED(1) led2 = LED(2) led3 = LED(3) # Red LED = 1, Gree 阅读全文
posted @ 2021-01-06 13:53 oldxi 阅读(3928) 评论(0) 推荐(0) 编辑