Skip to content

sarthak-cs/Digital-Krishi-Officer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

🌾 Digital Krishi Officer 🌾

Python Flask

A full-stack, AI-powered farming assistant designed for Indian farmers. Provides crop advice, disease detection, weather alerts, market prices and government schemes in multiple languages.


💡 Features

  • Ask farming questions via text or voice input.
  • Plant image analysis using AI to detect crop health and suggest treatments.
  • Local weather forecast with alerts for extreme conditions.
  • Crop market price lookup by state and commodity.
  • Government schemes information in multiple languages.
  • Multilingual support: English, Hindi, Malayalam, Tamil, Kannada.

🛠 Tech Stack

  • Backend: Python, Flask
  • Frontend: HTML, CSS, JavaScript
  • AI: Google Gemini API
  • Data: CSV for crop prices, JSON for government schemes
  • APIs: WeatherAPI for weather data

⚡ Setup Instructions

  1. Clone the repository
git clone https://github.com/sarthak-cs/digital-krishi-officer.git
cd digital-krishi-officer
  1. Create a virtual environment
python -m venv venv
source venv/bin/activate      # Windows: venv\Scripts\activate
  1. Install dependencies
pip install -r requirements.txt
  1. Add API keys Copy .env.example to .env and add your keys:
GEMINI_API_KEY=your_gemini_api_key_here
WEATHER_API_KEY=your_weather_api_key_here
  1. Run the Flask app
python app.py
  1. Open in browser Go to http://127.0.0.1:5000 to access the app.

🔗 Notes

  • Maximum plant image size: 5MB
  • Supported image types: PNG, JPG, JPEG, GIF, BMP, WebP
  • Voice recognition works in Chrome & Edge only

👨‍💻 Author

Sarthak Tyagi – CSE Student | Hackathon Participant

Instagram LinkedIn email

About

A full-stack, AI-powered farming assistant

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors