Higher gain, flip image
parent
1330958b50
commit
34246d416d
|
@ -85,7 +85,7 @@ if __name__ == "__main__":
|
||||||
camera.set_image_type(asi.ASI_IMG_RAW8)
|
camera.set_image_type(asi.ASI_IMG_RAW8)
|
||||||
|
|
||||||
# Forever loop
|
# Forever loop
|
||||||
while True:
|
for i in range(12):
|
||||||
# Capture frame
|
# Capture frame
|
||||||
t0 = time.time()
|
t0 = time.time()
|
||||||
img = camera.capture_video_frame()
|
img = camera.capture_video_frame()
|
||||||
|
@ -110,7 +110,7 @@ if __name__ == "__main__":
|
||||||
print(nfd, texp, gain, temp)
|
print(nfd, texp, gain, temp)
|
||||||
|
|
||||||
# Store FITS file
|
# 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
|
# Get RGB image
|
||||||
if int(settings["type"]) == asi.ASI_IMG_RAW8:
|
if int(settings["type"]) == asi.ASI_IMG_RAW8:
|
||||||
|
@ -131,5 +131,3 @@ if __name__ == "__main__":
|
||||||
# Stop capture
|
# Stop capture
|
||||||
camera.stop_video_capture()
|
camera.stop_video_capture()
|
||||||
|
|
||||||
# Close file
|
|
||||||
fstat.close()
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"exposure":"10000",
|
"exposure":"10000",
|
||||||
"gain":"100",
|
"gain":"300",
|
||||||
"gamma":"100",
|
"gamma":"100",
|
||||||
"brightness":"10",
|
"brightness":"10",
|
||||||
"wbr":"70",
|
"wbr":"70",
|
||||||
|
|
Loading…
Reference in New Issue