Spaces:
Runtime error
Runtime error
File size: 409 Bytes
44278cc | 1 2 3 4 5 6 7 8 | def display_loading_screen(result_queue, first_frame, LOADING_NUMBER_FRAMES, cv2):
periods = 0
for _ in range(LOADING_NUMBER_FRAMES):
loading_frame = first_frame.copy()
cv2.putText(loading_frame, "Loading"+"."*periods, (450, 360), cv2.FONT_HERSHEY_SIMPLEX, 2, (255, 255, 255), 3, cv2.LINE_AA)
result_queue.put(loading_frame)
periods+=1
if periods>3: periods = 0 |