Generate OCR-based predictions for a product.
Changed onGenerate OCR-based predictions for a product based on the OCR JSON obtained from Google Cloud Vision.
Request
- Base URLhttps://robotoff.openfoodfacts.org/api/v1
- URLhttps://robotoff.openfoodfacts.org/api/v1/predict/ocr_prediction
- Authnone declared
Query parameters
The URL of the OCR JSON to use for extraction
The server type (=project) to use, such as 'off' (Open Food Facts), 'obf' (Open Beauty Facts),...
a comma-separated list of prediction types to use for extraction. If not provided, we use the default: set of OCR prediction types (see DEFAULT_OCR_PREDICTION_TYPES variable in Robotoff codebase)
Response
the extracted predictions
Changes
- breaking
the
///response's property type changed fromstringto no type for status - info
removed the
obfenum value from the///response property for the response status - info
removed the
offenum value from the///response property for the response status - info
removed the
off_proenum value from the///response property for the response status - info
removed the
opfenum value from the///response property for the response status - info
removed the
opffenum value from the///response property for the response status
- breaking