Skip to content

Commit

Permalink
modified driver file
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodjd committed Feb 16, 2021
1 parent 5ec12c9 commit dd44771
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file modified flir_repo/flir/__pycache__/driver.cpython-38.pyc
Binary file not shown.
3 changes: 2 additions & 1 deletion flir_repo/flir/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def __init__(self):

def await_trigger(self, EXPOSURE_TIME):
try:
time.sleep(0.01)
self.cam_1.ExposureTime.SetValue(int(EXPOSURE_TIME))
self.cam_1.BeginAcquisition()

Expand Down Expand Up @@ -139,7 +140,7 @@ def get_image(self,num_of_im):
images=[]
for i in range(num_of_im):
# print("Before GetNextImage")
image = self.cam_1.GetNextImage(5000) #timeout (ms) 10000
image = self.cam_1.GetNextImage(10000) #timeout (ms) 10000
# 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 dd44771

Please sign in to comment.