mirror of
https://github.com/boltgolt/howdy.git
synced 2024-09-12 09:41:18 +02:00
Unsuppress sdterr from fswebcam
This commit is contained in:
parent
8c3039b0d0
commit
4c823a8d1c
1 changed files with 1 additions and 1 deletions
2
learn.py
2
learn.py
|
@ -21,7 +21,7 @@ def captureFrame(delay):
|
|||
global encodings
|
||||
|
||||
# Call fswebcam to save a frame to /tmp with a set delay
|
||||
subprocess.call(["fswebcam", "-S", str(delay), "--no-banner", "-d", "/dev/video" + str(config.get("video", "device_id")), tmp_file], stderr=open(os.devnull, "wb"))
|
||||
subprocess.call(["fswebcam", "-S", str(delay), "--no-banner", "-d", "/dev/video" + str(config.get("video", "device_id")), tmp_file])
|
||||
|
||||
# Get the faces in htat image
|
||||
ref = face_recognition.load_image_file(tmp_file)
|
||||
|
|
Loading…
Reference in a new issue