All projects

06Computer vision

Image Classifier

Classification API with a pretrained ResNet50. Streamlit lets users upload images and Redis coordinates the prediction processing.

Project interface · Inference example with a toucan
Streamlit interface of the classifier with an image of a toucan and the prediction toucan.

Technical approach

  • The interface, the API and the inference worker run as separate services with Docker Compose.
  • The worker takes jobs from a Redis queue and stores the predicted class and its score under the job ID.
  • Images are resized to 224 × 224 pixels and preprocessed for ResNet50. The top-scoring ImageNet class is returned.
  • The scope is integrating a pretrained model with an API and an upload interface; the available categories are those of ImageNet.

Interested in something similar?

Tell me what you need to solve and let’s talk it through.

Contact me

Project screenshot

Real application interface · Sample data