mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
i
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user