Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
openmv检测红绿蓝不一样颜色的小球,然后小车连接的是另一块Arduino,怎么实现小车先到红球停止3秒再到绿球这样依次,可以指导下大概思路吗?
颜色列表=[红色,绿色,蓝色] 当前颜色编号=0 while True: img = sensor.snapshot() 色块 = find_max(img.find_blobs(颜色列表[当前颜色编号])) if 色块.面积>2000: #面积大就是近 延时3秒 当前颜色编号 += 1 if 当前颜色编号 >= 3: 当前颜色编号 = 0 正常追踪