diff --git a/flir_repo/flir/__pycache__/driver.cpython-38.pyc b/flir_repo/flir/__pycache__/driver.cpython-38.pyc index 02ae289..74b1cf8 100644 Binary files a/flir_repo/flir/__pycache__/driver.cpython-38.pyc and b/flir_repo/flir/__pycache__/driver.cpython-38.pyc differ diff --git a/flir_repo/flir/driver.py b/flir_repo/flir/driver.py index f07b9fb..3e3a86b 100644 --- a/flir_repo/flir/driver.py +++ b/flir_repo/flir/driver.py @@ -77,7 +77,7 @@ def __init__(self): cam.ExposureMode.SetValue(PySpin.ExposureMode_Timed) #Timed or TriggerWidth (must comment out trigger parameters other that Line) cam.ExposureTime.SetValue(100) #us cam.GainAuto.SetValue(PySpin.GainAuto_Off) - cam.Gain.SetValue(23.8) + cam.Gain.SetValue(1)# Previously 23.8 #cam.Gamma.SetValue(GAMMA_VALUE) #always fails? #cam.AdcBitDepth.SetValue(PySpin.AdcBitDepth_Bit16) #always fails? @@ -138,9 +138,9 @@ def get_image(self,num_of_im): # Acquire images. Output is python list of images as numpy arrays images=[] for i in range(num_of_im): - print("Before GetNextImage") + # print("Before GetNextImage") image = self.cam_1.GetNextImage(5000) #timeout (ms) 10000 - print("Picture Successfully taken at: ",time.strftime("%d %b %Y %H:%M:%S", time.localtime())) + # print("Picture Successfully taken at: ",time.strftime("%d %b %Y %H:%M:%S", time.localtime())) images.append(np.array(image.GetData(),dtype="uint16").reshape((image.GetHeight(),image.GetWidth()))) #convert PySpin ImagePtr into numpy array image.Release()