Skip to content

Commit

Permalink
routine
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodjd committed Feb 13, 2021
1 parent 627088f commit 5ec12c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified flir_repo/flir/__pycache__/driver.cpython-38.pyc
Binary file not shown.
6 changes: 3 additions & 3 deletions flir_repo/flir/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 5ec12c9

Please sign in to comment.