Skip to content

Yagna123k/Fresh-Farm-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fresh Farm AI - AI-Powered Crop Quality Control System

Table of Contents

  1. Introduction
  2. Problem Statement
  3. Proposed Solution
  4. Project Objectives
  5. Technology Stack
  6. Project Architecture
  7. Implementation Details
  8. Installation Guide
  9. Usage Instructions
  10. Dataset
  11. API Endpoints
  12. Frontend Interface
  13. Testing and Validation
  14. Future Enhancements
  15. Contributors
  16. License

1. Introduction

Fresh Farm AI is an advanced AI-powered crop quality control system designed to assist farmers and agricultural businesses in efficiently assessing crop quality. By leveraging image processing and deep learning, the system automates the process of detecting defective produce, improving accuracy, and reducing time and labor costs.

2. Problem Statement

Traditional methods of crop quality control rely heavily on manual inspection, which is prone to human errors, inconsistencies, and time delays. With increasing demand for precision and efficiency in agriculture, an AI-based automated solution can significantly enhance productivity and quality assessment.

3. Proposed Solution

Fresh Farm AI aims to:

  • Utilize machine learning and image processing to classify crops as "Good" or "Defective."
  • Provide a real-time quality assessment system via a web interface.
  • Offer a REST API for integration with agricultural software.
  • Minimize manual errors and inconsistencies in the quality evaluation process.

4. Project Objectives

  • Develop a deep learning model capable of detecting defects in crops.
  • Build a user-friendly web interface for farmers to upload images.
  • Implement a RESTful API to facilitate automated quality control.
  • Ensure high accuracy, scalability, and efficiency of the system.

5. Technology Stack

Technology Purpose
Python Core programming language
TensorFlow / PyTorch AI model training
OpenCV Image processing
FastAPI Backend API development
React.js Frontend for user interaction
PostgreSQL / Firebase Database for storing results
Docker Deployment and scalability

6. Project Architecture

FreshFarmAI/
├── data/              # Dataset storage
├── models/            # AI models and training scripts
├── api/               # Backend API
├── frontend/          # UI files
├── notebooks/         # Jupyter notebooks for experiments
├── docs/              # Documentation
├── tests/             # Test cases
├── README.md
├── requirements.txt   # Dependencies
└── .gitignore

7. Implementation Details

  • Data Collection: Curated images of crops with and without defects.
  • Preprocessing: Image augmentation, resizing, and filtering.
  • Model Training: Fine-tuning a ResNet/EfficientNet model.
  • Deployment: API-based quality prediction with FastAPI.

8. Installation Guide

Prerequisites:

  • Python 3.8+
  • pip
  • Virtual environment
  • Git

Steps to Install

# Clone the repository
git clone https://github.com/your-username/FreshFarmAI.git
cd FreshFarmAI

# Set up virtual environment
python -m venv env
source env/bin/activate  # On Windows use `env\Scripts\activate`

# Install dependencies
pip install -r requirements.txt

9. Usage Instructions

To start the backend API:

cd api
uvicorn main:app --reload

To launch the frontend UI:

cd client
npm run dev

10. Dataset

  • Images of lady fingers, cucumbers, and tomatoes.
  • Augmented dataset with rotation, flipping, brightness adjustments.

11. API Endpoints

Method Endpoint Description
POST /predict Upload an image for quality assessment
GET /status Check API status

12. Frontend Interface

  • Developed using React.js for advanced UI.
  • Users can upload images and get instant results.

13. Testing and Validation

  • Model evaluation: Using accuracy, precision, and recall.
  • User feedback: Gathering responses from farmers and experts.

14. Future Enhancements

  • Integration with IoT devices for real-time scanning.
  • Support for more crop types and larger datasets.
  • AI-powered recommendation system for better yield.

15. Contributors

  • Yagna Kusumanchi - Project Lead & AI Developer
  • Arjun Kotha - Full-Stack Developer
  • Mentor Name - Manjeet

16. License

This project is licensed under the MIT License.

About

Fresh Farm AI - AI-Powered Crop Quality Control System

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors