Skip to content

Commit 51278bc

Browse files
committed
add missing numpy dependency
1 parent 35505d3 commit 51278bc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pyvirtualcam/camera.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import platform
44
import time
55

6+
import numpy as np
7+
68
from pyvirtualcam.util import FPSCounter
79

810
if platform.system() == 'Windows':
@@ -50,7 +52,7 @@ def frames_sent(self) -> int:
5052
def close(self) -> None: pass
5153

5254
@abstractmethod
53-
def send(self, frame) -> None:
55+
def send(self, frame: np.ndarray) -> None:
5456
self._frames_sent += 1
5557

5658
self._fps_counter.measure()
@@ -87,7 +89,7 @@ def close(self) -> None:
8789
super().close()
8890
_native_windows.stop()
8991

90-
def send(self, frame) -> None:
92+
def send(self, frame: np.ndarray) -> None:
9193
super().send(frame)
9294
_native_windows.send(frame)
9395

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ def build_extensions(self):
130130
ext_modules=ext_modules,
131131
packages = find_packages(),
132132
setup_requires=['pybind11>=2.5.0'],
133+
install_requires=['numpy'],
133134
cmdclass={'build_ext': BuildExt},
134135
zip_safe=False,
135136
)

0 commit comments

Comments
 (0)