Jetpack Compose Barcode Scanner
Jetpack Compose + Google ML Kit - Barcode Scanning
ScreenRecording
barcode_screen_recording.mp4
Structure
- main
-- java
--- com.compose.barcodescanner
---- scanner
----- presentation
------- model
------- BarcodeImageAnalyzer // Set up the Image Processor and add the process flow listener
------- BarcodeResultBoundaryAnalyzer // Based on the BarcodeResult position analyze the position relationship between barcode and scanning frame
BarcodeImageAnalyzer Flow
At the second step of the diagram listed above, ImageAnalyzer transform the camera captured information into ImageInfo.
You can see the info below
BarcodeResultBoundaryAnalyzer
OutOfBoundary | BoundaryOverLap | InsideBoundary | PerfectMatch |
---|---|---|---|