Merge pull request #2405 from kwagyeman/kwabena/frame_drop_fix

scripts/examples: Add back windowing to example.
This commit is contained in:
Ibrahim Abdelkader 2024-09-01 10:30:32 +03:00 committed by GitHub
commit 27ba089b24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,6 +16,7 @@ import image
sensor.reset() # Reset and initialize the sensor.
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_windowing((240, 240)) # Set 240x240 window.
sensor.skip_frames(time=2000) # Let the camera adjust.
min_confidence = 0.4