CoolFace
Apppublic

Holycious/Fruit-Classifier-Kel-3

sourceHugging Facemitupdated 10mo agoView on Hugging Face
0likes
App README

๐ŸŽ Fruit Classification Model

Classify fruits into 5 categories: Apple, Apricot, Nectarine, Peach, and Pear.

Model Architecture

  • โ€”Algorithm: Support Vector Machine (SVM) with RBF kernel
  • โ€”Features: 79-dimensional feature vector
  • โ€”64 RGB histogram features
  • โ€”7 Unser texture features
  • โ€”8 shape features
  • โ€”Preprocessing: Automatic fruit segmentation and cropping
  • โ€”Performance:
  • โ€”Test Accuracy: ~95%
  • โ€”Cross-validation: 5-fold CV

How to Use

  1. 1.Upload a clear image of a fruit
  2. 2.The model automatically preprocesses and extracts features
  3. 3.View prediction results with confidence scores

Technical Details

The model uses traditional computer vision and machine learning techniques:

  • โ€”Image segmentation using adaptive thresholding
  • โ€”Handcrafted feature extraction
  • โ€”SVM classification with hyperparameter tuning
  • โ€”PCA for dimensionality reduction

Dataset

Trained on a diverse dataset of pome and drupe fruits with multiple varieties.

Credits

Developed using Scikit-learn, OpenCV, and Gradio.