Metadata-Version: 2.1
Name: zeroshot
Version: 0.1.4
Summary: Image classifier with zero-shot learning.
Project-URL: Homepage, https://github.com/moonshinelabs/zeroshot-python
Author-email: Zeroshot Maintainers <hello@usezeroshot.com>
Keywords: classifier,cv,zeroshot
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Requires-Dist: numpy
Requires-Dist: onnxruntime
Requires-Dist: requests
Description-Content-Type: text/markdown

# Zeroshot (Python)

Image classification for the masses

## Installation

Install via pip: `pip install zeroshot`

## Usage

First, go to usezeroshot.com and create a classifier. See [here](<>) for more instructions.

Then, in Python (`image` should be an RGB numpy array with channels last):

```python
import zeroshot

# Create the classifier and preprocessing function.
classifier = zeroshot.Classifier("your model string or path")
preprocess_fn = zeroshot.create_preprocess_fn()

# Run the model!
prediction = classifier.predict(preprocess_fn(image))
print(f"The image is class {prediction}")
```

## Read the docs

See the [docs](docs/getting_started.md) folder for some details.
