From 34246d416ddfe5560ca9535f52705ffb23b3af33 Mon Sep 17 00:00:00 2001 From: Cees Bassa Date: Tue, 3 Mar 2020 15:28:15 +0100 Subject: [PATCH] Higher gain, flip image --- acquire.py | 6 ++---- settings.json | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/acquire.py b/acquire.py index e223357..f688485 100755 --- a/acquire.py +++ b/acquire.py @@ -85,7 +85,7 @@ if __name__ == "__main__": camera.set_image_type(asi.ASI_IMG_RAW8) # Forever loop - while True: + for i in range(12): # Capture frame t0 = time.time() img = camera.capture_video_frame() @@ -110,7 +110,7 @@ if __name__ == "__main__": print(nfd, texp, gain, temp) # Store FITS file - write_fits_file(os.path.join(path, "%s.fits" % nfd), img, nfd, texp, gain, temp) + write_fits_file(os.path.join(path, "%s.fits" % nfd), np.flipud(img), nfd, texp, gain, temp) # Get RGB image if int(settings["type"]) == asi.ASI_IMG_RAW8: @@ -131,5 +131,3 @@ if __name__ == "__main__": # Stop capture camera.stop_video_capture() - # Close file - fstat.close() diff --git a/settings.json b/settings.json index 472aa1b..c5839f3 100644 --- a/settings.json +++ b/settings.json @@ -1,6 +1,6 @@ { "exposure":"10000", - "gain":"100", + "gain":"300", "gamma":"100", "brightness":"10", "wbr":"70",