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).
定义一个全局变量就行了啊。
task = [红色阈值, 绿色阈值, 蓝色阈值] i = 0 while True: img = sensor.snapshot() blobs = img.find_blobs(task[i%3]) if blobs: i+=1