CI / test (push) Failing after 50s
- Camera: on imx371, configure a Raw-only stream and drive exposure, vblank, analogue gain and digital gain through the sensor subdev (QuadSensorAE). Falls back to the viewfinder+raw configuration if the subdev is not found or setup fails. - Camera: debayer 2x2-binned high-quality Quad-Bayer frames with an auto black level, a tone LUT, and CLAHE on strongly boosted frames. - Face: add detect_score (default 0.65) and lower the default dark threshold from 25 to 12. - Face: retry detection and embedding on gamma-lifted, CLAHE-enhanced frames when the image is dark.
28 lines
1.3 KiB
Plaintext
28 lines
1.3 KiB
Plaintext
# 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
|