1. Component opens → request camera permission
2. Show camera viewfinder with translucent guide overlay
3. User taps capture button
4. Show captured image with crop tool overlay
5. User adjusts crop (optional) or skips
6. User confirms → onCapture called with file(s)
7. User can retake or cancel at any step
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Overview
Create a reusable React camera capture component with translucent guidance overlay, post-capture cropping, and file input fallback.
Parent Issue: #12 (OCR-powered smart capture)
Priority: P1 - VIN OCR
Dependencies: None (can be developed in parallel with OCR service)
Scope
Camera Capture Component
getUserMediaAPI for camera accessComponent API
User Flow
Guidance Overlays
Crop Tool
Directory Structure
Browser Compatibility
Mobile Considerations
Acceptance Criteria
Technical Notes
navigator.mediaDevices.getUserMedia()with video constraintsreact-image-cropor similar for crop toolOut of Scope