mirror of
https://github.com/openmv/openmv.git
synced 2025-09-26 23:09:13 +08:00
scripts/examples: Show contrast and brightness control by default.
This commit is contained in:
parent
caf56ede8d
commit
8c599b50e8
@ -11,6 +11,8 @@ import time
|
||||
sensor.reset()
|
||||
sensor.set_pixformat(sensor.GRAYSCALE) # Must always be grayscale.
|
||||
sensor.set_framesize(sensor.B320X320) # Must always be 320x320.
|
||||
sensor.set_brightness(128) # Leave at 128 generally (this is the default).
|
||||
sensor.set_contrast(16) # Increase to make the image pop.
|
||||
sensor.set_color_palette(image.PALETTE_EVT_DARK)
|
||||
|
||||
# The default frame rate is 50 FPS. You can change it between ~20 FPS and ~350 FPS.
|
||||
|
@ -11,6 +11,8 @@ import time
|
||||
sensor.reset()
|
||||
sensor.set_pixformat(sensor.GRAYSCALE) # Must always be grayscale.
|
||||
sensor.set_framesize(sensor.B320X320) # Must always be 320x320.
|
||||
sensor.set_brightness(128) # Leave at 128 generally (this is the default).
|
||||
sensor.set_contrast(16) # Increase to make the image pop.
|
||||
sensor.set_color_palette(image.PALETTE_EVT_DARK)
|
||||
|
||||
# The default frame rate is 50 FPS. You can change it between ~20 FPS and ~350 FPS.
|
||||
|
@ -11,6 +11,8 @@ import time
|
||||
sensor.reset()
|
||||
sensor.set_pixformat(sensor.GRAYSCALE) # Must always be grayscale.
|
||||
sensor.set_framesize(sensor.B320X320) # Must always be 320x320.
|
||||
sensor.set_brightness(128) # Leave at 128 generally (this is the default).
|
||||
sensor.set_contrast(16) # Increase to make the image pop.
|
||||
sensor.set_color_palette(image.PALETTE_EVT_LIGHT)
|
||||
|
||||
# The default frame rate is 50 FPS. You can change it between ~20 FPS and ~350 FPS.
|
||||
|
@ -11,6 +11,8 @@ import time
|
||||
sensor.reset()
|
||||
sensor.set_pixformat(sensor.GRAYSCALE) # Must always be grayscale.
|
||||
sensor.set_framesize(sensor.B320X320) # Must always be 320x320.
|
||||
sensor.set_brightness(128) # Leave at 128 generally (this is the default).
|
||||
sensor.set_contrast(16) # Increase to make the image pop.
|
||||
sensor.set_color_palette(image.PALETTE_EVT_LIGHT)
|
||||
|
||||
# The default frame rate is 50 FPS. You can change it between ~20 FPS and ~350 FPS.
|
||||
|
@ -10,6 +10,8 @@ import time
|
||||
sensor.reset()
|
||||
sensor.set_pixformat(sensor.GRAYSCALE) # Must always be grayscale.
|
||||
sensor.set_framesize(sensor.B320X320) # Must always be 320x320.
|
||||
sensor.set_brightness(128) # Leave at 128 generally (this is the default).
|
||||
sensor.set_contrast(16) # Increase to make the image pop.
|
||||
|
||||
# The default frame rate is 50 FPS. You can change it between ~20 FPS and ~350 FPS.
|
||||
sensor.set_framerate(50)
|
||||
|
@ -15,6 +15,8 @@ import time
|
||||
sensor.reset()
|
||||
sensor.set_pixformat(sensor.GRAYSCALE) # Must always be grayscale.
|
||||
sensor.set_framesize(sensor.B320X320) # Must always be 320x320.
|
||||
sensor.set_brightness(128) # Leave at 128 generally (this is the default).
|
||||
sensor.set_contrast(16) # Increase to make the image pop.
|
||||
sensor.set_framerate(200)
|
||||
# Applies sensor biases tuned for tracking of an active marker with LEDs
|
||||
sensor.ioctl(sensor.IOCTL_GENX320_SET_BIASES, sensor.GENX320_BIASES_ACTIVE_MARKER)
|
||||
|
@ -12,6 +12,8 @@ import time
|
||||
sensor.reset()
|
||||
sensor.set_pixformat(sensor.GRAYSCALE) # Must always be grayscale.
|
||||
sensor.set_framesize(sensor.B320X320) # Must always be 320x320.
|
||||
sensor.set_brightness(128) # Leave at 128 generally (this is the default).
|
||||
sensor.set_contrast(16) # Increase to make the image pop.
|
||||
sensor.set_framerate(100)
|
||||
|
||||
# Enables AFK filter to remove periodic data in the frequency range from 130Hz to 160Hz
|
||||
|
@ -10,6 +10,8 @@ import time
|
||||
sensor.reset()
|
||||
sensor.set_pixformat(sensor.GRAYSCALE) # Must always be grayscale.
|
||||
sensor.set_framesize(sensor.B320X320) # Must always be 320x320.
|
||||
sensor.set_brightness(128) # Leave at 128 generally (this is the default).
|
||||
sensor.set_contrast(16) # Increase to make the image pop.
|
||||
|
||||
# The default frame rate is 50 FPS. You can change it between ~20 FPS and ~350 FPS.
|
||||
sensor.set_framerate(50)
|
||||
|
Loading…
Reference in New Issue
Block a user