A web application that leverages machine learning to provide personalized recommendations for optimal crop selection and fertilizer use based on soil and nutrient data. This tool is designed to support farmers and agricultural experts in maximizing yield and improving sustainability.
- Crop Recommendation: Suggests the most suitable crops for your farmland by analyzing soil nutrient composition.
- Fertilizer Recommendation: Recommends effective fertilizers tailored to your soil’s nutrient levels.
- User Dashboard: View prediction history and manage your recommendations.
Add more screenshots or a link to a live demo here if available.
- Python 3.x installed
- MySQL database (for user and prediction data)
- (Recommended) Virtual environment tool such as
venv
-
Clone the repository:
git clone https://github.com/BirendraKSharma/minor_project.git cd minor_project -
Create and activate a virtual environment:
python -m venv myenv # On Windows: myenv\Scripts\activate # On Unix or MacOS: source myenv/bin/activate
-
Install dependencies:
pip install -r requirements.txt
-
Configure your database:
- Set up your MySQL instance and update the database connection details in the project’s configuration file (if applicable).
-
Run the application:
python app.py
The application will be available at
http://127.0.0.1:5000/by default.
- Open your browser and go to
http://127.0.0.1:5000/. - Use the provided forms to input soil nutrient values.
- Receive recommendations for crops and fertilizers.
- Use the dashboard to browse your previous predictions.
app.py: Main Flask application.templates/: HTML templates for the web interface.requirements.txt: Python dependencies.myenv/: Virtual environment directory (not included in version control).
Major libraries used (see requirements.txt for full list):
- Flask
- Flask-Bcrypt
- numpy
- pandas
- mysqlclient
- Jinja2
Contributions are welcome! Please open an issue or submit a pull request.
Specify your license here, e.g., MIT. Add a LICENSE file if you haven’t yet.
For questions or feedback, open an issue on this repository or contact the maintainer: BirendraKSharma

