Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
selectedUnit
The selected unit for the food amount.
selectedQuantity
The quantity of the selected unit.
weightGrams
The weight of the food amount in grams.
servingUnits
An array of serving units available for the food.
servingSizes
An array of serving sizes available for the food.
weight
The weight of the food amount using a specified unit of mass.
The unit measuring the serving size of a food item
unit
The name of a unit (e.g., ounce, slice, container).
value
The mass of a unit in grams (1 container = 60g).
name
The name of the ingredient.
refCode
The unique identifier of the ingredient.
iconId
The identifier of the icon associated with the ingredient.
weight
The weight of the ingredient.
referenceNutrients
The reference nutrients of the ingredient.
metadata
The metadata associated with the ingredient.
amount
The amount of the ingredient.
The unit measuring the serving size of a food item
unitName
The name of a serving unit (e.g., ounce, slice, container).
value
The mass of a serving unit in grams (1 container = 60g).
refCode
unique identifier for the food item
RefCode
name
Name of the food item
string
details
Additional details or description of the food item
string
iconId
Icon identifier for the food item
PassioID | string
amount
Amount of the food item (e.g., quantity, volume)
PassioFoodAmount
ingredients
List of ingredients used in the food item
PassioIngredient[]
ingredientWeight
Weight of the food item, measured in units of mass
UnitMass
isOpenFood
Boolean indicating whether the data is sourced from openfood.org
boolean
id
string
weight
The weight of the nutrients.
vitaminA
The amount of vitamin A.
alcohol
The amount of alcohol.
calcium
The amount of calcium.
calories
The amount of calories.
carbs
The amount of carbohydrates.
cholesterol
The amount of cholesterol.
fat
The amount of fat.
fibers
The amount of dietary fiber.
iodine
The amount of iodine.
iron
The amount of iron.
magnesium
The amount of magnesium.
monounsaturatedFat
The amount of monounsaturated fat.
phosphorus
The amount of phosphorus.
polyunsaturatedFat
The amount of polyunsaturated fat.
potassium
The amount of potassium.
protein
The amount of protein.
satFat
The amount of saturated fat.
sodium
The amount of sodium.
sugarAlcohol
The amount of sugar alcohol.
sugars
The amount of sugars.
sugarsAdded
The amount of added sugars.
transFat
The amount of trans fat.
vitaminB12
The amount of vitamin B12.
vitaminB12Added
The amount of added vitamin B12.
vitaminB6
The amount of vitamin B6.
vitaminC
The amount of vitamin C.
vitaminD
The amount of vitamin D.
vitaminE
The amount of vitamin E.
vitaminEAdded
The amount of added vitamin E.
Interface representing the structure of a food search result
brandName
Property for the brand name of the food (optional).
foodName
Property for the name of the food.
iconID
Property for the icon ID of the food.
labelId
Property for the label ID of the food.
nutritionPreview
Property for the nutrition preview of the food (optional).
resultId
Property for the result ID of the food.
score
Property for the score of the food (optional).
scoredName
Property for the scored name of the food (optional).
type
Property for the type of the food (optional).
isShortName
Property for indicating whether to use short name for the info
Nutrition facts scanned from the nutrition label on a package food item
The serving amount of food item
Interface representing the nutrition preview of a food search result
Interface representing the structure of a Passio search result
quantity
The quantity of the serving size.
unitName
The name of the serving unit (e.g., ounce, slice, container).
results
Property for an array of FoodSearchResult
objects or null
.
alternatives
Property for an array of alternative strings or null
.
If at any point you need help from the Passio team, please reach out to us at support@passiolife.com
A food candidate detected from visual scanning
passioID
The ID of the detected item.
confidence
Confidence of the classification candidate, ranging from 0.0 to 1.0.
boundingBox
A box describing a detected object's location in the camera view.
amountEstimate
Scanned AmountEstimate (supported only in iOS) (optional).
foodName
The nutritional data for this item in the database (optional).
alternatives
Related items above this item in the food hierarchy (more generic) as an array of DetectedCandidate objects, or null (optional).
croppedImage
Cropped images related to the detected item as an array of ImagesInfo objects, or null (optional).
barcode
The value of the scanned barcode.
boundingBox
A box describing the location of the barcode in the camera view.
packagedFoodCode (typealias String) is the string representation of the PackagedFoodCode id
A collection of food candidates detected by the models.
detectedCandidates
Food candidate results from visual scanning. The array is sorted by confidence.
barcodeCandidates
Food candidate results from barcode scanning (optional).
packagedFoodCode
Food candidate results from packagedFoodCode scanning (optional).
When starting food detection with PassioSDK.startFoodDetection
you will receive a FoodDetectionEvent
. This is the structure of that data class:
If at any point you need help from the Passio team, please reach out to us at support@passiolife.com
Returning all information of Amount estimation and directions how to move the device for better estimation
Nutrition facts scanned from the nutrition label on a package food item
An object provided in the callback for food detection containing food candidates as well as nutrition facts, if found
estimationQuality
The quality of the estimate (eventually for feedback to the user or SDK-based app developer).
moveDevice
Hints on how to move the device for better estimation (optional).
viewingAngle
The angle in radians from the perpendicular surface (optional).
volumeEstimate
Scanned volume estimate in milliliters (optional).
weightEstimate
Scanned amount in grams (optional).
candidates
A collection of food candidates detected by the models (optional).