mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Update scripts using auto functions control.
This commit is contained in:
parent
1b22a29612
commit
78cebd16e1
@ -15,7 +15,7 @@ sensor.reset() # Initialize the camera sensor.
|
||||
sensor.set_pixformat(sensor.GRAYSCALE) # or sensor.RGB565
|
||||
sensor.set_framesize(sensor.QVGA) # or sensor.QQVGA (or others)
|
||||
sensor.skip_frames(10) # Let new settings take affect.
|
||||
sensor.set_whitebal(False) # Turn off white balance.
|
||||
sensor.set_auto_whitebal(False) # Turn off white balance.
|
||||
clock = time.clock() # Tracks FPS.
|
||||
|
||||
if not "temp" in os.listdir(): os.mkdir("temp") # Make a temp directory
|
||||
|
||||
@ -12,7 +12,7 @@ sensor.reset() # Initialize the camera sensor.
|
||||
sensor.set_pixformat(sensor.RGB565) # or sensor.GRAYSCALE
|
||||
sensor.set_framesize(sensor.QVGA) # or sensor.QQVGA (or others)
|
||||
sensor.skip_frames(10) # Let new settings take affect.
|
||||
sensor.set_whitebal(False) # Turn off white balance.
|
||||
sensor.set_auto_whitebal(False) # Turn off white balance.
|
||||
clock = time.clock() # Tracks FPS.
|
||||
|
||||
if not "temp" in os.listdir(): os.mkdir("temp") # Make a temp directory
|
||||
|
||||
@ -14,7 +14,7 @@ sensor.reset() # Initialize the camera sensor.
|
||||
sensor.set_pixformat(sensor.RGB565) # or sensor.GRAYSCALE
|
||||
sensor.set_framesize(sensor.QVGA) # or sensor.QQVGA (or others)
|
||||
sensor.skip_frames(10) # Let new settings take affect.
|
||||
sensor.set_whitebal(False) # Turn off white balance.
|
||||
sensor.set_auto_whitebal(False) # Turn off white balance.
|
||||
|
||||
if not "temp" in os.listdir(): os.mkdir("temp") # Make a temp directory
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@ sensor.reset() # Initialize the camera sensor.
|
||||
sensor.set_pixformat(sensor.RGB565) # or sensor.GRAYSCALE
|
||||
sensor.set_framesize(sensor.QQVGA) # or sensor.QVGA (or others)
|
||||
sensor.skip_frames(10) # Let new settings take affect.
|
||||
sensor.set_whitebal(False) # Turn off white balance.
|
||||
sensor.set_auto_whitebal(False) # Turn off white balance.
|
||||
|
||||
if not "temp" in os.listdir(): os.mkdir("temp") # Make a temp directory
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@ sensor.reset() # Initialize the camera sensor.
|
||||
sensor.set_pixformat(sensor.RGB565) # or sensor.GRAYSCALE
|
||||
sensor.set_framesize(sensor.QVGA) # or sensor.QQVGA (or others)
|
||||
sensor.skip_frames(10) # Let new settings take affect.
|
||||
sensor.set_whitebal(False) # Turn off white balance.
|
||||
sensor.set_auto_whitebal(False) # Turn off white balance.
|
||||
|
||||
if not "temp" in os.listdir(): os.mkdir("temp") # Make a temp directory
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ sensor.reset()
|
||||
sensor.set_pixformat(sensor.GRAYSCALE)
|
||||
sensor.set_framesize(sensor.QVGA)
|
||||
sensor.skip_frames(10)
|
||||
sensor.set_gain_ctrl(False)
|
||||
sensor.set_auto_gain(False)
|
||||
clock = time.clock()
|
||||
|
||||
while(True):
|
||||
@ -18,7 +18,7 @@ sensor.set_pixformat(sensor.GRAYSCALE)
|
||||
sensor.set_framesize(sensor.VGA)
|
||||
sensor.set_windowing((640//2 - 200//2, 480//2 - 200//2, 200, 200))
|
||||
sensor.skip_frames(10)
|
||||
sensor.set_gain_ctrl(False)
|
||||
sensor.set_auto_gain(False)
|
||||
clock = time.clock()
|
||||
|
||||
while(True):
|
||||
|
||||
@ -15,7 +15,7 @@ sensor.reset() # Initialize the camera sensor.
|
||||
sensor.set_pixformat(sensor.RGB565) # use RGB565.
|
||||
sensor.set_framesize(sensor.QQVGA) # use QQVGA for speed.
|
||||
sensor.skip_frames(10) # Let new settings take affect.
|
||||
sensor.set_whitebal(False) # turn this off.
|
||||
sensor.set_auto_whitebal(False) # turn this off.
|
||||
clock = time.clock() # Tracks FPS.
|
||||
|
||||
while(True):
|
||||
|
||||
@ -34,7 +34,7 @@ sensor.reset() # Initialize the camera sensor.
|
||||
sensor.set_pixformat(sensor.GRAYSCALE) # use grayscale.
|
||||
sensor.set_framesize(sensor.QQVGA) # use QQVGA for speed.
|
||||
sensor.skip_frames(10) # Let new settings take affect.
|
||||
sensor.set_whitebal(False) # turn this off.
|
||||
sensor.set_auto_whitebal(False) # turn this off.
|
||||
clock = time.clock() # Tracks FPS.
|
||||
|
||||
while(True):
|
||||
|
||||
@ -26,7 +26,7 @@ sensor.reset() # Initialize the camera sensor.
|
||||
sensor.set_pixformat(sensor.RGB565) # use RGB565.
|
||||
sensor.set_framesize(sensor.QQVGA) # use QQVGA for speed.
|
||||
sensor.skip_frames(10) # Let new settings take affect.
|
||||
sensor.set_whitebal(False) # turn this off.
|
||||
sensor.set_auto_whitebal(False) # turn this off.
|
||||
clock = time.clock() # Tracks FPS.
|
||||
|
||||
while(True):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user