imBroker


NameimBroker JSON
Version 0.0.1 PyPI version JSON
download
home_pageNone
SummaryA Tensorflow Lite Image Classification Model Integration Library
upload_time2024-07-27 02:21:01
maintainerNone
docs_urlNone
authordakshoza (Daksh Oza)
requires_python>=3.7
licenseNone
keywords broker tensorflow lite image classification flexible real time
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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

```bash
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

```python
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

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

### Classifying a Directory of Images

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

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "imBroker",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "broker, tensorflow lite, image classification, flexible, real time",
    "author": "dakshoza (Daksh Oza)",
    "author_email": "<ozadaksh31@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/9c/7f/d67a966bc8178b7cdba12463ce641a61c2a97d36fbcf796cc7f9054f6031/imBroker-0.0.1.tar.gz",
    "platform": null,
    "description": "# TFLite Image Classification Broker\r\n\r\nThis 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.\r\n\r\n## Installation\r\n\r\n```bash\r\npip install imBroker\r\n```\r\n\r\n## Features\r\n\r\n- Single image classification\r\n- Batch classification for directories\r\n- Support for custom TFLite models\r\n- Handles any type of image shapes\r\n\r\n## Usage\r\n\r\n### Initializing the Broker\r\n\r\n```python\r\nfrom imBroker import tflBroker\r\n\r\n# Define your TFlite model's path\r\nmodel_path = \"path/to/your/model.tflite\"\r\n\r\n# Define your output labels\r\noutput_labels = {\r\n    0: 'Label 1',\r\n    1: 'Label 2',\r\n    ... \r\n}\r\n\r\n# Initialize the broker\r\nbroker = tflBroker(model_path, output_labels)\r\n```\r\n\r\n### Classifying a Single Image\r\n\r\n```python\r\nresult = broker.predict_single_image(\"path/to/image.jpg\")\r\nprint(result)\r\n```\r\n\r\n### Classifying a Directory of Images\r\n\r\n```python\r\nresults = broker.predict_image_directory(\"path/to/image/directory\")\r\nprint(results)\r\n```\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A Tensorflow Lite Image Classification Model Integration Library",
    "version": "0.0.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/yourusername/disPred/issues",
        "Source Code": "https://github.com/yourusername/disPred"
    },
    "split_keywords": [
        "broker",
        " tensorflow lite",
        " image classification",
        " flexible",
        " real time"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d2df9829c7769944fb068f8610afdbbe4b80cd651622de25523bf719e2bc57be",
                "md5": "ff6972467bd967abda07cdbf943295b7",
                "sha256": "e1b3a39afb384e493f5f5b112f64ec048e552f378c3911b8b88ee1744131ab19"
            },
            "downloads": -1,
            "filename": "imBroker-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ff6972467bd967abda07cdbf943295b7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 3927,
            "upload_time": "2024-07-27T02:21:00",
            "upload_time_iso_8601": "2024-07-27T02:21:00.172892Z",
            "url": "https://files.pythonhosted.org/packages/d2/df/9829c7769944fb068f8610afdbbe4b80cd651622de25523bf719e2bc57be/imBroker-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9c7fd67a966bc8178b7cdba12463ce641a61c2a97d36fbcf796cc7f9054f6031",
                "md5": "439115260ac2517fba5ef471ba97ff7f",
                "sha256": "27220348d0b3b4399c2de6212525c50a363e08014e8789062c68aa79aa736f65"
            },
            "downloads": -1,
            "filename": "imBroker-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "439115260ac2517fba5ef471ba97ff7f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 3716,
            "upload_time": "2024-07-27T02:21:01",
            "upload_time_iso_8601": "2024-07-27T02:21:01.724960Z",
            "url": "https://files.pythonhosted.org/packages/9c/7f/d67a966bc8178b7cdba12463ce641a61c2a97d36fbcf796cc7f9054f6031/imBroker-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-27 02:21:01",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "yourusername",
    "github_project": "disPred",
    "github_not_found": true,
    "lcname": "imbroker"
}
        
Elapsed time: 4.79696s