pratikskarnik

pratikskarnik / Indian_Food_Recognition / 0.1.3

README.md

Overview

It is an algorithm which takes an image of the Indian food from the user and return the name of food

Applicable Scenarios and Problems

There are 250+ Indian food names are there which can be recognized by the Image classifier.

Usage

It can be used by local and international travelers. Traveling to new states also feel like traveling to a new country in India, as the culture and language changes with each state.

Input

ParameterDescription
inputString

The example input is an encoded string derived from the Image. For preprocessing please use below code:

import base64
from PIL import Image
from io import BytesIO
input_file="Veg/Biryani/Chicken_Biryani.jpg" # Image path on local machine
with open(input_file, "rb") as image_file:
    input = base64.b64encode(image_file.read())

Output

ParameterDescription
LabelString
ProbabilityFloat

Examples

import base64
from PIL import Image
from io import BytesIO
import Algorithmia

input_file="Veg/Biryani/Chicken_Biryani.jpg" # Image path on local machine
with open(input_file, "rb") as image_file:
    input = base64.b64encode(image_file.read())

client = Algorithmia.client('simaDGJJvQ0TWu+cqpuURy9kd/X1')
algo = client.algo('pratikskarnik/Indian_Food_Recognition/0.1.3')
image_alg = algo.pipe(input)
print( image_alg.result)