Skip to content

Riwasthapa/Detection_nuts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NutriRipe AI: Nut Detection & Ripeness Classification

NutriRipe AI is an automated system designed to detect nuts in images and classify their ripeness levels. Using a combination of YOLOv8 for precise object detection and MobileNet for accurate classification, the system identifies whether nuts are Raw, Semi-Ripe, or Ripe, providing a harvest-readiness verdict.

🚀 Features

  • Object Detection: Uses YOLOv8 to locate nuts within complex images.
  • Background Removal: Employs GrabCut to isolate nuts for better classification.
  • Ripeness Classification: Classifies each detected nut into one of three categories (Raw, Semi-Ripe, Ripe).
  • Interactive Dashboard: A modern React-based frontend for uploading images and viewing real-time results.
  • Harvest Verdict: Automatically determines if a crop is ready for harvest based on the majority ripeness.

📥 How to Download

  1. Navigate to the repository: https://github.com/Riwasthapa/Detection_nuts
  2. Click the green Code button.
  3. Select Download ZIP.
  4. Extract the ZIP file to a folder on your computer.

🛠️ Setup and Installation

Follow these steps to get the system running locally.

1. Prerequisites

  • Python 3.10 or higher
  • Node.js (with npm)
  • A virtual environment (recommended)

2. Backend Setup (Flask)

  1. Open your terminal and navigate to the backend directory:
    cd nutripe-ai-backend
  2. (Optional) Create and activate a virtual environment:
    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  3. Install the required Python packages:
    pip install flask flask-cors opencv-python numpy ultralytics torch torchvision
  4. Run the Flask server:
    python app.py
    The backend will start at http://127.0.0.1:5000.

3. Frontend Setup (React + Vite)

  1. Open a new terminal window and navigate to the frontend directory:
    cd react-frontend
  2. Install the Node dependencies:
    npm install
  3. Start the development server:
    npm run dev
    The frontend will be available at the URL shown in your terminal (usually http://localhost:5173).

🖥️ Usage

  1. Open the frontend URL in your browser.
  2. Upload an image of nuts.
  3. Wait for the processing to complete.
  4. View the detected nuts, their ripeness breakdown, and the final harvest verdict.

📄 Repository Link

https://github.com/Riwasthapa/Detection_nuts

About

DeepRipen is a YOLOv8 + MobileNet based deep learning system for automatic arecanut bunch detection and ripeness classification in real-world agricultural environments.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors