An Android Studio Java project built using Firebase ML Kit to demonstrate some machine learning features in mobile devices. This app combines four intelligent computer vision tasks with clean UI design and intuitive user interaction.
- Clone this repo or download the source code:
git clone https://github.com/Usama-Codez/SnapAI-Toolkit-
Open with Android Studio File then Open then Select the root folder
-
Connect your Android device or use an emulator.
-
Run the project using in Android Studio.
💡 Make sure your Firebase dependencies are synced. Internet access required at first run.
app/
├── java/
│ └── com.usama.mlkitapp/
│ ├── MainActivity.java
│ ├── OCRActivity.java
│ ├── FaceDetectionActivity.java
│ ├── BarcodeScannerActivity.java
│ └── ObjectDetectionActivity.java
├── res/
│ ├── layout/ # All XML layouts per screen
│ └── drawable/ # Icons and overlays
├── AndroidManifest.xml
build.gradle// Firebase ML Kit modules
implementation 'com.google.mlkit:text-recognition:16.0.0'
implementation 'com.google.mlkit:face-detection:16.1.5'
implementation 'com.google.mlkit:barcode-scanning:17.0.2'
implementation 'com.google.mlkit:object-detection:16.2.5'// CameraX
implementation "androidx.camera:camera-camera2:1.1.0"
implementation "androidx.camera:camera-lifecycle:1.1.0"
implementation "androidx.camera:camera-view:1.0.0-alpha32"✅ All models used are on-device for performance and privacy.
| Feature | Description |
|---|---|
| 🧾 OCR | Extract text from images in real time |
| 😐 Face Detection | Detect faces and facial landmarks |
| 🔍 Object Detection | Detect & track multiple objects on screen |
| 📦 Barcode Scanner | Scan QR codes and barcodes instantly |
- 📱 Min SDK: 21
- ⚙️ Built with: Android Studio Electric Eel (or newer)
- 🔒 Privacy-first: 100% on-device ML
- 📦 Dependencies: Firebase ML Kit + CameraX
- 🧠 ML Models: Lightweight, optimized for mobile
| OCR | Face Detection |
![]() |
![]() |
| Barcode Scanner | Object Detection |
![]() |
![]() |
This project is part of the Software for Mobile Devices course at FAST NUCES.



