From d11908c62be1ca25f0ff26a328dbd45aaf90a573 Mon Sep 17 00:00:00 2001 From: Sebastian Romero Date: Wed, 17 Mar 2021 17:49:33 +0100 Subject: [PATCH] Remove incompatible set_auto_whitebal call --- .../Arduino/Portenta-H7/05-Snapshot/snapshot_on_movement.py | 1 - .../Arduino/Portenta-H7/06-Video-Recording/gif_on_movement.py | 1 - .../Arduino/Portenta-H7/06-Video-Recording/mjpeg_on_movement.py | 1 - .../10-Color-Tracking/automatic_grayscale_color_tracking.py | 1 - .../10-Color-Tracking/automatic_rgb565_color_tracking.py | 1 - .../10-Color-Tracking/black_grayscale_line_following.py | 1 - .../Portenta-H7/10-Color-Tracking/image_histogram_info.py | 1 - .../Portenta-H7/10-Color-Tracking/image_statistics_info.py | 1 - .../10-Color-Tracking/ir_beacon_grayscale_tracking.py | 1 - .../Portenta-H7/10-Color-Tracking/ir_beacon_rgb565_tracking.py | 1 - .../Portenta-H7/10-Color-Tracking/multi_color_blob_tracking.py | 1 - .../Portenta-H7/10-Color-Tracking/multi_color_code_tracking.py | 1 - .../Portenta-H7/10-Color-Tracking/single_color_code_tracking.py | 1 - .../10-Color-Tracking/single_color_grayscale_blob_tracking.py | 1 - .../10-Color-Tracking/single_color_rgb565_blob_tracking.py | 1 - scripts/examples/Arduino/Portenta-H7/16-Codes/find_barcodes.py | 1 - .../examples/Arduino/Portenta-H7/16-Codes/find_datamatrices.py | 1 - .../Portenta-H7/16-Codes/find_datamatrices_w_lens_zoom.py | 1 - .../Arduino/Portenta-H7/17-Pixy-Emulation/pixy_i2c_emulation.py | 1 - .../Arduino/Portenta-H7/17-Pixy-Emulation/pixy_spi_emulation.py | 1 - .../Arduino/Portenta-H7/17-Pixy-Emulation/pixy_uart_emulation.py | 1 - .../in_memory_advanced_frame_differencing.py | 1 - .../20-Frame-Differencing/in_memory_basic_frame_differencing.py | 1 - .../20-Frame-Differencing/in_memory_shadow_removal.py | 1 - .../20-Frame-Differencing/in_memory_structural_similarity.py | 1 - .../20-Frame-Differencing/on_disk_advanced_frame_differencing.py | 1 - .../20-Frame-Differencing/on_disk_basic_frame_differencing.py | 1 - .../Portenta-H7/20-Frame-Differencing/on_disk_shadow_removal.py | 1 - .../20-Frame-Differencing/on_disk_structural_similarity.py | 1 - .../Portenta-H7/21-Sensor-Control/sensor_exposure_control.py | 1 - .../21-Sensor-Control/sensor_manual_whitebal_control.py | 1 - .../Portenta-H7/21-Sensor-Control/sesnor_manual_gain_control.py | 1 - .../examples/Arduino/Portenta-H7/26-April-Tags/find_apriltags.py | 1 - .../Arduino/Portenta-H7/26-April-Tags/find_apriltags_3d_pose.py | 1 - .../Arduino/Portenta-H7/26-April-Tags/find_apriltags_max_res.py | 1 - .../Portenta-H7/26-April-Tags/find_apriltags_w_lens_zoom.py | 1 - .../Arduino/Portenta-H7/26-April-Tags/find_small_apriltags.py | 1 - 37 files changed, 37 deletions(-) diff --git a/scripts/examples/Arduino/Portenta-H7/05-Snapshot/snapshot_on_movement.py b/scripts/examples/Arduino/Portenta-H7/05-Snapshot/snapshot_on_movement.py index 4b0a625e1..4e6c67956 100644 --- a/scripts/examples/Arduino/Portenta-H7/05-Snapshot/snapshot_on_movement.py +++ b/scripts/examples/Arduino/Portenta-H7/05-Snapshot/snapshot_on_movement.py @@ -14,7 +14,6 @@ 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(time = 2000) # Let new settings take affect. -sensor.set_auto_whitebal(False) # Turn off white balance. if not "temp" in os.listdir(): os.mkdir("temp") # Make a temp directory diff --git a/scripts/examples/Arduino/Portenta-H7/06-Video-Recording/gif_on_movement.py b/scripts/examples/Arduino/Portenta-H7/06-Video-Recording/gif_on_movement.py index 4cf3fbae6..81e013053 100644 --- a/scripts/examples/Arduino/Portenta-H7/06-Video-Recording/gif_on_movement.py +++ b/scripts/examples/Arduino/Portenta-H7/06-Video-Recording/gif_on_movement.py @@ -18,7 +18,6 @@ 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(time = 2000) # Let new settings take affect. -sensor.set_auto_whitebal(False) # Turn off white balance. if not "temp" in os.listdir(): os.mkdir("temp") # Make a temp directory diff --git a/scripts/examples/Arduino/Portenta-H7/06-Video-Recording/mjpeg_on_movement.py b/scripts/examples/Arduino/Portenta-H7/06-Video-Recording/mjpeg_on_movement.py index 5f13363f2..f74b0a8ae 100644 --- a/scripts/examples/Arduino/Portenta-H7/06-Video-Recording/mjpeg_on_movement.py +++ b/scripts/examples/Arduino/Portenta-H7/06-Video-Recording/mjpeg_on_movement.py @@ -19,7 +19,6 @@ 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(time = 2000) # Let new settings take affect. -sensor.set_auto_whitebal(False) # Turn off white balance. if not "temp" in os.listdir(): os.mkdir("temp") # Make a temp directory diff --git a/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/automatic_grayscale_color_tracking.py b/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/automatic_grayscale_color_tracking.py index 51f8a0a91..d0251c212 100644 --- a/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/automatic_grayscale_color_tracking.py +++ b/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/automatic_grayscale_color_tracking.py @@ -10,7 +10,6 @@ sensor.set_pixformat(sensor.GRAYSCALE) sensor.set_framesize(sensor.QVGA) sensor.skip_frames(time = 2000) sensor.set_auto_gain(False) # must be turned off for color tracking -sensor.set_auto_whitebal(False) # must be turned off for color tracking clock = time.clock() # Capture the color thresholds for whatever was in the center of the image. diff --git a/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/automatic_rgb565_color_tracking.py b/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/automatic_rgb565_color_tracking.py index 50a3f4e6e..58d41be2e 100644 --- a/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/automatic_rgb565_color_tracking.py +++ b/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/automatic_rgb565_color_tracking.py @@ -10,7 +10,6 @@ sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QVGA) sensor.skip_frames(time = 2000) sensor.set_auto_gain(False) # must be turned off for color tracking -sensor.set_auto_whitebal(False) # must be turned off for color tracking clock = time.clock() # Capture the color thresholds for whatever was in the center of the image. diff --git a/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/black_grayscale_line_following.py b/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/black_grayscale_line_following.py index 6e0674b63..c1e83fb2b 100644 --- a/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/black_grayscale_line_following.py +++ b/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/black_grayscale_line_following.py @@ -35,7 +35,6 @@ sensor.set_pixformat(sensor.GRAYSCALE) # use grayscale. sensor.set_framesize(sensor.QQVGA) # use QQVGA for speed. sensor.skip_frames(time = 2000) # Let new settings take affect. sensor.set_auto_gain(False) # must be turned off for color tracking -sensor.set_auto_whitebal(False) # must be turned off for color tracking clock = time.clock() # Tracks FPS. while(True): diff --git a/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/image_histogram_info.py b/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/image_histogram_info.py index 04b386b3e..a97ac899b 100644 --- a/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/image_histogram_info.py +++ b/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/image_histogram_info.py @@ -9,7 +9,6 @@ sensor.set_pixformat(sensor.GRAYSCALE) # or RGB565. sensor.set_framesize(sensor.QVGA) sensor.skip_frames(time = 2000) sensor.set_auto_gain(False) # must be turned off for color tracking -sensor.set_auto_whitebal(False) # must be turned off for color tracking clock = time.clock() while(True): diff --git a/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/image_statistics_info.py b/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/image_statistics_info.py index 04f306109..c70042ee0 100644 --- a/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/image_statistics_info.py +++ b/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/image_statistics_info.py @@ -9,7 +9,6 @@ sensor.set_pixformat(sensor.GRAYSCALE) # or RGB565. sensor.set_framesize(sensor.QVGA) sensor.skip_frames(time = 2000) sensor.set_auto_gain(False) # must be turned off for color tracking -sensor.set_auto_whitebal(False) # must be turned off for color tracking clock = time.clock() while(True): diff --git a/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/ir_beacon_grayscale_tracking.py b/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/ir_beacon_grayscale_tracking.py index 0a4d9e0b7..0d2184a6a 100644 --- a/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/ir_beacon_grayscale_tracking.py +++ b/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/ir_beacon_grayscale_tracking.py @@ -12,7 +12,6 @@ sensor.set_framesize(sensor.VGA) sensor.set_windowing((240, 240)) # 240x240 center pixels of VGA sensor.skip_frames(time = 2000) sensor.set_auto_gain(False) # must be turned off for color tracking -sensor.set_auto_whitebal(False) # must be turned off for color tracking clock = time.clock() # Only blobs that with more pixels than "pixel_threshold" and more area than "area_threshold" are diff --git a/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/ir_beacon_rgb565_tracking.py b/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/ir_beacon_rgb565_tracking.py index 033908131..9c8fb32e0 100644 --- a/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/ir_beacon_rgb565_tracking.py +++ b/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/ir_beacon_rgb565_tracking.py @@ -12,7 +12,6 @@ sensor.set_framesize(sensor.VGA) sensor.set_windowing((240, 240)) # 240x240 center pixels of VGA sensor.skip_frames(time = 2000) sensor.set_auto_gain(False) # must be turned off for color tracking -sensor.set_auto_whitebal(False) # must be turned off for color tracking clock = time.clock() # Only blobs that with more pixels than "pixel_threshold" and more area than "area_threshold" are diff --git a/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/multi_color_blob_tracking.py b/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/multi_color_blob_tracking.py index bc94d257d..81c9d06e3 100644 --- a/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/multi_color_blob_tracking.py +++ b/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/multi_color_blob_tracking.py @@ -17,7 +17,6 @@ sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QVGA) sensor.skip_frames(time = 2000) sensor.set_auto_gain(False) # must be turned off for color tracking -sensor.set_auto_whitebal(False) # must be turned off for color tracking clock = time.clock() # Only blobs that with more pixels than "pixel_threshold" and more area than "area_threshold" are diff --git a/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/multi_color_code_tracking.py b/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/multi_color_code_tracking.py index 917fb5057..8e42b1816 100644 --- a/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/multi_color_code_tracking.py +++ b/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/multi_color_code_tracking.py @@ -19,7 +19,6 @@ sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QVGA) sensor.skip_frames(time = 2000) sensor.set_auto_gain(False) # must be turned off for color tracking -sensor.set_auto_whitebal(False) # must be turned off for color tracking clock = time.clock() # Only blobs that with more pixels than "pixel_threshold" and more area than "area_threshold" are diff --git a/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/single_color_code_tracking.py b/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/single_color_code_tracking.py index ed8fa651e..c93dee2bb 100644 --- a/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/single_color_code_tracking.py +++ b/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/single_color_code_tracking.py @@ -18,7 +18,6 @@ sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QVGA) sensor.skip_frames(time = 2000) sensor.set_auto_gain(False) # must be turned off for color tracking -sensor.set_auto_whitebal(False) # must be turned off for color tracking clock = time.clock() # Only blobs that with more pixels than "pixel_threshold" and more area than "area_threshold" are diff --git a/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/single_color_grayscale_blob_tracking.py b/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/single_color_grayscale_blob_tracking.py index 8f8b44d3b..2f200275e 100644 --- a/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/single_color_grayscale_blob_tracking.py +++ b/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/single_color_grayscale_blob_tracking.py @@ -13,7 +13,6 @@ sensor.set_pixformat(sensor.GRAYSCALE) sensor.set_framesize(sensor.VGA) sensor.skip_frames(time = 2000) sensor.set_auto_gain(False) # must be turned off for color tracking -sensor.set_auto_whitebal(False) # must be turned off for color tracking clock = time.clock() # Only blobs that with more pixels than "pixel_threshold" and more area than "area_threshold" are diff --git a/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/single_color_rgb565_blob_tracking.py b/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/single_color_rgb565_blob_tracking.py index e7dc5bec1..d71ff5f5c 100644 --- a/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/single_color_rgb565_blob_tracking.py +++ b/scripts/examples/Arduino/Portenta-H7/10-Color-Tracking/single_color_rgb565_blob_tracking.py @@ -17,7 +17,6 @@ sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QVGA) sensor.skip_frames(time = 2000) sensor.set_auto_gain(False) # must be turned off for color tracking -sensor.set_auto_whitebal(False) # must be turned off for color tracking clock = time.clock() # Only blobs that with more pixels than "pixel_threshold" and more area than "area_threshold" are diff --git a/scripts/examples/Arduino/Portenta-H7/16-Codes/find_barcodes.py b/scripts/examples/Arduino/Portenta-H7/16-Codes/find_barcodes.py index 07dee507c..5c6488ad1 100644 --- a/scripts/examples/Arduino/Portenta-H7/16-Codes/find_barcodes.py +++ b/scripts/examples/Arduino/Portenta-H7/16-Codes/find_barcodes.py @@ -11,7 +11,6 @@ sensor.set_framesize(sensor.VGA) # High Res! sensor.set_windowing((640, 80)) # V Res of 80 == less work (40 for 2X the speed). sensor.skip_frames(time = 2000) sensor.set_auto_gain(False) # must turn this off to prevent image washout... -sensor.set_auto_whitebal(False) # must turn this off to prevent image washout... clock = time.clock() # Barcode detection can run at the full 640x480 resolution of your OpenMV Cam's diff --git a/scripts/examples/Arduino/Portenta-H7/16-Codes/find_datamatrices.py b/scripts/examples/Arduino/Portenta-H7/16-Codes/find_datamatrices.py index 95d0fe38a..4b6af72e5 100644 --- a/scripts/examples/Arduino/Portenta-H7/16-Codes/find_datamatrices.py +++ b/scripts/examples/Arduino/Portenta-H7/16-Codes/find_datamatrices.py @@ -10,7 +10,6 @@ sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QVGA) sensor.skip_frames(time = 2000) sensor.set_auto_gain(False) # must turn this off to prevent image washout... -sensor.set_auto_whitebal(False) # must turn this off to prevent image washout... clock = time.clock() while(True): diff --git a/scripts/examples/Arduino/Portenta-H7/16-Codes/find_datamatrices_w_lens_zoom.py b/scripts/examples/Arduino/Portenta-H7/16-Codes/find_datamatrices_w_lens_zoom.py index 889326df1..7461cb9b7 100644 --- a/scripts/examples/Arduino/Portenta-H7/16-Codes/find_datamatrices_w_lens_zoom.py +++ b/scripts/examples/Arduino/Portenta-H7/16-Codes/find_datamatrices_w_lens_zoom.py @@ -11,7 +11,6 @@ sensor.set_framesize(sensor.VGA) sensor.set_windowing((320, 240)) # 2x Zoom sensor.skip_frames(time = 2000) sensor.set_auto_gain(False) # must turn this off to prevent image washout... -sensor.set_auto_whitebal(False) # must turn this off to prevent image washout... clock = time.clock() while(True): diff --git a/scripts/examples/Arduino/Portenta-H7/17-Pixy-Emulation/pixy_i2c_emulation.py b/scripts/examples/Arduino/Portenta-H7/17-Pixy-Emulation/pixy_i2c_emulation.py index 35ed48a22..5796c5703 100644 --- a/scripts/examples/Arduino/Portenta-H7/17-Pixy-Emulation/pixy_i2c_emulation.py +++ b/scripts/examples/Arduino/Portenta-H7/17-Pixy-Emulation/pixy_i2c_emulation.py @@ -69,7 +69,6 @@ sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QVGA) sensor.skip_frames(time = 2000) sensor.set_auto_gain(False) -sensor.set_auto_whitebal(False) # LED Setup diff --git a/scripts/examples/Arduino/Portenta-H7/17-Pixy-Emulation/pixy_spi_emulation.py b/scripts/examples/Arduino/Portenta-H7/17-Pixy-Emulation/pixy_spi_emulation.py index 57755845c..e90346372 100644 --- a/scripts/examples/Arduino/Portenta-H7/17-Pixy-Emulation/pixy_spi_emulation.py +++ b/scripts/examples/Arduino/Portenta-H7/17-Pixy-Emulation/pixy_spi_emulation.py @@ -75,7 +75,6 @@ sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QVGA) sensor.skip_frames(time = 2000) sensor.set_auto_gain(False) -sensor.set_auto_whitebal(False) # LED Setup diff --git a/scripts/examples/Arduino/Portenta-H7/17-Pixy-Emulation/pixy_uart_emulation.py b/scripts/examples/Arduino/Portenta-H7/17-Pixy-Emulation/pixy_uart_emulation.py index 7aa4b262a..1039f6611 100644 --- a/scripts/examples/Arduino/Portenta-H7/17-Pixy-Emulation/pixy_uart_emulation.py +++ b/scripts/examples/Arduino/Portenta-H7/17-Pixy-Emulation/pixy_uart_emulation.py @@ -69,7 +69,6 @@ sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QVGA) sensor.skip_frames(time = 2000) sensor.set_auto_gain(False) -sensor.set_auto_whitebal(False) # LED Setup diff --git a/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/in_memory_advanced_frame_differencing.py b/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/in_memory_advanced_frame_differencing.py index d130151a9..284e84394 100644 --- a/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/in_memory_advanced_frame_differencing.py +++ b/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/in_memory_advanced_frame_differencing.py @@ -15,7 +15,6 @@ sensor.reset() # Initialize the camera sensor. sensor.set_pixformat(sensor.RGB565) # or sensor.RGB565 sensor.set_framesize(sensor.QVGA) # or sensor.QQVGA (or others) sensor.skip_frames(time = 2000) # Let new settings take affect. -sensor.set_auto_whitebal(False) # Turn off white balance. clock = time.clock() # Tracks FPS. # Take from the main frame buffer's RAM to allocate a second frame buffer. diff --git a/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/in_memory_basic_frame_differencing.py b/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/in_memory_basic_frame_differencing.py index cbe0daed2..138955f86 100644 --- a/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/in_memory_basic_frame_differencing.py +++ b/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/in_memory_basic_frame_differencing.py @@ -12,7 +12,6 @@ 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(time = 2000) # Let new settings take affect. -sensor.set_auto_whitebal(False) # Turn off white balance. clock = time.clock() # Tracks FPS. # Take from the main frame buffer's RAM to allocate a second frame buffer. diff --git a/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/in_memory_shadow_removal.py b/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/in_memory_shadow_removal.py index b1f65895f..ae7372f4e 100644 --- a/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/in_memory_shadow_removal.py +++ b/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/in_memory_shadow_removal.py @@ -13,7 +13,6 @@ sensor.set_framesize(sensor.QQVGA) # or sensor.QVGA (or others) if sensor.get_id() == sensor.OV7725: # Reduce sensor PLL from 6x to 4x. sensor.__write_reg(0x0D, (sensor.__read_reg(0x0D) & 0x3F) | 0x40) sensor.skip_frames(time = 2000) # Let new settings take affect. -sensor.set_auto_whitebal(False) # Turn off white balance. sensor.set_auto_gain(False) # Turn this off too. clock = time.clock() # Tracks FPS. diff --git a/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/in_memory_structural_similarity.py b/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/in_memory_structural_similarity.py index 18762ff81..53a32c4ff 100644 --- a/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/in_memory_structural_similarity.py +++ b/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/in_memory_structural_similarity.py @@ -14,7 +14,6 @@ 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(time = 2000) # Let new settings take affect. -sensor.set_auto_whitebal(False) # Turn off white balance. clock = time.clock() # Tracks FPS. # Take from the main frame buffer's RAM to allocate a second frame buffer. diff --git a/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/on_disk_advanced_frame_differencing.py b/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/on_disk_advanced_frame_differencing.py index 503643d13..e25aa7edb 100644 --- a/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/on_disk_advanced_frame_differencing.py +++ b/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/on_disk_advanced_frame_differencing.py @@ -17,7 +17,6 @@ sensor.reset() # Initialize the camera sensor. sensor.set_pixformat(sensor.RGB565) # or sensor.RGB565 sensor.set_framesize(sensor.QVGA) # or sensor.QQVGA (or others) sensor.skip_frames(time = 2000) # Let new settings take affect. -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 diff --git a/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/on_disk_basic_frame_differencing.py b/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/on_disk_basic_frame_differencing.py index 2b0b775e9..a168a0c50 100644 --- a/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/on_disk_basic_frame_differencing.py +++ b/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/on_disk_basic_frame_differencing.py @@ -14,7 +14,6 @@ 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(time = 2000) # Let new settings take affect. -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 diff --git a/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/on_disk_shadow_removal.py b/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/on_disk_shadow_removal.py index a48677ae8..727191257 100644 --- a/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/on_disk_shadow_removal.py +++ b/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/on_disk_shadow_removal.py @@ -15,7 +15,6 @@ sensor.set_framesize(sensor.QQVGA) # or sensor.QVGA (or others) if sensor.get_id() == sensor.OV7725: # Reduce sensor PLL from 6x to 4x. sensor.__write_reg(0x0D, (sensor.__read_reg(0x0D) & 0x3F) | 0x40) sensor.skip_frames(time = 2000) # Let new settings take affect. -sensor.set_auto_whitebal(False) # Turn off white balance. sensor.set_auto_gain(False) # Turn this off too. clock = time.clock() # Tracks FPS. diff --git a/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/on_disk_structural_similarity.py b/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/on_disk_structural_similarity.py index 4a1e73706..bff55ecc7 100644 --- a/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/on_disk_structural_similarity.py +++ b/scripts/examples/Arduino/Portenta-H7/20-Frame-Differencing/on_disk_structural_similarity.py @@ -16,7 +16,6 @@ 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(time = 2000) # Let new settings take affect. -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 diff --git a/scripts/examples/Arduino/Portenta-H7/21-Sensor-Control/sensor_exposure_control.py b/scripts/examples/Arduino/Portenta-H7/21-Sensor-Control/sensor_exposure_control.py index edc994c44..ebeb9d2ae 100644 --- a/scripts/examples/Arduino/Portenta-H7/21-Sensor-Control/sensor_exposure_control.py +++ b/scripts/examples/Arduino/Portenta-H7/21-Sensor-Control/sensor_exposure_control.py @@ -34,7 +34,6 @@ clock = time.clock() # Create a clock object to track the FPS. # otherwise they will change the image gains to undo any exposure settings # that you put in place... sensor.set_auto_gain(False) -sensor.set_auto_whitebal(False) # Need to let the above settings get in... sensor.skip_frames(time = 500) diff --git a/scripts/examples/Arduino/Portenta-H7/21-Sensor-Control/sensor_manual_whitebal_control.py b/scripts/examples/Arduino/Portenta-H7/21-Sensor-Control/sensor_manual_whitebal_control.py index d9420ada3..6698b5c6a 100644 --- a/scripts/examples/Arduino/Portenta-H7/21-Sensor-Control/sensor_manual_whitebal_control.py +++ b/scripts/examples/Arduino/Portenta-H7/21-Sensor-Control/sensor_manual_whitebal_control.py @@ -26,7 +26,6 @@ clock = time.clock() # Create a clock object to track the FPS. # # Uncomment the below line with gain values you like (get them from the print out). # -# sensor.set_auto_whitebal(False, rgb_gain_db = (0.0, 0.0, 0.0)) # Note: Putting (0.0, 0.0, 0.0) for the gain results in something close to zero # comming out. Do not expect the exact value going in to be equal to the value diff --git a/scripts/examples/Arduino/Portenta-H7/21-Sensor-Control/sesnor_manual_gain_control.py b/scripts/examples/Arduino/Portenta-H7/21-Sensor-Control/sesnor_manual_gain_control.py index 01d7d3232..eab1e22ba 100644 --- a/scripts/examples/Arduino/Portenta-H7/21-Sensor-Control/sesnor_manual_gain_control.py +++ b/scripts/examples/Arduino/Portenta-H7/21-Sensor-Control/sesnor_manual_gain_control.py @@ -34,7 +34,6 @@ clock = time.clock() # Create a clock object to track the FPS. # otherwise they will change the image exposure to undo any gain settings # that you put in place... sensor.set_auto_exposure(False) -sensor.set_auto_whitebal(False) # Need to let the above settings get in... sensor.skip_frames(time = 500) diff --git a/scripts/examples/Arduino/Portenta-H7/26-April-Tags/find_apriltags.py b/scripts/examples/Arduino/Portenta-H7/26-April-Tags/find_apriltags.py index 02409b0f0..37cd3884b 100644 --- a/scripts/examples/Arduino/Portenta-H7/26-April-Tags/find_apriltags.py +++ b/scripts/examples/Arduino/Portenta-H7/26-April-Tags/find_apriltags.py @@ -10,7 +10,6 @@ sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QQVGA) # we run out of memory if the resolution is much bigger... sensor.skip_frames(time = 2000) sensor.set_auto_gain(False) # must turn this off to prevent image washout... -sensor.set_auto_whitebal(False) # must turn this off to prevent image washout... clock = time.clock() # Note! Unlike find_qrcodes the find_apriltags method does not need lens correction on the image to work. diff --git a/scripts/examples/Arduino/Portenta-H7/26-April-Tags/find_apriltags_3d_pose.py b/scripts/examples/Arduino/Portenta-H7/26-April-Tags/find_apriltags_3d_pose.py index 64e763253..4af81d8c5 100644 --- a/scripts/examples/Arduino/Portenta-H7/26-April-Tags/find_apriltags_3d_pose.py +++ b/scripts/examples/Arduino/Portenta-H7/26-April-Tags/find_apriltags_3d_pose.py @@ -10,7 +10,6 @@ sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QQVGA) # we run out of memory if the resolution is much bigger... sensor.skip_frames(time = 2000) sensor.set_auto_gain(False) # must turn this off to prevent image washout... -sensor.set_auto_whitebal(False) # must turn this off to prevent image washout... clock = time.clock() # Note! Unlike find_qrcodes the find_apriltags method does not need lens correction on the image to work. diff --git a/scripts/examples/Arduino/Portenta-H7/26-April-Tags/find_apriltags_max_res.py b/scripts/examples/Arduino/Portenta-H7/26-April-Tags/find_apriltags_max_res.py index 82f05427c..ad4b83fab 100644 --- a/scripts/examples/Arduino/Portenta-H7/26-April-Tags/find_apriltags_max_res.py +++ b/scripts/examples/Arduino/Portenta-H7/26-April-Tags/find_apriltags_max_res.py @@ -14,7 +14,6 @@ elif omv.board_type() == "M7": sensor.set_windowing((200, 200)) else: raise Exception("You need a more powerful OpenMV Cam to run this script") sensor.skip_frames(time = 2000) sensor.set_auto_gain(False) # must turn this off to prevent image washout... -sensor.set_auto_whitebal(False) # must turn this off to prevent image washout... clock = time.clock() # Note! Unlike find_qrcodes the find_apriltags method does not need lens correction on the image to work. diff --git a/scripts/examples/Arduino/Portenta-H7/26-April-Tags/find_apriltags_w_lens_zoom.py b/scripts/examples/Arduino/Portenta-H7/26-April-Tags/find_apriltags_w_lens_zoom.py index 3778ccb68..3e2a128f0 100644 --- a/scripts/examples/Arduino/Portenta-H7/26-April-Tags/find_apriltags_w_lens_zoom.py +++ b/scripts/examples/Arduino/Portenta-H7/26-April-Tags/find_apriltags_w_lens_zoom.py @@ -11,7 +11,6 @@ sensor.set_framesize(sensor.VGA) # we run out of memory if the resolution is muc sensor.set_windowing((160, 120)) # Look at center 160x120 pixels of the VGA resolution. sensor.skip_frames(time = 2000) sensor.set_auto_gain(False) # must turn this off to prevent image washout... -sensor.set_auto_whitebal(False) # must turn this off to prevent image washout... clock = time.clock() # Note! Unlike find_qrcodes the find_apriltags method does not need lens correction on the image to work. diff --git a/scripts/examples/Arduino/Portenta-H7/26-April-Tags/find_small_apriltags.py b/scripts/examples/Arduino/Portenta-H7/26-April-Tags/find_small_apriltags.py index cbd54bf9e..b634bf9b9 100644 --- a/scripts/examples/Arduino/Portenta-H7/26-April-Tags/find_small_apriltags.py +++ b/scripts/examples/Arduino/Portenta-H7/26-April-Tags/find_small_apriltags.py @@ -21,7 +21,6 @@ elif omv.board_type() == "M7": sensor.set_framesize(sensor.QVGA) else: raise Exception("You need a more powerful OpenMV Cam to run this script") sensor.skip_frames(time = 200) # increase this to let the auto methods run for longer sensor.set_auto_gain(False) # must be turned off for color tracking -sensor.set_auto_whitebal(False) # must be turned off for color tracking clock = time.clock() # The apriltag code supports up to 6 tag families which can be processed at the same time.