mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
scripts/examples: Add back windowing to example.
This commit is contained in:
parent
d4a456edff
commit
32c0598e86
@ -16,6 +16,7 @@ import image
|
|||||||
sensor.reset() # Reset and initialize the sensor.
|
sensor.reset() # Reset and initialize the sensor.
|
||||||
sensor.set_pixformat(sensor.RGB565) # Set pixel format to RGB565 (or GRAYSCALE)
|
sensor.set_pixformat(sensor.RGB565) # Set pixel format to RGB565 (or GRAYSCALE)
|
||||||
sensor.set_framesize(sensor.QVGA) # Set frame size to QVGA (320x240)
|
sensor.set_framesize(sensor.QVGA) # Set frame size to QVGA (320x240)
|
||||||
|
sensor.set_windowing((240, 240)) # Set 240x240 window.
|
||||||
sensor.skip_frames(time=2000) # Let the camera adjust.
|
sensor.skip_frames(time=2000) # Let the camera adjust.
|
||||||
|
|
||||||
min_confidence = 0.4
|
min_confidence = 0.4
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user