FarmLink AI is an AI-powered farming assistant designed to provide smart solutions to farmers. The platform offers crop recommendations, disease prediction, and fertilizer suggestions based on various environmental and soil parameters. It leverages machine learning models and AI-powered chatbots to assist users in making informed decisions about farming practices.
- Crop Recommendation: Suggests the best crops based on soil parameters, weather conditions, and other environmental factors.
- Plant Disease Prediction: Detects and classifies plant diseases from uploaded plant images using machine learning models.
- Fertilizer Recommendations: Suggests the most suitable fertilizers for crops based on soil nutrient levels.
- Chatbot: An interactive chatbot powered by AI that answers farming-related queries in both English and Hindi, and includes voice-based inputs.
To run the project locally, follow these steps:
- Python 3.x
- pip (Python package installer)
-
Clone the repository:
git clone https://github.com/yourusername/farmlink-ai.git cd farmlink-ai -
Create a virtual environment (optional but recommended):
python -m venv venv
-
Activate the virtual environment:
-
On Windows:
venv\Scripts\activate
-
On macOS/Linux:
source venv/bin/activate
-
-
Install dependencies from
requirements.txt:pip install -r requirements.txt
-
Set up your environment variables (such as API keys for any external services if used).
-
Run the Flask application:
python app.py
-
Open a browser and go to
http://localhost:5000to access the app.
Once the server is running, you can access different sections of the application:
- Home: Provides an overview and quick access to all features.
- Crop Recommendation: Enter soil parameters (e.g., Nitrogen, Phosphorus, Potassium levels) to get crop recommendations.
- Plant Disease Prediction: Upload an image of a plant to predict potential diseases.
- Chatbot: Interact with the AI-powered chatbot to get answers to farming-related queries (supports both text and voice inputs).
- Crop Recommendation: Uses AI models to recommend the best crops based on input soil and environmental parameters.
- Plant Disease Prediction: Detects and classifies diseases from plant images using machine learning techniques.
- Fertilizer Suggestions: Recommends suitable fertilizers for crops based on soil nutrient levels.
- AI-powered Chatbot: Interact with the chatbot to get instant farming advice and recommendations in both English and Hindi.
- Voice Support: The chatbot includes voice recognition capabilities for a more interactive experience.
- Backend: Flask
- Machine Learning: scikit-learn, TensorFlow
- Web Scraping (if needed): BeautifulSoup, requests
- Image Processing: OpenCV, Pillow
- Voice Recognition: SpeechRecognition, pyttsx3, pyaudio
- Database: SQLite (or you can use any relational database)
Contributions are welcome! If you want to contribute, please follow these steps:
- Fork the repository
- Create a new branch for your changes
- Make the necessary changes
- Submit a pull request
Feel free to reach out to us if you have any questions or suggestions!