Skip to content

🌱 CropGuard is an AI-powered plant disease detection mobile application built with React Native and Expo.

Notifications You must be signed in to change notification settings

Jaysum57/CropGuard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CropGuard 🌱

CropGuard is an AI-powered plant disease detection mobile application built with React Native and Expo. The app helps farmers and gardeners identify plant diseases through image analysis, providing early detection and treatment recommendations to protect crops and improve agricultural outcomes.

screenshot 1

Features

πŸ” Plant Disease Scanning - Capture or upload plant images for AI-powered disease detection using camera or gallery
πŸ“Š User Statistics - Track scanning history, accuracy rates, and disease detection records
πŸ‘€ User Authentication - Secure login system with personalized user profiles
🎯 Disease Information - Detailed information about detected diseases and treatment options
πŸ“± Cross-Platform - Available on both iOS and Android devices
🎨 Modern UI - Clean, intuitive interface with onboarding experience
πŸ”„ Real-time Processing - Live camera feed with instant AI analysis results

Technology Stack

  • Frontend: React Native with Expo (v54.0.12)
  • Navigation: Expo Router (file-based routing v6.0.10)
  • UI Components: React Native, Expo Vector Icons, React Native Vector Icons
  • Language: TypeScript 5.9.2
  • Styling: StyleSheet with responsive design and modern UI patterns
  • AI Integration: FastAPI backend hosted on HuggingFace Spaces

Getting Started

Prerequisites

  • Node.js (v16 or higher)
  • npm or yarn
  • Expo CLI
  • iOS Simulator (for macOS) or Android Emulator

Installation

  1. Clone the repository

    git clone https://github.com/Jaysum57/CropGuard.git
    cd CropGuard
  2. Install dependencies

    npm install
  3. Start the development server

    npx expo start
  4. Run on device/emulator

    • For iOS: Press i to open in iOS Simulator
    • For Android: Press a to open in Android Emulator
    • For physical device: Scan QR code with Expo Go app

Project Structure

CropGuard/
β”œβ”€β”€ app/                    # Main application screens
β”‚   β”œβ”€β”€ _layout.tsx        # Root layout component
β”‚   β”œβ”€β”€ auth.tsx           # Authentication screen
β”‚   β”œβ”€β”€ (tabs)/            # Tab-based navigation
β”‚   β”‚   β”œβ”€β”€ _layout.tsx    # Tab layout
β”‚   β”‚   β”œβ”€β”€ index.tsx      # Home/dashboard screen
β”‚   β”‚   β”œβ”€β”€ scan.tsx       # Plant scanning interface
β”‚   β”‚   └── account.tsx    # User profile and settings
β”‚   └── details/           # Disease detail screens
β”‚       β”œβ”€β”€ disease.tsx    # General disease information
β”‚       └── rust.tsx       # Rust disease specifics
β”œβ”€β”€ components/            # Reusable components
β”‚   β”œβ”€β”€ AppStateProvider.tsx  # Global state management
β”‚   β”œβ”€β”€ AuthScreen.tsx     # Authentication component
β”‚   └── onboarding.tsx     # User onboarding flow
β”œβ”€β”€ assets/                # Static assets
β”‚   β”œβ”€β”€ fonts/            # Custom fonts
β”‚   └── images/           # App icons, logos, and images
β”œβ”€β”€ app-example/          # Example/template code
└── README.md

Key Features Overview

Authentication

  • Secure user authentication system
  • User registration and login
  • Profile management and data persistence

Home Screen

  • Welcome dashboard with app branding
  • Quick access to scanning functionality
  • User statistics and recent activity
  • Clean, modern UI with hero section

User Account

  • Personal statistics and scanning history
  • Account information management
  • Settings and preferences
  • Authentication state management

Disease Details

  • Comprehensive disease information
  • Treatment recommendations
  • Educational content about plant health

Development

Available Scripts

# Start development server
npm start
# or
npx expo start

# Start with specific platform
npx expo start --ios
npx expo start --android
npx expo start --web

# Platform-specific shortcuts
npm run ios
npm run android
npm run web

# Code quality
npm run lint

# Build for production
npx expo build

# Reset project (removes example code)
npm run reset-project

Contributing

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

License

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

Acknowledgments

  • Expo team for the excellent React Native framework
  • HuggingFace for AI model infrastructure
  • Open source community for various dependencies

About

🌱 CropGuard is an AI-powered plant disease detection mobile application built with React Native and Expo.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •