Skip to content

A Flask-based API that predicts the best crop based on inputs like Nitrogen, Phosphorus, Potassium, Temperature, Humidity, pH, and Rainfall. Powered by a trained ML model, it provides intelligent crop recommendations for precision farming. Deployed on Render for seamless integration and real-world usage.

Notifications You must be signed in to change notification settings

Harsh772005/API-Smart-Agriculture-Crop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smart Agriculture Crop Recommendation System

A Flask-based API and Machine Learning model to recommend the best crop for a given area or land based on environmental and soil parameters.


Table of Contents


About the Project

The Smart Agriculture Crop Recommendation System predicts the best crop for an area based on the following input parameters:

  • Nitrogen (float): Level of nitrogen in the soil.
  • Phosphorus (float): Level of phosphorus in the soil.
  • Potassium (float): Level of potassium in the soil.
  • Temperature (float): Temperature of the area.
  • Humidity (float): Humidity percentage.
  • pH (float): Soil pH value.
  • Rainfall (float): Rainfall in mm.

This project:

  1. Trains a Machine Learning model using environmental and soil data.
  2. Provides a Flask API for predictions.
  3. Deploys the Flask API on Render for live usage.

Features

  • Model Training: Trained a Machine Learning algorithm to predict the most suitable crop for specific soil and environmental conditions.
  • Flask API: Developed an API to accept input parameters and return crop recommendations.
  • Deployment: The API is deployed on Render, making it accessible for practical usage.

Tech Stack

  • Backend: Flask, Python
  • Machine Learning: Scikit-learn
  • Deployment: Render

Installation

  1. Clone the repository:
    git clone https://github.com/Harsh772005/smart-agriculture-crop-recommendation.git
  2. Navigate to the project directory:
    cd smart-agriculture-crop-recommendation
  3. Install required dependencies:
    pip install -r requirements.txt

Usage

  1. Start the Flask API:
    python app.py

Contact

  • If you have any questions or suggestions, feel free to contact me:

Email: [email protected] GitHub: Harsh772005

About

A Flask-based API that predicts the best crop based on inputs like Nitrogen, Phosphorus, Potassium, Temperature, Humidity, pH, and Rainfall. Powered by a trained ML model, it provides intelligent crop recommendations for precision farming. Deployed on Render for seamless integration and real-world usage.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages