From d1fb949415c8e72f3ec77651c696d8b293be32f2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 1 Oct 2012 18:22:52 +1000 Subject: [PATCH] camera: added set_brightness() call --- modules/CUAV/camera.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/CUAV/camera.py b/modules/CUAV/camera.py index 5ac8a66856..8e0ae6af3e 100644 --- a/modules/CUAV/camera.py +++ b/modules/CUAV/camera.py @@ -512,6 +512,7 @@ def reload_mosaic(mosaic): try: composite = cv.LoadImage(last_joe.thumb_filename) thumbs = cuav_mosaic.ExtractThumbs(composite, len(regions)) + mosaic.set_brightness(state.settings.brightness) mosaic.add_regions(regions, thumbs, last_joe.image_filename, last_joe.pos) except Exception: pass @@ -522,6 +523,7 @@ def reload_mosaic(mosaic): try: composite = cv.LoadImage(last_joe.thumb_filename) thumbs = cuav_mosaic.ExtractThumbs(composite, len(regions)) + mosaic.set_brightness(state.settings.brightness) mosaic.add_regions(regions, thumbs, last_joe.image_filename, last_joe.pos) except Exception: pass @@ -625,6 +627,7 @@ def view_thread(): log_joe_position(pos, obj.frame_time, obj.regions, filename, thumb_filename) # update the mosaic and map + mosaic.set_brightness(state.settings.brightness) mosaic.add_regions(obj.regions, thumbs, filename, pos=pos) # update console display