FLAGSHIP AI/ML Computer Vision & AR Spatial Inspection

Kiwi Sorter: AI Fruit Quality & AR Inspection

Autonomous two-stage inspection platform: YOLOv8 real-time detection, custom Detectron2 Mask R-CNN transfer-learned models on Colab T4 GPU, GrabCut pixel-to-millimeter defect sizing (37 px/cm), and Claude Vision API quality classification with world-anchored AR overlay.

YOLOv8 Detectron2 / Mask R-CNN GrabCut (37 px/cm) Claude Vision API XReal One AR Flask + Postgres
🖼️ Visual System Architecture & Interface
Kiwi Sorter: AI Fruit Quality & AR Inspection
2.36 → 0.33
Transfer Learning Loss
37 px/cm
Optical Defect Sizing
80–140 ms
CUDA RTX Inference
98–99%
Detection Confidence

🎯 The Agricultural Bottleneck

Manual fruit sorting in New Zealand packhouses is labor-intensive, error-prone, and fatigue-limited. Standard off-the-shelf vision models fail completely: standard COCO-pretrained weights classified a cluster of kiwifruit as “teddy bear” at 88% confidence and cannot distinguish ripe skin from fungal rot.

🏛️ Two-Stage Detection & Sizing Architecture

  1. Stage 1 (Fast Filter): YOLOv8 real-time detector passes flawless Grade-A fruit immediately with near-zero latency.
  2. Stage 2 (Defect Segmentation): Custom Detectron2 Mask R-CNN isolates surface lesions, bruises, and fungal rot.
  3. Sub-Millimeter Optical Calibration: OpenCV GrabCut isolates the defect boundary calibrated at 37 pixels/cm, quantifying exact physical surface area ($mm^2$).
  4. Multimodal Verification: Claude Vision API verifies edge cases and writes inspection records directly into PostgreSQL 15.

👓 Hands-Free AR Inspection (XReal One Glasses)

  • Developed with Unity 2022.3 and XREAL C# SDK.
  • Renders 3D world-anchored bounding boxes and color-coded defect confidence overlays directly into the packhouse operator’s field of view.
  • Hands-free grading allows workers to handle and pack produce without checking external computer screens.

💻 Tech Stack & Repositories

  • Vision Pipeline: PyTorch, YOLOv8, Detectron2 (Colab T4 fine-tuned), OpenCV GrabCut.
  • Backend & Database: Flask REST API, PostgreSQL 15, Gunicorn, Docker.
  • Augmented Reality: Unity 2022.3, C#, XREAL NRSDK.
  • GitHub Repository: ai-fruit-quality-inspection-ar