Skip to content

๐ŸŒพ AI-powered plant disease detection app for farmers in West Nusa Tenggara, Indonesia. Built with Flutter, Azure Custom Vision & Azure OpenAI.

License

Notifications You must be signed in to change notification settings

rasidi3112/IMAGINE-CUP-MICROSOFT-2026

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

AgriVision NTB Logo

AgriVision NTB

Smart Plant Disease Detection for Farmers in West Nusa Tenggara

Features โ€ข Screenshots โ€ข Tech Stack โ€ข Getting Started โ€ข Documentation

Flutter FastAPI Azure License


About

AgriVision NTB is an AI-powered mobile application designed to help farmers in Nusa Tenggara Barat (NTB), Indonesia detect, analyze, and treat plant diseases using modern technology. The app combines Azure Custom Vision for disease classification and Azure OpenAI for intelligent consultation, making agricultural expertise accessible to every farmer.

"Petani Cerdas, Pertanian Sehat" โ€” Smart Farmers, Healthy Agriculture


Features

Feature Description
Disease Detection Scan plant leaves using camera to detect diseases with AI
AI Consultation Chat with AI agronomist for treatment recommendations
Outbreak Map Interactive heatmap showing disease spread across NTB
Treatment Calendar Schedule and track spraying, fertilizing, and harvest
Weather Dashboard Real-time weather with farming recommendations
Disease Encyclopedia Database of 80+ plant diseases with treatments
Plant Guide Cultivation guide for 10 main crops in NTB
Pesticide Finder Find recommended pesticides with local shop locations
Gamification Earn XP and badges to encourage best practices
Offline Mode Core features work without internet connection

Language Support

The app supports 5 languages to serve the diverse communities in NTB:

  • ๐Ÿ‡ฎ๐Ÿ‡ฉ Bahasa Indonesia โ€” National language
  • ๐Ÿ‡ฌ๐Ÿ‡ง English โ€” International access
  • ๐Ÿ๏ธ Bahasa Sasak โ€” Lombok native language
  • ๐Ÿ๏ธ Bahasa Sumbawa โ€” Sumbawa native language
  • ๐Ÿ๏ธ Bahasa Mbojo โ€” Bima native language

Screenshots

Home Screen Outbreak Map Calendar History Profile

From left to right: Home Dashboard, Disease Outbreak Map, Treatment Calendar, Scan History, User Profile


Tech Stack

Mobile Application (Frontend)

Technology Purpose
Flutter 3.x Cross-platform mobile framework
Provider State management
Easy Localization Multi-language support (5 languages)
Flutter Map Interactive outbreak mapping
Camera/Image Picker Plant leaf scanning
SharedPreferences Local data persistence

Backend Services

Technology Purpose
FastAPI Python REST API server
OpenCV Image processing & severity analysis
NumPy Numerical computing

Microsoft Azure Services

Service Purpose
Azure Custom Vision Plant disease classification model
Azure OpenAI (GPT-4) AI consultation chatbot

Architecture

agrivision_ntb/
โ”‚
โ”œโ”€โ”€ lib/                      # Flutter Application
โ”‚   โ”œโ”€โ”€ config/               # App configuration
โ”‚   โ”œโ”€โ”€ models/               # Data models (11 models)
โ”‚   โ”œโ”€โ”€ providers/            # State management
โ”‚   โ”œโ”€โ”€ screens/              # UI screens (18 screens)
โ”‚   โ”œโ”€โ”€ services/             # API & device services
โ”‚   โ””โ”€โ”€ widgets/              # Reusable components
โ”‚
โ”œโ”€โ”€ backend/                  # Python Backend
โ”‚   โ”œโ”€โ”€ main.py               # FastAPI server
โ”‚   โ””โ”€โ”€ requirements.txt      # Python dependencies
โ”‚
โ”œโ”€โ”€ assets/
โ”‚   โ”œโ”€โ”€ translations/         # i18n files (5 languages)
โ”‚   โ”œโ”€โ”€ content/              # Disease & plant data
โ”‚   โ””โ”€โ”€ images/               # Static images
โ”‚
โ””โ”€โ”€ docs/                     # Documentation
    โ”œโ”€โ”€ MODELS.md             # Data model documentation
    โ””โ”€โ”€ SCREENS.md            # Screen documentation

Getting Started

Prerequisites

  • Flutter SDK 3.x
  • Python 3.9+
  • Azure account (for AI services)

Frontend Setup

# Clone the repository
git clone https://github.com/yourusername/agrivision-ntb.git
cd agrivision-ntb

# Install Flutter dependencies
flutter pub get

# Create environment file
cp .env.example .env
# Edit .env with your Azure API keys

# Run the application
flutter run

Backend Setup

# Navigate to backend directory
cd backend

# Create virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Run the server
uvicorn main:app --reload --host 0.0.0.0 --port 8000

Environment Variables

Create a .env file in the root directory:

# Azure Custom Vision
CUSTOM_VISION_ENDPOINT=your_endpoint
CUSTOM_VISION_PREDICTION_KEY=your_key
CUSTOM_VISION_PROJECT_ID=your_project_id
CUSTOM_VISION_PUBLISHED_NAME=your_iteration_name

# Azure OpenAI
AZURE_OPENAI_ENDPOINT=your_endpoint
AZURE_OPENAI_KEY=your_key
AZURE_OPENAI_DEPLOYMENT_NAME=gpt-4o

โš ๏ธ Security Note: Never commit .env file to version control. The .gitignore already excludes it.


Documentation

Document Description
MODELS.md Comprehensive data model documentation (11 models, 80+ diseases)
SCREENS.md UI screen documentation (18 screens)
Backend README Backend API documentation

Data Models

AgriVision NTB includes 11 comprehensive data models:

Model Records Description
Disease 80 Plant diseases database
Plant 10 Main crops in NTB
Pesticide 20 Available treatments
Weather - Weather & farming recommendations
Farm - Farm management
ScanResult - Disease scan results
Prediction - AI outbreak predictions
AgroShop 12 Local agricultural shops

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Team

AgriVision NTB Team โ€” Microsoft Imagine Cup 2026


License

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


Made with โค๏ธ for farmers in Nusa Tenggara Barat

About

๐ŸŒพ AI-powered plant disease detection app for farmers in West Nusa Tenggara, Indonesia. Built with Flutter, Azure Custom Vision & Azure OpenAI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published