Apple Sorting System

Heramb Vengurlekar Thadomal Shahani Engineering College vengurlekarheramb19@gmail.com

Keywords: Machine Learning, Computer Vision, Vision Transformer (ViT), PyTorch, Raspberry Pi, C++, IoT

Overview

An automated hardware-software hybrid system for sorting apples based on surface diseases. The project uses a physical conveyor belt powered by a Raspberry Pi, which orchestrates sensors, servos, and cameras to classify and mechanically separate apples into four distinct categories: Normal, Blotch, Rot, and Scab.

🚀 Features

🏗 System Architecture

The system operates using an edge-to-cloud architecture:

  1. Detection: An IR sensor detects an apple on the conveyor belt.
  2. Capture: The Raspberry Pi stops the belt and captures two images.
  3. Inference: Images are sent via libcurl to the Colab API.
  4. Action: The API returns a classification. The Raspberry Pi actuates the corresponding servo and restarts the belt.

📦 Classification Categories

The Vision Transformer model is trained to recognize four classes:

🛠 Contributions