Face unlock: point at the webcam by its stable by-id path, not /dev/video0 (OBS virtual camera)
CI / test (push) Failing after 3m0s
CI / test (push) Failing after 3m0s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hjM4nPcLCbqchiA2V3
This commit is contained in:
1 parent
01bd8281d5
commit
1aabccba5d
2 files changed
+4
-3
No files matched your search
+1
-1
@@ -100,7 +100,7 @@ keyring or KWallet, which need the password.
|
|||||||
```ini
|
```ini
|
||||||
[face]
|
[face]
|
||||||
enabled = yes # no: the module stays quiet and PAM goes straight on to the password
|
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
|
timeout = 4 # seconds to look before giving up
|
||||||
threshold = 0.42 # SFace cosine similarity needed (OpenCV suggests 0.363; higher is stricter)
|
threshold = 0.42 # SFace cosine similarity needed (OpenCV suggests 0.363; higher is stricter)
|
||||||
matches = 2 # frames that must match
|
matches = 2 # frames that must match
|
||||||
|
|||||||
+3
-2
@@ -4,9 +4,10 @@
|
|||||||
enabled = yes
|
enabled = yes
|
||||||
# opencv: YuNet finds the face, SFace compares it (models from `chandra-face fetch-models`).
|
# opencv: YuNet finds the face, SFace compares it (models from `chandra-face fetch-models`).
|
||||||
backend = opencv
|
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.
|
# 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.
|
# Seconds to look for a face before PAM moves on to the password.
|
||||||
timeout = 4
|
timeout = 4
|
||||||
# How alike two faces must be (cosine similarity of SFace embeddings, -1..1). OpenCV suggests
|
# How alike two faces must be (cosine similarity of SFace embeddings, -1..1). OpenCV suggests
|
||||||
|
|||||||
Reference in new issue
Block a user