Promote to production: pas foto guided camera + auto-align - #301
Merged
Conversation
…-align Users without a photo can now shoot one in the tool. The camera opens front-facing with the existing passport guide drawn over the exact crop the photo will use, and on-device face detection (the model Face Blur already ships) gives live feedback — move closer / further back / centre your head — plus an optional 3-2-1 auto-capture that only fires while the framing stays good. After capture *and* after an upload, the head is auto-aligned: a single detection sets the existing zoom/offset controls so the crown and chin land on the guide lines. Manual sliders and a re-align button remain. New pure lib foto-align.lib (framingFeedback, alignTransform, coverCropRect — 18 tests verifying the head lands on the guide to sub-pixel accuracy across aspect ratios and source orientations). useCamera.start() takes an optional facing mode (defaults unchanged). Preview is mirrored for selfie comfort but the captured file is not. Detector failure degrades to manual framing, never blocking capture. EN + ID SEO updated.
feat(pas-foto): guided camera capture with live framing help + auto-align
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.
Promotes the Pas Foto Maker guided camera capture (live framing feedback, auto-capture) and automatic head alignment for both camera and uploaded photos. CI green on develop.