Skip to main content

A Tensorflow Lite Image Classification Model Integration Library

Project description

TFLite Image Classification Broker

This library provides a simple interface for image classification using TensorFlow Lite models. It's designed to work with pre-trained models and can process both single images and directories of images.

Installation

pip install imBroker

Features

  • Single image classification
  • Batch classification for directories
  • Support for custom TFLite models
  • Handles any type of image shapes

Usage

Initializing the Broker

from imBroker import tflBroker

# Define your TFlite model's path
model_path = "path/to/your/model.tflite"

# Define your output labels
output_labels = {
    0: 'Label 1',
    1: 'Label 2',
    ... 
}

# Initialize the broker
broker = tflBroker(model_path, output_labels)

Classifying a Single Image

result = broker.predict_single_image("path/to/image.jpg")
print(result)

Classifying a Directory of Images

results = broker.predict_image_directory("path/to/image/directory")
print(results)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imBroker-0.0.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

imBroker-0.0.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file imBroker-0.0.1.tar.gz.

File metadata

  • Download URL: imBroker-0.0.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for imBroker-0.0.1.tar.gz
Algorithm Hash digest
SHA256 27220348d0b3b4399c2de6212525c50a363e08014e8789062c68aa79aa736f65
MD5 439115260ac2517fba5ef471ba97ff7f
BLAKE2b-256 9c7fd67a966bc8178b7cdba12463ce641a61c2a97d36fbcf796cc7f9054f6031

See more details on using hashes here.

File details

Details for the file imBroker-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: imBroker-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for imBroker-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e1b3a39afb384e493f5f5b112f64ec048e552f378c3911b8b88ee1744131ab19
MD5 ff6972467bd967abda07cdbf943295b7
BLAKE2b-256 d2df9829c7769944fb068f8610afdbbe4b80cd651622de25523bf719e2bc57be

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page