- Flower Classification App is a cross-platform Flutter application that identifies flower species from images using an offline Machine Learning model.
- Users can capture a photo using the camera or select one from the gallery, and the app predicts the flower entirely on-device using TensorFlow Lite.
- The app works 100% offline, ensuring fast inference, user privacy, and no internet dependency.
- Capture flower images using the device camera
- Select images from the photo gallery
- On-device image classification
- No cloud APIs, no network calls
- Displays:
- Predicted flower name
- Confidence percentage
- Displays basic information about the predicted flower
- Smooth animated info cards
- Clean separation between prediction result and flower details
- Vibrant Material-based design
- Smooth animations for result & info card
- Supports multy color themes
- Optimized for mobile performance
- Trained on 50 flower classes
- Based on a Kaggle 299 Flowers Dataset
- Scalable architecture (easy to add more classes)
The app uses a Convolutional Neural Network (CNN) with Transfer Learning to achieve high accuracy while remaining lightweight for mobile devices.
- Architecture: MobileNetV2 (Transfer Learning)
- Framework: TensorFlow / Keras
- Inference Engine: TensorFlow Lite
- Execution: Fully offline (on-device)
- Kaggle 299 Flowers Dataset
- 50 flower classes
- Custom split into:
trainvaltest
- Preprocessed and trained using Google Colab
- Dataset prepared and split offline
- Model trained in Google Colab
- Converted to TensorFlow Lite (.tflite)
- Integrated into Flutter using
tflite_flutter - Real-time inference on mobile device
- Flutter (Dart)
- TensorFlow
- TensorFlow Lite
- CNN with Transfer Learning (MobileNetV2)
tflite_flutterimage_pickerimage
- Android Studio
- VS Code
- Google Colab
- Flutter SDK
- Clone this repository:
git clone https://github.com/Kalana-S/Flower-Classification-App.git cd Flower-Classification-App - Get all dependencies:
flutter pub get
- Run the app:
flutter run
- (Optional) Build a release APK:
flutter build apk --release
- Launch the app
- Select Camera or Gallery.
- Capture or select a flower image.
- The app predicts:
- Predicted flower
- Confidence score
- Flower information
- Results appear instantly β no internet required.
Full app workflow β UI β Input β Offline Prediction
video_2.webm
- Works completely offline
- No data collection
- No images uploaded to servers
- All ML inference runs locally on the device
Contributions are welcome.
Feel free to fork the repository and submit a pull request for:
- UI enhancements
- Performance optimizations
- Additional flower data
- New features
This project is open-source and available under the MIT License.
π‘ Built with Flutter, powered by offline AI using TensorFlow Lite.