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 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.0.tar.gz
(3.5 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.0.tar.gz.
File metadata
- Download URL: azumio-foodai-1.0.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18c713cea71c6141d8bf47bd859c23c74074d708b8a76b552c7e731876989c95
|
|
| MD5 |
92fc5f45642982dde55ad96349dd2f9d
|
|
| BLAKE2b-256 |
7f9b1e6518a797420f7ea77f41dc55c09f6c378dfb8f9c91548897dea16c4e96
|
File details
Details for the file azumio_foodai-1.0.0-py3-none-any.whl.
File metadata
- Download URL: azumio_foodai-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.8 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 |
8bc202b545d6af1e5aa2a18f9a7b68311acd741547286ca1de1edefecc190959
|
|
| MD5 |
6afaf915fd84af139f7d25e6be230985
|
|
| BLAKE2b-256 |
716e399095aed7b4262863b9b41bfb6220b510002b8b309649e83e9fb36aba13
|