This commit is contained in:
lvmin
2023-08-10 18:45:06 -07:00
parent a08a7f254c
commit 336493292b
3 changed files with 17 additions and 17 deletions
+13
View File
@@ -0,0 +1,13 @@
import cv2
def show_preview(flag, img, title=None):
if title is None:
title = flag
cv2.imshow(flag, img)
cv2.setWindowTitle(flag, title)
cv2.waitKey(1)
def close_all_preview():
cv2.destroyAllWindows()