No project description provided
Project description
Food AI
Instant Food Recognition
Installation
pip install azumio-foodai
Usage
- Load image Must be PIL image
from PIL import Image
img = Image.open("path_to_image.jpg")
- Recognize image
Create environment variable
export FOODAI_API_KEY=abc
Direct call:
import azumio_foodai
azumio_foodai.analyze(img)
# or you can add parameters to the call
azumio_foodai.analyze(img, top=3)
or intialize client with api key:
from azumio_foodai import FoodAI
client = FoodAI(api_key="abc")
client.analyze(img)
or with optional parameters:
client.analyze(img, top=5) # top 5 results
Development
pip install -e .
Running tests:
python -m unittest test_foodai.py
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
azumio_foodai-1.0.4.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file azumio_foodai-1.0.4.tar.gz.
File metadata
- Download URL: azumio_foodai-1.0.4.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
347be2a76246f77f9e85c342562e43f0894824be0bc5e71c2ea6e08c0971420d
|
|
| MD5 |
9931ca06131738d7260b56a19fed5557
|
|
| BLAKE2b-256 |
82125bbd12c117533b20936fc21c301d98ad43b4ba73d20a430150972d6a8f8b
|
File details
Details for the file azumio_foodai-1.0.4-py3-none-any.whl.
File metadata
- Download URL: azumio_foodai-1.0.4-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12d5340d28717e3832073f4cbc18a4d221e2d81d87c95f4152010088e7db8d92
|
|
| MD5 |
2db3afde93cdf7d9692865383da88058
|
|
| BLAKE2b-256 |
3bc05b8c9b2ec318e26db3241340474d11869e78ffccbd722e19368535252e66
|