Skip to main content

Food AI

Instant Food Recognition

Installation

pip install azumio-foodai

Usage

  1. Load image Must be PIL image
from PIL import Image
img = Image.open("path_to_image.jpg")
  1. 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

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

azumio_foodai-1.0.4-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

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

Hashes for azumio_foodai-1.0.4.tar.gz
Algorithm Hash digest
SHA256 347be2a76246f77f9e85c342562e43f0894824be0bc5e71c2ea6e08c0971420d
MD5 9931ca06131738d7260b56a19fed5557
BLAKE2b-256 82125bbd12c117533b20936fc21c301d98ad43b4ba73d20a430150972d6a8f8b

See more details on using hashes here.

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

Hashes for azumio_foodai-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 12d5340d28717e3832073f4cbc18a4d221e2d81d87c95f4152010088e7db8d92
MD5 2db3afde93cdf7d9692865383da88058
BLAKE2b-256 3bc05b8c9b2ec318e26db3241340474d11869e78ffccbd722e19368535252e66

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page