AGRIGUIDE is a comprehensive web application designed to empower farmers with AI-driven tools and resources for modern agriculture. The platform combines machine learning, real-time data, and user-friendly interfaces to provide farmers with intelligent solutions for crop management, disease detection, and agricultural decision-making.
- Features
- Tech Stack
- Project Structure
- Installation
- Usage
- API Endpoints
- Screenshots
- Contributing
- License
- Advanced Image Recognition: Upload plant images to detect diseases using trained machine learning models
- Multi-Crop Support: Supports disease detection for various crops including Apple, Corn, Grape, Tomato, Potato, and more
- Instant Diagnosis: Get immediate results with disease classification and confidence scores
- Treatment Recommendations: Receive actionable advice for identified plant diseases
- 24/7 Agricultural Assistant: Get instant answers to farming-related questions
- Multilingual Support: Communicate in your preferred language
- Expert Knowledge Base: Access agricultural best practices and solutions
- Real-time Weather Data: Stay updated with current weather conditions
- Forecast Predictions: Plan agricultural activities with weather forecasts
- Location-based Information: Get weather data specific to your farming location
- Expense Tracking: Monitor and manage farm-related expenses
- Dashboard Analytics: Visualize farm performance with interactive charts
- Crop Planning: Plan and track crop cycles efficiently
- Learning Resources: Access educational content on modern farming techniques
- Best Practices: Learn about sustainable farming methods
- Skill Development: Enhance farming knowledge with curated content
- Labor Registration: Register and manage farm workers
- Appointment Booking: Schedule appointments with agricultural experts
- Resource Allocation: Efficiently manage human resources on the farm
- Latest News: Stay updated with agricultural news and market trends
- Government Schemes: Discover and apply for agricultural schemes and subsidies
- Policy Updates: Get notified about new agricultural policies
- React 19.0.0 - Modern JavaScript library for building user interfaces
- Vite - Fast build tool and development server
- React Router DOM - Client-side routing
- Axios - HTTP client for API communications
- Tailwind CSS - Utility-first CSS framework
- Lucide React - Beautiful & consistent icons
- Recharts - Composable charting library
- React Webcam - Camera integration for image capture
- Django 5.1.6 - High-level Python web framework
- Django REST Framework - Powerful toolkit for building Web APIs
- TensorFlow/Keras - Machine learning model integration
- MongoDB - NoSQL database for user management
- OpenCV - Computer vision library for image processing
- PIL (Pillow) - Python Imaging Library
- Pre-trained Disease Detection Models - Custom trained models for plant disease classification
- Image Preprocessing - Advanced image processing for accurate predictions
- Model Optimization - Efficient model loading and inference
AGRIGUIDE Web Application/
โโโ frontend/ # React frontend application
โ โโโ public/ # Static assets
โ โโโ src/
โ โ โโโ assets/ # Images and static resources
โ โ โโโ components/ # Reusable React components
โ โ โ โโโ ui/ # UI components
โ โ โ โโโ Navbar.jsx # Navigation component
โ โ โ โโโ Footer.jsx # Footer component
โ โ โ โโโ ...
โ โ โโโ layout/ # Layout components
โ โ โโโ pages/ # Page components
โ โ โ โโโ Home.jsx # Landing page
โ โ โ โโโ Login.jsx # User authentication
โ โ โ โโโ PlantDiseasePrediction.jsx
โ โ โ โโโ Chatbot.jsx # AI chatbot interface
โ โ โ โโโ Weather.jsx # Weather dashboard
โ โ โ โโโ Dashboard.jsx # Analytics dashboard
โ โ โ โโโ ...
โ โ โโโ App.jsx # Main App component
โ โ โโโ main.jsx # Entry point
โ โโโ package.json # Dependencies and scripts
โ โโโ vite.config.js # Vite configuration
โ
โโโ backend/ # Django backend application
โ โโโ backend/ # Django project settings
โ โ โโโ settings.py # Django configuration
โ โ โโโ urls.py # URL routing
โ โ โโโ ...
โ โโโ agri_app/ # Main Django app
โ โ โโโ models/ # AI/ML model files
โ โ โ โโโ trained_plant_disease_model_apple.keras
โ โ โ โโโ trained_plant_disease_model_all.keras
โ โ โโโ migrations/ # Database migrations
โ โ โโโ views.py # API endpoints
โ โ โโโ models.py # Data models
โ โ โโโ urls.py # App URL routing
โ โ โโโ db.py # Database configuration
โ โโโ media/ # Uploaded media files
โ โโโ manage.py # Django management script
โ โโโ db.sqlite3 # SQLite database
โ
โโโ README.md # Project documentation
- Node.js (v16 or higher)
- Python (v3.8 or higher)
- MongoDB (for user management)
- Git
-
Clone the repository
git clone https://github.com/Destron7/AGRIGUIDE-AI-Based-WebApp-For-Farmers.git cd AGRIGUIDE-AI-Based-WebApp-For-Farmers -
Navigate to backend directory
cd backend -
Create virtual environment
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install Python dependencies
pip install django djangorestframework django-cors-headers tensorflow opencv-python pillow pymongo python-dotenv
-
Environment Configuration
# Create .env file in backend directory echo "SECRET_KEY=your_secret_key_here" > .env
-
Run database migrations
python manage.py migrate
-
Start the Django server
python manage.py runserver
-
Navigate to frontend directory (in a new terminal)
cd frontend -
Install Node.js dependencies
npm install
-
Start the development server
npm run dev
- Install MongoDB and ensure it's running
- Configure database connection in
backend/agri_app/db.py
-
Access the application
- Frontend:
http://localhost:5173 - Backend API:
http://localhost:8000
- Frontend:
-
User Registration/Login
- Enter name and phone number to register or login
- No password required for simplicity
-
Plant Disease Detection
- Navigate to Plant Disease Prediction page
- Upload an image of the affected plant
- Get instant AI-powered disease diagnosis
- Follow recommended treatment suggestions
-
Explore Features
- Use the chatbot for agricultural queries
- Check weather updates for your location
- Track farm expenses and view analytics
- Access educational resources
- Stay updated with agricultural news
POST /api/login/- User registration/login
POST /api/predict_disease/- Upload image for disease prediction
{
"prediction": "Disease Name",
"confidence": 95.5,
"treatment": "Recommended treatment options"
}Add screenshots of your application here to showcase the user interface and features
We welcome contributions to AGRIGUIDE! Here's how you can help:
- Fork the repository
- Create a feature branch
git checkout -b feature/amazing-feature
- Make your changes
- Commit your changes
git commit -m 'Add some amazing feature' - Push to the branch
git push origin feature/amazing-feature
- Open a Pull Request
- Follow PEP 8 for Python code
- Use ESLint configuration for JavaScript/React code
- Write meaningful commit messages
- Add comments for complex logic
- Test your changes thoroughly
- Model loading time may be slow on first request
- Large image uploads might timeout on slow connections
- MongoDB connection needs to be configured manually
- Crop Yield Prediction - Predict crop yields based on historical data
- Soil Analysis Integration - Add soil health monitoring capabilities
- IoT Device Integration - Connect with farm sensors and IoT devices
- Mobile Application - Develop native mobile apps
- Multi-language Support - Add support for regional languages
- Advanced Analytics - Implement more sophisticated farm analytics
- Marketplace Integration - Add crop selling and buying features
- Expert Consultation - Video calling with agricultural experts
This project is licensed under the MIT License - see the LICENSE file for details.
Destron7
- GitHub: @Destron7
- Thanks to the agricultural community for inspiring this project
- TensorFlow team for the excellent ML framework
- React and Django communities for the robust frameworks
- Open source contributors who made this project possible
If you have any questions or need help setting up the project, please:
- Check the Issues page
- Create a new issue if your problem isn't already listed
- Provide detailed information about your setup and the issue you're facing
Made with โค๏ธ for the farming community
Empowering farmers with AI-driven solutions for sustainable agriculture