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的While True内部的if语句中,若需要LCD屏显示draw_string中的信息一段时间,如何做到?
每张图都画就行了。
你也可以定义一个全局变量,然后每次减一,实现画100次:
总次数 = 0 while True: img = sensor.snapshot() 总次数 += 1 if (总次数 >100): img.draw_string() else: print(“不画”)