Skip to main content

No project description provided

Project description

Food AI

Instant Food Recognition

Installation

pip install azumio-foodai

Usage

Import lib

from azumio_foodai import FoodAI
  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 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.1.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.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: azumio_foodai-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 360d770ccbd426978fde7113b40db5942bf6c8b7c14a34e5a2d475101af98581
MD5 c3a7e89862f9dbefb8c1c8de83aeee76
BLAKE2b-256 391ecf325e33d73aa0cad5800bb79817ea95ed9f85580f12933b8409a24c1451

See more details on using hashes here.

File details

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

File metadata

  • Download URL: azumio_foodai-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8f148227d84dbee3556c405d569f649f8a11927a13a0ce83ba38f41a0d7fc7a8
MD5 58694b5c8116b162fea20d7678ddf9c2
BLAKE2b-256 6ec59a2fa71a935a08836f051a5eba18483c3c1dfc1ddbc83efe904318aae263

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