Metadata-Version: 2.1
Name: teachable-machine
Version: 1.0
Summary: A Python package to simplify the deployment process of exported Teachable Machine models.
Home-page: https://github.com/MeqdadDev/teachable-machine
Author: Meqdad Dev
Author-email: meqdad.darweesh@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: numpy
Requires-Dist: Pillow
Requires-Dist: tensorflow

# Teachable Machine

A Python package to simplify the deployment process of exported [Teachable Machine](https://teachablemachine.withgoogle.com/) models into different environments like Windows, Linux and MAC.

Links:

[PyPI](https://pypi.org/project/teachable-machine/)

[Source Code](https://github.com/MeqdadDev/teachable-machine)

## Supported Tools in Teachable Machine

Image Classification using exported keras model from Teachable Machine platfrom.

Next tool in the package: **Pose Classification**

## Requirements

Python >= 3.8

## How to install package

```bash
pip install teachable-machine
```

## Dependencies

```numpy, Pillow, tensorflow```

## How to use teachable machine package

```py
from teachable_machine import TeachableMachine

my_model = TeachableMachine(model_path='keras_model.h5', model_type='h5')

img_path = 'images/my_image.jpg'

result = my_model.classify_image(img_path)

print('highest_class_id:', result['highest_class_id'])
print('all_predictions:', result['all_predictions'])
```

_highest_class_id_ is selected based on labels.txt file.

More features are coming soon...


