This commit is contained in:
lvmin
2023-08-10 18:54:55 -07:00
parent 6cace22b5a
commit bc96081487
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import cv2
def show_preview(flag, img, title=None):
if title is None:
title = flag
cv2.imshow(flag, img)
cv2.imshow(flag, img[:, :, ::-1].copy())
cv2.setWindowTitle(flag, title)
cv2.setWindowProperty(flag, cv2.WND_PROP_TOPMOST, 1)
cv2.waitKey(1)