Skip to content

Parthx23/kisan

Repository files navigation

Krishi Vision AI

A smart farming assistant for Indian farmers with voice interaction, image analysis, and AI-powered agricultural advice.

Features

  • 🎤 Voice Interaction: Hindi voice commands and responses
  • 📸 Image Analysis: Plant health, pest, and disease detection
  • 🌾 Farm Co-Pilot: Personalized farming plans and schedules
  • 📊 Market Prices: Real-time crop price information
  • 📱 SMS Alerts: Important farming alerts via SMS
  • 🌤️ Weather Integration: Location-based weather data
  • 📝 Farm Memory: Track farming activities and advice history

Tech Stack

  • Frontend: React 18, Vite, Tailwind CSS
  • Backend: Firebase (Auth, Firestore)
  • AI: Google Gemini API for text and voice generation
  • APIs: OpenWeatherMap, Fast2SMS
  • Icons: Lucide React

Setup Instructions

1. Clone the repository

git clone <repository-url>
cd kisanvision

2. Install dependencies

npm install

3. Environment Configuration

Copy .env.example to .env and fill in your API keys:

cp .env.example .env

Required API keys:

  • Firebase configuration
  • Google Gemini API key
  • OpenWeatherMap API key
  • Fast2SMS API key

4. Run the development server

npm run dev

5. Build for production

npm run build

Project Structure

kisanvision/
├── src/
│   ├── main.jsx          # Main application component
│   └── index.css         # Global styles and Tailwind imports
├── public/               # Static assets
├── index.html           # HTML template
├── package.json         # Dependencies and scripts
├── vite.config.js       # Vite configuration
├── tailwind.config.js   # Tailwind CSS configuration
└── postcss.config.js    # PostCSS configuration

Key Components

Voice Interaction

  • Hindi speech recognition
  • Text-to-speech responses
  • Real-time audio visualization

Image Analysis

  • Plant health assessment
  • Pest and disease identification
  • Crop condition evaluation

Farm Co-Pilot

  • Personalized farming schedules
  • Risk assessment
  • Alert system with SMS integration

Market Integration

  • Real-time crop prices
  • Market trend analysis

API Integrations

  1. Google Gemini: AI text and voice generation
  2. Firebase: Authentication and data storage
  3. OpenWeatherMap: Weather data
  4. Fast2SMS: SMS notifications

Browser Compatibility

  • Chrome 80+
  • Firefox 75+
  • Safari 13+
  • Edge 80+

Security Features

  • Environment variable protection
  • Firebase security rules
  • Input sanitization
  • Error boundary handling

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run linting: npm run lint
  5. Submit a pull request

License

This project is licensed under the MIT License.

Support

For support and questions, please contact the development team.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors