Predict
Extract nutritional information from an image
Predict nutritional information from a packaging image using the Nutri-Sight model.
The model takes an image and the OCR result (as a JSON file) obtained from Google Cloud Vision. For more information about the model, see the Nutri-Sight documentation.
get/predict/nutrition
Request
- Base URLhttps://robotoff.openfoodfacts.org/api/v1
- URLhttps://robotoff.openfoodfacts.org/api/v1/predict/nutrition
- Authnone declared
Query parameters
image_urlstring uri
Example:https://images.openfoodfacts.org/images/products/541/004/104/0807/3.jpg
The URL of the input image
ocr_urlstring uri
Example:https://images.openfoodfacts.org/images/products/541/004/104/0807/3.json
The URL of the OCR JSON to use. The OCR must have been extracted using Google Cloud Vision, and be in the JSON format.
Response
the extracted nutritional information
Changes
No recorded changes to this operation across all 4 revisions of this API.