You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-6Lines changed: 14 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,7 @@ This is a simple and lightweight Python extension that allows developers to enum
3
3
4
4
```python
5
5
from windows_capture_devices import get_capture_devices
6
-
import av
7
-
8
-
if__name__=="__main__":
9
-
device_list = get_capture_devices()
10
-
11
-
#TODO: pyav example
6
+
device_list = get_capture_devices()
12
7
```
13
8
14
9
We use this extension in the `WebcamSource` of our [**multisensor-pipeline**](https://github.com/DFKI-Interactive-Machine-Learning/multisensor-pipeline).
@@ -23,6 +18,19 @@ We use this extension in the `WebcamSource` of our [**multisensor-pipeline**](ht
23
18
```commandline
24
19
python setup.py build install
25
20
```
21
+
* Build a wheel
22
+
```commandline
23
+
pip install wheel
24
+
python setup.py bdist_wheel
25
+
```
26
+
27
+
## PyAV Example
28
+
We include an example for grabbing an image frame using PyAV in `demo.py`. The demo has additional dependencies:
29
+
30
+
```commandline
31
+
conda install av -c conda-forge
32
+
pip install Pillow
33
+
```
26
34
27
35
## Credits
28
36
This repository is forked from https://github.com/yushulx/python-capture-device-list.
0 commit comments