# Face unlock (docs/face-unlock.md). Installed as /etc/chandra/face.conf; must stay root's. [face] # no: the PAM module stays quiet and PAM goes straight on to the password. enabled = yes # opencv: YuNet finds the face, SFace compares it (models from `chandra-face fetch-models`). backend = opencv # 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/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 # 0.363; higher is stricter (fewer false accepts, more "not recognized"). threshold = 0.42 # How many frames must match. matches = 2 # Frames darker than this (0-255 average) are skipped: IR emitters take a moment to light up. dark = 12 # Smallest face to use, in pixels (a face far away is too blurry to trust). min_face = 80 # yes: only accept grey (infrared) frames, refusing a colour webcam. require_ir = no # Frames taken when enrolling a face. enroll_frames = 5 store = /var/lib/chandra-face models = /usr/local/share/chandra/face