shim: expose BlinkAnalyzer + compute_ear via spoof_detector public namespace#18
Closed
ahmetabdullahgultekin wants to merge 1 commit into
Closed
shim: expose BlinkAnalyzer + compute_ear via spoof_detector public namespace#18ahmetabdullahgultekin wants to merge 1 commit into
ahmetabdullahgultekin wants to merge 1 commit into
Conversation
…mespace
Adds `spoof_detector.infrastructure.analyzers.blink_analyzer` as a thin
re-export of `src.infrastructure.analyzers.blink_analyzer`. The 2026-05-11
blink-cache + EAR recalibration work landed in `src/` but was never reachable
through the public shim, forcing downstream consumers (FIVUCSAS
biometric-processor `/verify` wiring) to either reach into `src.*` or
recompute EAR locally.
Per repo policy (`feedback_spoof_detector_architecture`), algorithms live
here and biometric-processor only imports + wires. This shim closes the
last public-API gap for that policy.
Tests:
* tests/unit/test_public_shim_blink_analyzer.py — pins identity of the
re-export (public alias `is` private function), shape of LEFT_EYE /
RIGHT_EYE index lists, and a synthetic EAR round-trip.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
Author
|
Merge order note (2026-05-12) This PR is the upstream dependency for the bio + web puzzle wiring:
Please merge in that order. Operator coordination items live in parent PR Rollingcat-Software/FIVUCSAS#67 |
This was referenced May 12, 2026
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
spoof_detector.infrastructure.analyzers.blink_analyzeras a thin re-export ofsrc.infrastructure.analyzers.blink_analyzer. The 2026-05-11 blink-cache + EAR recalibration work landed insrc/but was never reachable through the public shim, forcing downstream consumers (FIVUCSAS biometric-processor/verifywiring) to either reach intosrc.*or recompute EAR locally.Per repo policy (
feedback_spoof_detector_architecture), algorithms live here and biometric-processor only imports + wires. This shim closes the last public-API gap for that policy.Companion biometric-processor PR (Bug 2 — wire EAR into /verify): Rollingcat-Software/biometric-processor#102
Test plan
pytest tests/unit/test_public_shim_blink_analyzer.py— 3 pass (re-export identity, index lists, synthetic EAR round-trip)🤖 Generated with Claude Code