Skip to content

Commit

Permalink
Update AcquisitionConfig.py
Browse files Browse the repository at this point in the history
  • Loading branch information
PhotonicsOpenProjects authored Nov 23, 2023
1 parent da269d9 commit 9e973b5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions ONE-PIX_soft/src/AcquisitionConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,13 @@ def display_sequence(self,event):
None.
"""
# Initialise cv2 display on the second monitor
cv2.namedWindow('ImageWindow', cv2.WINDOW_NORMAL)
cv2.moveWindow('ImageWindow', screenWidth, 0)
cv2.setWindowProperty("ImageWindow", cv2.WND_PROP_FULLSCREEN, 1)
cv2.imshow('ImageWindow',cv2.resize(self.pattern_lib.decorator.sequence[0],(self.width,self.height),interpolation=self.interp_method))
cv2.waitKey(750) # allows the projector to take the time to display the first pattern, particularly if it is white

try:
white_idx=self.pattern_lib.decorator.white_pattern_idx
except:
Expand Down Expand Up @@ -325,12 +332,7 @@ def init_display(self):
self.spec_lib.set_integration_time()
self.wavelengths = self.spec_lib.get_wavelengths()
self.spectra=np.zeros((self.nb_patterns,len(self.wavelengths)),dtype=np.float32)
# Initialise cv2 display on the second monitor
cv2.namedWindow('ImageWindow', cv2.WINDOW_NORMAL)
cv2.moveWindow('ImageWindow', screenWidth, 0)
cv2.setWindowProperty("ImageWindow", cv2.WND_PROP_FULLSCREEN, 1)
cv2.imshow('ImageWindow',cv2.resize(self.pattern_lib.decorator.sequence[0],(self.width,self.height),interpolation=self.interp_method))
cv2.waitKey(750) # allows the projector to take the time to display the first pattern, particularly if it is white



def thread_acquisition(self, path=None, time_warning=True):
Expand Down

0 comments on commit 9e973b5

Please sign in to comment.