Skip to content

feat: IR camera auto-detection, format fixes, CI test fix#1

Merged
4ni1ak merged 1 commit intomainfrom
feat/auto-camera-detect-and-fixes
Mar 21, 2026
Merged

feat: IR camera auto-detection, format fixes, CI test fix#1
4ni1ak merged 1 commit intomainfrom
feat/auto-camera-detect-and-fixes

Conversation

@4ni1ak
Copy link
Copy Markdown
Owner

@4ni1ak 4ni1ak commented Mar 21, 2026

Summary

  • Auto-detect first grayscale (Y800/GREY) camera across /dev/video0..15 — no more hardcoded /dev/video2
  • PAM module, rustface-enroll, rustface-sim-test and camera-test all use auto-detect by default
  • Manual override still works: device=/dev/videoN as PAM arg or CLI positional arg
  • Fix cargo fmt issues across all source files
  • Fix CI: use cargo test --lib (cdylib crate-type causes cargo test to skip lib tests)
  • Fix README clone URL

Test plan

  • CI passes (build + format + lint + tests)
  • cargo run --bin camera-test auto-detects IR camera without args
  • sudo rustface-enroll $USER auto-detects camera
  • sudo face auth still works end-to-end

- Auto-detect first grayscale (Y800/GREY) camera across /dev/video0..15
- PAM module, enroll, sim-test and camera-test all use auto-detect by default
- Manual override: device=/dev/videoN PAM arg or CLI positional arg
- Fix cargo fmt issues across all source files
- Fix CI: use cargo test --lib (cdylib crate-type skips default cargo test)
- Fix README clone URL (4ni1ak instead of pervane)
@4ni1ak 4ni1ak merged commit f74e634 into main Mar 21, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant