Skip to content

samsaxas/AgriAid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AgriAid - Multilingual Crop Disease Diagnosis

Overview

AgriAid is an AI-powered web application that helps farmers diagnose crop diseases and get treatment recommendations in multiple languages. The application uses Google's Gemini AI to analyze text descriptions, images, and audio recordings of plant issues. Streamlit app: https://agriaid.streamlit.app/

Features

Multilingual Support: Interface available in multiple languages including English, Hindi, Spanish, French, Tamil, Telugu, and Kannada

Multiple Input Methods:

Text descriptions of crop symptoms

Image uploads of affected plants

Audio recordings describing the issues

AI-Powered Analysis: Uses Google's Gemini AI to diagnose plant diseases and provide treatment recommendations

Audio Output: Converts diagnosis results to speech for accessibility

Responsive Design: Works on both desktop and mobile devices

Requirements

Python 3.8+ Streamlit PIL (Pillow) Google Generative AI gTTS (Google Text-to-Speech) Deep Translator

Setup

  1. Clone the repository
  2. Install dependencies: pip install -r requirements.txt
  3. Set up your Gemini API key in Streamlit secrets:
    [secrets]
    GEMINI_API_KEY = "your-api-key-here"
    
  4. Run the application: streamlit run app.py

Usage

  1. Select your preferred language
  2. Choose an input method (Text, Image, or Audio)
  3. Provide information about your crop issue
  4. Click "Diagnose" to get AI-powered analysis
  5. View the diagnosis results and listen to the audio explanation if needed

Project Structure

  • app.py: Main application file
  • utils/: Helper modules
    • gemini_api.py: Functions for interacting with Gemini AI
    • translation.py: Translation utilities
    • translation_loader.py: Loads language translations
    • gemini_audio.py: Audio processing functions

Notes

  • Diagnosis accuracy depends on input quality
  • For critical cases, consult a professional agronomist
  • Supported crops include tomatoes, potatoes, wheat, rice, and common vegetables

____________________________________________________________________________

OUTPUT

image

image

image

image

____________________________________________________________________________

App

app3

app5

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages