Skip to content

Latest commit

 

History

History
50 lines (26 loc) · 2.01 KB

README.md

File metadata and controls

50 lines (26 loc) · 2.01 KB

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

BarcodeImageAnalyzer

At the second step of the diagram listed above, ImageAnalyzer transform the camera captured information into ImageInfo.

You can see the info below

Image Log

BarcodeResultBoundaryAnalyzer

OutOfBoundary BoundaryOverLap InsideBoundary PerfectMatch
OutOfBoundary BoundaryOverLap InsideBoundary PerfectMatch

Permission Handling

Permission