- Introduction
- Problem Statement
- Proposed Solution
- Project Objectives
- Technology Stack
- Project Architecture
- Implementation Details
- Installation Guide
- Usage Instructions
- Dataset
- API Endpoints
- Frontend Interface
- Testing and Validation
- Future Enhancements
- Contributors
- License
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.
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.
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.
- 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.
| 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 |
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
- 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.
- Python 3.8+
- pip
- Virtual environment
- Git
# 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.txtTo start the backend API:
cd api
uvicorn main:app --reloadTo launch the frontend UI:
cd client
npm run dev- Images of lady fingers, cucumbers, and tomatoes.
- Augmented dataset with rotation, flipping, brightness adjustments.
| Method | Endpoint | Description |
|---|---|---|
POST |
/predict |
Upload an image for quality assessment |
GET |
/status |
Check API status |
- Developed using React.js for advanced UI.
- Users can upload images and get instant results.
- Model evaluation: Using accuracy, precision, and recall.
- User feedback: Gathering responses from farmers and experts.
- Integration with IoT devices for real-time scanning.
- Support for more crop types and larger datasets.
- AI-powered recommendation system for better yield.
- Yagna Kusumanchi - Project Lead & AI Developer
- Arjun Kotha - Full-Stack Developer
- Mentor Name - Manjeet
This project is licensed under the MIT License.