File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 3
3
import platform
4
4
import time
5
5
6
+ import numpy as np
7
+
6
8
from pyvirtualcam .util import FPSCounter
7
9
8
10
if platform .system () == 'Windows' :
@@ -50,7 +52,7 @@ def frames_sent(self) -> int:
50
52
def close (self ) -> None : pass
51
53
52
54
@abstractmethod
53
- def send (self , frame ) -> None :
55
+ def send (self , frame : np . ndarray ) -> None :
54
56
self ._frames_sent += 1
55
57
56
58
self ._fps_counter .measure ()
@@ -87,7 +89,7 @@ def close(self) -> None:
87
89
super ().close ()
88
90
_native_windows .stop ()
89
91
90
- def send (self , frame ) -> None :
92
+ def send (self , frame : np . ndarray ) -> None :
91
93
super ().send (frame )
92
94
_native_windows .send (frame )
93
95
Original file line number Diff line number Diff line change @@ -130,6 +130,7 @@ def build_extensions(self):
130
130
ext_modules = ext_modules ,
131
131
packages = find_packages (),
132
132
setup_requires = ['pybind11>=2.5.0' ],
133
+ install_requires = ['numpy' ],
133
134
cmdclass = {'build_ext' : BuildExt },
134
135
zip_safe = False ,
135
136
)
You can’t perform that action at this time.
0 commit comments