CoolFace
Apppublic

med333gg/fruit-detection-api

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

๐Ÿ“ Fruit Detection API

A Hugging Face Space that runs YOLOv8 fruit detection on GPU for fast video processing.

Features

  • โ€”GPU Acceleration: Runs YOLOv8 on NVIDIA T4 GPU (10-50x faster than CPU)
  • โ€”Video Processing: Upload videos and get detection results
  • โ€”Real-time Results: See processed video with bounding boxes
  • โ€”API Access: Can be called from external applications

How to Use

  1. 1.Web Interface: Upload a video file and click "Process Video"
  2. 2.API Access: Call the space programmatically from your FastAPI backend

API Integration

Your FastAPI backend can call this space via HTTP requests to get GPU-accelerated detection results.

Model

  • โ€”Model: YOLOv8n (nano) - fastest public YOLO model
  • โ€”Classes: Detects COCO classes (currently using 'apple' class 53 as strawberry)
  • โ€”GPU: NVIDIA T4 with 16GB VRAM

Performance

  • โ€”Speed: 10-50x faster than CPU processing
  • โ€”Free Tier: 16 hours/month of GPU usage
  • โ€”Limitations: Video size and processing time limits apply