Añadir la lectura de codigo de barras
This commit is contained in:
@@ -5,7 +5,9 @@ Android application developed in Kotlin using Jetpack Compose that scans barcode
|
||||
## 🚀 Features
|
||||
|
||||
- **Instant Scan**: The camera opens automatically upon application startup.
|
||||
- **ML Kit Integration**: High-performance barcode detection using Google ML Kit.
|
||||
- **Visual Overlay**: Centered scanning guide with a red line to help align barcodes.
|
||||
- **ML Kit Integration**: High-performance barcode detection (HD 720p analysis).
|
||||
- **Confirmation Flow**: Scanned results are shown in a popup dialog before saving.
|
||||
- **MariaDB Connectivity**: Direct connection to a remote database via JDBC.
|
||||
- **Modern UI**: Built with Jetpack Compose and Material 3.
|
||||
- **Permission Handling**: Automatic runtime camera permission requests.
|
||||
@@ -16,6 +18,13 @@ Android application developed in Kotlin using Jetpack Compose that scans barcode
|
||||
- MariaDB Server accessible from the mobile device network.
|
||||
- Camera hardware.
|
||||
|
||||
## 📱 User Interface
|
||||
|
||||
The app features a professional scanning interface:
|
||||
1. **Scanner Guide**: A white square frame indicates the target area.
|
||||
2. **Detection Feedback**: Once a code is read, a popup dialog appears showing the value.
|
||||
3. **Database Actions**: Users can choose to "Guardar" (Save) to the database or "Cerrar" (Dismiss) to scan again.
|
||||
|
||||
## ⚙️ Configuration
|
||||
|
||||
### 1. Database Setup
|
||||
@@ -50,8 +59,8 @@ private const val PASSWORD = "YOUR_PASSWORD"
|
||||
|
||||
## 📦 Dependencies
|
||||
|
||||
- **CameraX**: For camera preview and frame capture.
|
||||
- **ML Kit Barcode Scanning**: For processing barcodes.
|
||||
- **CameraX**: For camera preview and high-resolution frame capture.
|
||||
- **ML Kit Barcode Scanning**: For processing all barcode formats.
|
||||
- **MariaDB Java Client**: JDBC driver for database communication.
|
||||
- **Coroutines**: For asynchronous database operations.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user