0
0
Fork 0
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:
boltgolt 2018-02-01 19:07:04 +01:00
parent 8c3039b0d0
commit 4c823a8d1c

View file

@ -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)