CropVision is an AI-powered application for crop disease detection and management.
- Image-based Disease Detection: Upload images of your crops to identify diseases
- Detailed Treatment Recommendations: Get specific treatment options for detected diseases
- Multilingual Support: Use the application in multiple languages
- AI-Powered Groq Chatbot: Get intelligent answers to your crop disease questions through an advanced LLM-based chatbot
- History Tracking: View your past disease detections and recommendations
The chatbot has been upgraded with Groq's powerful Large Language Model capabilities:
- Intelligent responses powered by Groq's state-of-the-art LLMs (llama3-70b and llama3-8b)
- Context-aware conversations about agricultural topics
- Detailed information about crop diseases, symptoms, treatments, and prevention
- Automatic fallback to more reliable models when needed
- Multilingual capabilities with automatic translation
- Python 3.8 or higher
- Node.js 14 or higher
- Clarifai API key
- Supabase account and API key
- Groq API key (required for AI chatbot)
-
Navigate to the backend directory:
cd CropVision/backend -
Create a virtual environment:
python -m venv venv -
Activate the virtual environment:
- Windows:
venv\Scripts\activate - Mac/Linux:
source venv/bin/activate
- Windows:
-
Install dependencies:
pip install -r requirements.txt -
Create a
.envfile based on.env.exampleand add your API keys:CLARIFAI_PAT=your_clarifai_key SUPABASE_URL=your_supabase_url SUPABASE_KEY=your_supabase_anon_key GROQ_API_KEY=your_groq_api_key -
Run the application:
python app.py
-
Navigate to the frontend directory:
cd CropVision/frontend -
Install dependencies:
npm install -
Create a
.env.localfile with backend URL:NEXT_PUBLIC_BACKEND_URL=http://localhost:5000 -
Start the development server:
npm run dev -
Open your browser and visit
http://localhost:3002
- Click the chat bubble icon in the bottom right corner
- Type your question about crop diseases or treatments
- The chatbot will provide a detailed, context-aware response powered by Groq LLM
- For non-English users, select your preferred language from the dropdown
- Each response will indicate which model was used (e.g., "Powered by Groq LLM (llama3-70b-8192)")
- Built with Flask, React, and Next.js
- Disease classification powered by Clarifai
- Data storage with Supabase
- Chatbot powered by Groq LLM