Cleanup, fullscreen
This commit is contained in:
@@ -36,7 +36,7 @@ class Video:
|
|||||||
|
|
||||||
cv2.namedWindow("window", cv2.WND_PROP_FULLSCREEN)
|
cv2.namedWindow("window", cv2.WND_PROP_FULLSCREEN)
|
||||||
cv2.moveWindow("window", self.x, self.y)
|
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)
|
cv2.imshow("window", frame)
|
||||||
|
|
||||||
@@ -45,10 +45,10 @@ class Video:
|
|||||||
# Break the loop
|
# Break the loop
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
# self.cap.release()
|
self.cap.release()
|
||||||
|
|
||||||
# # Closes all the frames
|
# Closes all the frames
|
||||||
# cv2.destroyAllWindows()
|
cv2.destroyAllWindows()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
video = Video(0, 0)
|
video = Video(0, 0)
|
||||||
|
Reference in New Issue
Block a user