Skip to main content

No project description provided

Project description

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:

from azumio_foodai import foodai

foodai.analyze(img)

# or you can add parameters to the call
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.2.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.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file azumio_foodai-1.0.2.tar.gz.

File metadata

  • Download URL: azumio_foodai-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 5c4cfcefabd545ddbbf3e28ee301b6356f7b3c7883e2f34f7103dbe484e9cee5
MD5 5f2088c57590d82e4b18e72eeb5140b1
BLAKE2b-256 8d78203dc0aefa89079babc9737292fa2e06e39b085a681f450d4821375e39f8

See more details on using hashes here.

File details

Details for the file azumio_foodai-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: azumio_foodai-1.0.2-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

Hashes for azumio_foodai-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ca24ee26ea683455b7ecae760fba42e4d5e9df00af016b7f766c4374f211cdd6
MD5 8c9b8601b8db416d8d9026fccc6aa7a6
BLAKE2b-256 18853fdbb4f15fc6c5ff0386429843a18ee16d7b487ec3d2338c720a9d2b1acc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page