Merge pull request #2686 from kaizhi-singtown/fix-examples

example: Fix set_auto_gain param.
This commit is contained in:
Ibrahim Abdelkader 2025-05-07 22:45:47 +03:00 committed by GitHub
commit b6b9a97bab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ sensor.set_windowing((320, 240))
sensor.set_pixformat(sensor.GRAYSCALE)
sensor.skip_frames(time=2000)
sensor.set_auto_gain(False, value=100)
sensor.set_auto_gain(False, gain_db=100)
def draw_keypoints(img, kpts):

View File

@ -21,7 +21,7 @@ sensor.set_windowing((320, 240))
sensor.set_pixformat(sensor.GRAYSCALE)
sensor.skip_frames(time=2000)
sensor.set_auto_gain(False, value=100)
sensor.set_auto_gain(False, gain_db=100)
FILE_NAME = "desc"
img = sensor.snapshot()