Logo Lanfrica
  • Accueil
  • Atlas
  • Analyses
  • Documentation
  • Sign in

© 2026 Lanfrica. Tous droits réservés. Tous les droits d'auteur des ressources affichées sur le site Web Lanfrica appartiennent aux détenteurs de droits d'auteur d'origine, sauf indication contraire explicite.

cicerothoma/naija-food-classifier-server

Domaine:

agriculture

Type de record:

softwaremodel
Créateur:
cic
Hôte:
# Naija Food Classification Server A Flask-based REST API for classifying Nigerian food dishes using PyTorch image classification. ## Features - **Image Classification**: Identifies 18 different Nigerian food dishes - **Multiple Input Formats**: Supports both file upload and base64 encoded images - **Top-3 Predictions**: Returns the top 3 most likely food classes with confidence scores - **CORS Enabled**: Ready for frontend integration - **Health Check**: Monitor server status and model loading ## Supported Food Classes The model can identify the following Nigerian dishes: - Jollof Rice - Egusi Soup - Moi Moi - Akara - Suya - Efo Riro - Okra Soup - Ofada Rice - Pounded Yam - Banga Soup - Pepper Soup - Nkwobi - Amala - Ewedu Soup - Ogbono Soup - Yam Porridge - Puff Puff - Chin Chin ## Installation 1. **Install Dependencies**: ```bash pip install -r requirements.txt ``` 2. **Ensure Model File**: Make sure your trained PyTorch model file `best.pt` is in the project root directory. 3. **Run the Server**: ```bash python app.py ``` The server will start on `localhost` ## API Endpoints ### 1. Health Check **GET** `/` Returns server status and model information. ```bash curl localhost ``` **Response:** ```json { "status": "healthy", "message": "Naija Food Classification API is running!", "model_loaded": true, "classes_loaded": true, "total_classes": 18 } ``` ### 2. Get Food Classes **GET** `/classes` Returns the list of all supported food classes. ```bash curl localhost ``` **Response:** ```json { "classes": ["Jollof Rice", "Egusi Soup", "Moi Moi", ...], "total_classes": 18 } ``` ### 3. Predict from Image File **POST** `/predict` Upload an image file for classification. ```bash curl -X POST -F "image=@path/to/your/image.jpg" localhost ``` **Response:** ```json { "success": true, "predictions": [ { "class": "Jollof Rice", "confidence": 0.89, "percentage": "89.00%" }, { "class": "Ofada Ric …

Visit

github.com

Tasks

computer visionimage classification

Languages

Gwamhi-WuriKaba Naa, SaraMalaMboiMoiToposa

Similaires

DivineBedinge/-african-food-classifierhugginglearners/Ethiopian-Food-Classifiernaodd9/ethiopian-food-classifiermansourismatic/tunisian-food-classifierMoyosoreCoder/naija-food-recommendergeorgegyan/ghana-food-cnn-classifier

DivineBedinge/-african-food-classifier

classification des types de nourritures africaines # 🍽️ African Food Classifier — M2 IABD Reconnai

hugginglearners/Ethiopian-Food-Classifier

naodd9/ethiopian-food-classifier

# 🌮 Ethiopian Food Classifier An AI-powered web application that can identify 11 different Ethiopia

mansourismatic/tunisian-food-classifier

MoyosoreCoder/naija-food-recommender

This project is a food recommendation API system that suggest restaurants and their address based on

georgegyan/ghana-food-cnn-classifier

# Ghanaian Food Image Classification using EfficientNet-B0 ## Project Overview This project uses D