We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef6ea7f commit 9b04565Copy full SHA for 9b04565
arcade/experimental/video_cv2.py
@@ -9,6 +9,9 @@
9
pip install opencv-python
10
"""
11
from math import floor
12
+from pathlib import Path
13
+from typing import Union
14
+
15
import arcade
16
from arcade.gl.geometry import quad_2d_fs
17
import cv2 # type: ignore
@@ -133,5 +136,5 @@ def on_update(self, delta_time: float):
133
136
134
137
if __name__ == '__main__':
135
138
window = arcade.Window(800, 600, "Video Player")
- 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"))
140
window.run()
0 commit comments