Skip to content

This project is a QR Code Scanner application built using Jetpack Compose and Google's ML Kit. The app utilizes CameraX to access the device's camera, scan QR codes, and display the decoded information on the screen.

License

Notifications You must be signed in to change notification settings

shafaque/ComposeScanner

Repository files navigation

QR Code Scanner App

This project is a QR Code Scanner application built using Jetpack Compose and Google's ML Kit. The app utilizes CameraX to access the device's camera, scan QR codes, and display the decoded information on the screen.

Table of Contents

Features

  • Real-time QR Code Scanning: Uses CameraX and ML Kit for efficient scanning of QR codes.
  • Jetpack Compose UI: Modern UI with Compose, offering a smooth and responsive user experience.
  • Permission Handling: Uses Accompanist for handling runtime permissions gracefully.
  • Display Results: Shows decoded QR code data in a user-friendly format.

Screenshots

Here are some screenshots of the application in action:

Scanning QR Code Displaying QR Data
Scanning Displaying QR Data

Architecture

The project follows a straightforward architecture using Jetpack Compose and CameraX:

  • MainActivity: The main entry point, handling camera initialization and managing the UI.
  • Composable Functions: Individual composable functions are used to build the UI, such as CameraPreview, QRCodeResult, and CameraPermission.
  • QRCodeAnalyzer: This class processes each camera frame to detect and decode QR codes using ML Kit.
  • State Management: Uses Compose's remember and mutableStateOf for managing UI state and QR code results.

Technologies Used

  • Jetpack Compose: For building the UI in a declarative manner.
  • CameraX: To access and control the camera.
  • ML Kit: For barcode scanning and QR code detection.
  • Accompanist: For managing permissions in Compose.
  • Kotlin: The programming language used for building the application.

Installation Steps

  1. Clone the Repository:

    git clone https://github.com/shafaque/ComposeScanner.git
    cd ComposeScanner
    

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This project is a QR Code Scanner application built using Jetpack Compose and Google's ML Kit. The app utilizes CameraX to access the device's camera, scan QR codes, and display the decoded information on the screen.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages