No project description provided
Project description
Food AI
Instant Food Recognition
Installation
pip install azumio-foodai
Usage
Import lib
from azumio_foodai import FoodAI
- 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:
from azumio_foodai import FoodAI
foodai.analyze(img)
or intialize client with api key:
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.1.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.1.tar.gz.
File metadata
- Download URL: azumio_foodai-1.0.1.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 |
360d770ccbd426978fde7113b40db5942bf6c8b7c14a34e5a2d475101af98581
|
|
| MD5 |
c3a7e89862f9dbefb8c1c8de83aeee76
|
|
| BLAKE2b-256 |
391ecf325e33d73aa0cad5800bb79817ea95ed9f85580f12933b8409a24c1451
|
File details
Details for the file azumio_foodai-1.0.1-py3-none-any.whl.
File metadata
- Download URL: azumio_foodai-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.6 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 |
8f148227d84dbee3556c405d569f649f8a11927a13a0ce83ba38f41a0d7fc7a8
|
|
| MD5 |
58694b5c8116b162fea20d7678ddf9c2
|
|
| BLAKE2b-256 |
6ec59a2fa71a935a08836f051a5eba18483c3c1dfc1ddbc83efe904318aae263
|