MARGI3 / ComposeBarcodeScanner

Jetpack compose barcode scanner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Jetpack compose barcode scanner


Languages

Language:Kotlin 100.0%