diff --git a/docs/face-unlock.md b/docs/face-unlock.md index cf7d9f1..7a1c4f2 100644 --- a/docs/face-unlock.md +++ b/docs/face-unlock.md @@ -100,7 +100,7 @@ keyring or KWallet, which need the password. ```ini [face] enabled = yes # no: the module stays quiet and PAM goes straight on to the password -device = /dev/video0 # the camera; an IR camera is often /dev/video2 +device = /dev/v4l/by-id/usb-EMEET_...-video-index0 # the camera (by-id: /dev/videoN numbers change); an IR camera is often index1 timeout = 4 # seconds to look before giving up threshold = 0.42 # SFace cosine similarity needed (OpenCV suggests 0.363; higher is stricter) matches = 2 # frames that must match diff --git a/face/face.conf b/face/face.conf index 9b8dbe8..a9ca65b 100644 --- a/face/face.conf +++ b/face/face.conf @@ -4,9 +4,10 @@ enabled = yes # opencv: YuNet finds the face, SFace compares it (models from `chandra-face fetch-models`). backend = opencv -# The camera. An infrared camera (often /dev/video2 on Windows Hello laptops) works in the dark +# The camera. Use a /dev/v4l/by-id/ path: /dev/videoN numbers change between boots, and OBS's +# virtual camera can take video0. An infrared camera (often /dev/video2 on Windows Hello laptops) works in the dark # and is much harder to fool with a photo than the normal webcam. -device = /dev/video0 +device = /dev/v4l/by-id/usb-EMEET_EMEET_SmartCam_C960_A260401000205719-video-index0 # Seconds to look for a face before PAM moves on to the password. timeout = 4 # How alike two faces must be (cosine similarity of SFace embeddings, -1..1). OpenCV suggests