Cleanup, fullscreen

This commit is contained in:
jimmy 2022-07-18 18:51:16 +12:00
parent e2c41f0360
commit 46438103b3
1 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ class Video:
cv2.namedWindow("window", cv2.WND_PROP_FULLSCREEN)
cv2.moveWindow("window", self.x, self.y)
#cv2.setWindowProperty("window",cv2.WND_PROP_FULLSCREEN,cv2.WINDOW_FULLSCREEN)
cv2.setWindowProperty("window",cv2.WND_PROP_FULLSCREEN,cv2.WINDOW_FULLSCREEN)
cv2.imshow("window", frame)
@ -45,10 +45,10 @@ class Video:
# Break the loop
else:
break
# self.cap.release()
self.cap.release()
# # Closes all the frames
# cv2.destroyAllWindows()
# Closes all the frames
cv2.destroyAllWindows()
if __name__ == "__main__":
video = Video(0, 0)