scripts/examples: Add back windowing to example.

This commit is contained in:
Kwabena W. Agyeman 2024-08-31 20:24:23 -04:00
parent d4a456edff
commit 32c0598e86

View File

@ -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