logo

在使用snapshot(copy_to_fb=False)时,IDE缓冲区还是能看到图像,这是为啥?

2021-09-06 11:04
G
刘贵波
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())
2021-09-06 21:08
I
网红小智智 星瞳科技

copy_to_fb不会起作用,因为这个函数不能传递参数。

https://docs.singtown.com/micropython/zh/latest/openmvcam/library/omv.sensor.html#sensor.sensor.snapshot