Skip to content

Commit

Permalink
fix show_video feature
Browse files Browse the repository at this point in the history
  • Loading branch information
t-sasatani committed Jun 22, 2024
1 parent 1f2d480 commit c510c1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions miniscope_io/stream_daq.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,7 @@ def capture(
for image in exact_iter(imagearray.get, None):
if self.config.show_video is True:
cv2.imshow("image", image)
cv2.waitKey(1) #needed for updating interactive window. delay 1 ms for now.
if writer:
picture = cv2.cvtColor(image, cv2.COLOR_GRAY2BGR) # If your image is grayscale
writer.write(picture)
Expand Down

0 comments on commit c510c1c

Please sign in to comment.