在一个while循环里处理两个图片
-
sensor.reset()
#sensor.set_vflip(True)
#sensor.set_hmirror(True) #倒放
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.QQQVGA) # 80x60 (4,800 pixels) - O(N^2) max = 2,3040,000.
#sensor.set_windowing([0,10,80,50]) #(x,y,w,h)
sensor.skip_frames(time = 2000) # WARNING: If you use QQVGA it may take seconds
clock = time.clock() # to process a frame sometimes.while(True):
clock.tick()
img = sensor.snapshot().binary([THRESHOLD])
img_color = sensor.snapshot()像这样,我能不能拍两个不同类型的图片,然后对两个图片分别做处理,他们之间是互不影响的吗?
-
@bdcm 可以通过alloc_extra_fb
https://book.openmv.cc/example/20-Frame-Differencing/in-memory-advanced-frame-differencing.html