Merge pull request #227 from MisterRager/debian-use-ffmpeg-instead-of-streamer
Debian: Use fswebcam Instead of Streamer
This commit is contained in:
commit
5a84dfedc8
5 changed files with 11 additions and 4 deletions
2
.github/FUNDING.yml
vendored
Normal file
2
.github/FUNDING.yml
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
# These are supported funding model platforms
|
||||||
|
custom: https://www.buymeacoffee.com/boltgolt
|
||||||
|
|
@ -61,7 +61,7 @@ sudo dnf install howdy
|
||||||
|
|
||||||
After installation, Howdy needs needs to learn what you look like so it can recognise you later. Run `sudo howdy add` to add a face model.
|
After installation, Howdy needs needs to learn what you look like so it can recognise you later. Run `sudo howdy add` to add a face model.
|
||||||
|
|
||||||
If nothing went wrong we should be able to run sudo by just showing your face. Open a new terminal and run `sudo -i` to see it in action.
|
If nothing went wrong we should be able to run sudo by just showing your face. Open a new terminal and run `sudo -i` to see it in action. Please check [this wiki page](https://github.com/boltgolt/howdy/wiki/Common-issues) if you've experiencing problems or [search](https://github.com/boltgolt/howdy/issues) for similar issues.
|
||||||
|
|
||||||
If you're curious you can run `sudo howdy config` to open the central config file and see the options Howdy has to offer. On most systems this will open the nano editor, where you have to press `ctrl`+`x` to save your changes.
|
If you're curious you can run `sudo howdy config` to open the central config file and see the options Howdy has to offer. On most systems this will open the nano editor, where you have to press `ctrl`+`x` to save your changes.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ package() {
|
||||||
|
|
||||||
# Installing dlib with GPU
|
# Installing dlib with GPU
|
||||||
cd dlib_clone
|
cd dlib_clone
|
||||||
python3 setup.py install --yes USE_AVX_INSTRUCTIONS --no DLIB_USE_CUDA --root="$pkgdir/" --optimize=1 --skip-build
|
python3 setup.py install --no DLIB_USE_CUDA --root="$pkgdir/" --optimize=1 --skip-build
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# Installing pam-python
|
# Installing pam-python
|
||||||
|
|
|
||||||
2
debian/control
vendored
2
debian/control
vendored
|
|
@ -9,7 +9,7 @@ Vcs-Git: https://github.com/boltgolt/howdy
|
||||||
Package: howdy
|
Package: howdy
|
||||||
Homepage: https://github.com/boltgolt/howdy
|
Homepage: https://github.com/boltgolt/howdy
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Depends: ${misc:Depends}, curl|wget, python3, python3-pip, python3-dev, python3-setuptools, libpam-python, fswebcam, libopencv-dev, cmake, streamer
|
Depends: ${misc:Depends}, curl|wget, python3, python3-pip, python3-dev, python3-setuptools, libpam-python, fswebcam, libopencv-dev, cmake, fswebcam
|
||||||
Recommends: libatlas-base-dev | libopenblas-dev | liblapack-dev
|
Recommends: libatlas-base-dev | libopenblas-dev | liblapack-dev
|
||||||
Suggests: nvidia-cuda-dev (>= 7.5)
|
Suggests: nvidia-cuda-dev (>= 7.5)
|
||||||
Description: Howdy: Windows Hello style authentication for Linux.
|
Description: Howdy: Windows Hello style authentication for Linux.
|
||||||
|
|
|
||||||
7
debian/preinst
vendored
7
debian/preinst
vendored
|
|
@ -73,7 +73,12 @@ for dev in devices:
|
||||||
print("Trying " + device_name)
|
print("Trying " + device_name)
|
||||||
|
|
||||||
# Let fswebcam keep the camera open in the background
|
# Let fswebcam keep the camera open in the background
|
||||||
sub = subprocess.Popen(["streamer -t 1:0:0 -c /dev/v4l/by-path/" + dev + " -b 16 -f rgb24 -o /dev/null 1>/dev/null 2>/dev/null"], shell=True, preexec_fn=os.setsid)
|
sub = subprocess.Popen(
|
||||||
|
"fswebcam -l 1 -d /dev/v4l/by-path/%s" % dev,
|
||||||
|
shell=True,
|
||||||
|
preexec_fn=os.setsid,
|
||||||
|
stdout=subprocess.PIPE,
|
||||||
|
stdin=subprocess.PIPE)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Ask the user if this is the right one
|
# Ask the user if this is the right one
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue