Metadata-Version: 2.1
Name: azumio-foodai
Version: 1.0.0
Home-page: https://github.com/azumio/foodai-clients/foodai
Author: Igor Rendulic
Author-email: Igor Rendulic <igor@azumio.com>
Project-URL: Homepage, https://github.com/azumio/foodai-clients
Project-URL: Bug Tracker, https://github.com/azumio/foodai-clients/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Requires-Dist: pillow
Requires-Dist: dacite

# Food AI 

Instant Food Recognition

## Installation

```
pip install azumio-foodai
```

## Usage

1. **Load image**
Must be PIL image

```python
from PIL import Image
img = Image.open("path_to_image.jpg")
```

2. **Recognize image**

Create environment variable
`export FOODAI_API_KEY=abc`

Direct call: 
```
import foodai
foodai.analyze(img)
```

or intialize client with api key: 
```python
client = FoodAI(api_key="abc")
client.analyze(img)
```

or with optional parameters:
```python
client.analyze(img, top=5) # top 5 results
```

## Development

```
pip install -e .
```

Running tests:
```
python -m unittest test_foodai.py
```
