Skip to content

Commit d751960

Browse files
author
arch
committed
add loading screen
1 parent 778996a commit d751960

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

funscript_editor/algorithms/funscriptgenerator.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,12 @@ def get_perspective_roi(self, image :np.ndarray) -> None:
481481

482482
if cv2.waitKey(1) in [ord('q')]: break
483483

484+
try:
485+
background = np.full(preview.shape, 255, dtype=np.uint8)
486+
loading_screen = self.drawText(background, "Please wait ...")
487+
cv2.imshow(self.window_name, loading_screen)
488+
except: pass
489+
484490
self.perspective_params = perspective
485491

486492

0 commit comments

Comments
 (0)