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.3.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.3-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: azumio_foodai-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 829237558a4bd45842523018d7bcbe6e4fec6ddd225e70549379f731884fddb6
MD5 f7db715e524cc977ef806e9abbebc460
BLAKE2b-256 1253ac1c553d401cfda8e111e771e371dbc6d65fd55b22361462b615802d8cf5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: azumio_foodai-1.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2241adb5a8673bb0cf0dc24e41bd879a67680fed7dc911e5e5ba8492641ce8c7
MD5 d35f4ab3c9474407c1d3f911aa18b3c3
BLAKE2b-256 76cce4f5426059d420b30cad350cce2a4d77295713070de801aa7790bcec7285

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