Fixed recalibration stream stop/restart

This commit is contained in:
Joel Collins 2019-01-29 13:20:55 +00:00
parent a11d2145d9
commit e420252b37

View file

@ -128,9 +128,9 @@ def generate_lens_shading_table_closed_loop(output_fname="microscopelst.npy",
gains *= incremental_gains
# Apply this change (actually apply a bit less than the change)
cam.pause_stream()
cam.stop_stream_recording()
cam.camera.lens_shading_table = gains_to_lst(gains*32)
cam.resume_stream()
cam.start_stream_recording()
time.sleep(2)
# Fix the AWB gains so the image is neutral