Skip to content

Commit

Permalink
camera: added set_brightness() call
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Tridgell committed Oct 1, 2012
1 parent bea782f commit d1fb949
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/CUAV/camera.py
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d1fb949

Please sign in to comment.