Skip to content

Commit 9b04565

Browse files
committed
Add missing imports and change main path
1 parent ef6ea7f commit 9b04565

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

arcade/experimental/video_cv2.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
pip install opencv-python
1010
"""
1111
from math import floor
12+
from pathlib import Path
13+
from typing import Union
14+
1215
import arcade
1316
from arcade.gl.geometry import quad_2d_fs
1417
import cv2 # type: ignore
@@ -133,5 +136,5 @@ def on_update(self, delta_time: float):
133136

134137
if __name__ == '__main__':
135138
window = arcade.Window(800, 600, "Video Player")
136-
window.show_view(CV2PlayerView("/home/ibrahim/PycharmProjects/pyweek/35/Tetris-in-Ohio/assets/rain.mp4"))
139+
window.show_view(CV2PlayerView("/home/user/path/to/project/assets/rain.mp4"))
137140
window.run()

0 commit comments

Comments
 (0)