Cleanup, fullscreen
This commit is contained in:
parent
e2c41f0360
commit
46438103b3
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue