I'd like to use my IR camera as the main camera, not as an additional anti-spoofing.
Currently, when enabling IR mode, biopass tries to access both camera streams in parallel (I presume?). However, this is not possible with my WB7022, as only one stream can be active at any time.
Using the IR as a main camera has the advantage that it works also with low light settings.
I can successfully use the IR as main camera using the PR #90 (see #52), however then it timeouts quite often as the flashing of the IR leaves some frames black and the AI model can't find a face.
[2026-06-07 09:33:18.125] [biopass] [error] FaceAuth: Camera '/dev/video2' does not expose a GREY format for direct V4L2 capture
[2026-06-07 09:33:18.125] [biopass] [debug] AuthManager: Starting Face authentication (parallel)
[2026-06-07 09:33:18.171] [biopass] [debug] FaceAuth: Detection model loaded | threshold=0.800
[2026-06-07 09:33:18.218] [biopass] [debug] FaceAuth: Recognition model loaded | threshold=0.800
[2026-06-07 09:33:18.750] [biopass] [error] FaceAuth: Camera '/dev/video2' does not expose a GREY format for direct V4L2 capture
[2026-06-07 09:33:18.750] [biopass] [debug] FaceAuth: Anti-spoofing started (ai_enabled=false, ir_enabled=true, ir_camera='/dev/video2')
[2026-06-07 09:33:18.751] [biopass] [debug] FaceAuth: IR presence check | device='/dev/video2' detection_threshold=0.800 warmup_delay_ms=300
[2026-06-07 09:33:18.751] [biopass] [debug] FaceAuth: IR presence check — sleeping 300ms for camera stabilisation
[2026-06-07 09:33:19.051] [biopass] [debug] FaceAuth: IR presence check — opening new session on '/dev/video2'
[2026-06-07 09:33:19.051] [biopass] [error] FaceAuth: Camera '/dev/video2' does not expose a GREY format for direct V4L2 capture
[2026-06-07 09:33:19.051] [biopass] [error] FaceAuth: IR presence check — frame capture failed from '/dev/video2'
[2026-06-07 09:33:19.051] [biopass] [debug] FaceAuth: IR anti-spoofing method failed
[2026-06-07 09:33:19.051] [biopass] [error] FaceAuth: Anti-spoofing failed (one or more enabled methods failed)
[2026-06-07 09:33:19.051] [biopass] [warning] FaceAuth: Anti-spoofing failed — returning Failure (no retry allowed)
[2026-06-07 09:33:19.773] [biopass] [error] AuthManager: All parallel authentication methods failed
I'd like to use my IR camera as the main camera, not as an additional anti-spoofing.
Currently, when enabling IR mode, biopass tries to access both camera streams in parallel (I presume?). However, this is not possible with my WB7022, as only one stream can be active at any time.
Using the IR as a main camera has the advantage that it works also with low light settings.
I can successfully use the IR as main camera using the PR #90 (see #52), however then it timeouts quite often as the flashing of the IR leaves some frames black and the AI model can't find a face.