Candle commited on
Commit
0729203
·
1 Parent(s): c343e7a
Files changed (1) hide show
  1. loop_labeler_ui.py +2 -5
loop_labeler_ui.py CHANGED
@@ -1,5 +1,7 @@
1
  import sys
2
  import json
 
 
3
  from pathlib import Path
4
  from PIL import Image, ImageQt
5
  from PyQt5.QtWidgets import (
@@ -297,16 +299,11 @@ class LoopLabeler(QWidget):
297
  show_progress = True
298
  else:
299
  # Display an empty/blank preview if no frames
300
- import numpy as np
301
  blank_frame = np.ones((320, 320, 3), dtype=np.uint8) * 200 # Light gray
302
- import cv2
303
- from PIL import Image
304
  frame = Image.fromarray(cv2.cvtColor(blank_frame, cv2.COLOR_BGR2RGB))
305
  show_progress = False
306
 
307
  # Process and display the frame (shared code for both cases)
308
- import numpy as np
309
- import cv2
310
  frame_resized = frame.resize((320,320))
311
  arr = np.array(frame_resized)
312
 
 
1
  import sys
2
  import json
3
+ import numpy as np
4
+ import cv2
5
  from pathlib import Path
6
  from PIL import Image, ImageQt
7
  from PyQt5.QtWidgets import (
 
299
  show_progress = True
300
  else:
301
  # Display an empty/blank preview if no frames
 
302
  blank_frame = np.ones((320, 320, 3), dtype=np.uint8) * 200 # Light gray
 
 
303
  frame = Image.fromarray(cv2.cvtColor(blank_frame, cv2.COLOR_BGR2RGB))
304
  show_progress = False
305
 
306
  # Process and display the frame (shared code for both cases)
 
 
307
  frame_resized = frame.resize((320,320))
308
  arr = np.array(frame_resized)
309