在使用snapshot(copy_to_fb=False)时,IDE缓冲区还是能看到图像,这是为啥?
-
import time, sensor, image from image import SEARCH_EX, SEARCH_DS sensor.reset() sensor.set_contrast(1) sensor.set_gainceiling(16) sensor.set_framesize(sensor.VGA) sensor.set_pixformat(sensor.GRAYSCALE) clock = time.clock() while (True): clock.tick() img = sensor.snapshot(copy_to_fb=False) print(clock.fps())
-
copy_to_fb不会起作用,因为这个函数不能传递参数。