Spaces:
Runtime error
Runtime error
Download loading_screen.py from SoccerQ/video-analysis: direct link, hf CLI and curl.
- Browser
- Download file 409 Bytes
-
https://huggingface.co/spaces/SoccerQ/video-analysis/resolve/main/loading_screen.py
- Command line
-
hf download hf://spaces/SoccerQ/video-analysis/loading_screen.py
-
curl -L -o loading_screen.py https://huggingface.co/spaces/SoccerQ/video-analysis/resolve/main/loading_screen.py
409 Bytes
| 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 |