-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
40 lines (30 loc) · 924 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
default: add-video-dev
track-face:
echo this make target is deprecated. use the package entry (entry.py) instead.
crop-cam:
echo this make target is deprecated. use the package entry (entry.py) instead.
# create a virtual video device on Linux
add-video-dev:
# sudo fuser /dev/video10 # to find out what is using the device
pkill gst-launch &> /dev/null || true
rmmod v4l2loopback &> /dev/null || true
modprobe v4l2loopback devices=1 max_buffers=2 exclusive_caps=1 video_nr=10 card_label="v4l-cam"
clean:
rm -rf dist
build:
pipenv run python -m build
publish: build
pipenv run python -m twine upload dist/*
# setup-webcam: add-video-dev
# v4l2loopback-ctl set-caps 'video/x-raw,format=I420,width=320,height=240' /dev/video10
# describe video devices on Linux
.PHONY: describe-devices
describe-devices:
v4l2-ctl --list-device
v4l2-ctl --list-formats-ext
fmt:
black .
check:
pylint .
flake8 .
mypy .