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
Metadata
Release files for azumio-foodai 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| azumio_foodai-1.0.4.tar.gz | 3.9 kB | Without provenance | Details for azumio_foodai-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| azumio_foodai-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for azumio_foodai-1.0.4-py3-none-any.whl |
Total release size: 7.5 kB
Release files / azumio_foodai-1.0.4.tar.gz
| Download URL | azumio_foodai-1.0.4.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
347be2a76246f77f9e85c342562e43f0894824be0bc5e71c2ea6e08c0971420d
|
|
BLAKE2b-256 checksum How to use checksums |
82125bbd12c117533b20936fc21c301d98ad43b4ba73d20a430150972d6a8f8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.8
|
Release files / azumio_foodai-1.0.4-py3-none-any.whl
| Download URL | azumio_foodai-1.0.4-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
12d5340d28717e3832073f4cbc18a4d221e2d81d87c95f4152010088e7db8d92
|
|
BLAKE2b-256 checksum How to use checksums |
3bc05b8c9b2ec318e26db3241340474d11869e78ffccbd722e19368535252e66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.8
|
Security for azumio-foodai 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.