When using our recognition endpoints the most probable classes are returned concerning dish, drinks, sauces or ingredients (depending on the type).
Ā
With this endpoint, the user has the option to confirm which one of the returned food classes is the correct one.
Ā
By default, the source is set to 'logmeal' and an ID corresponding to an existent dish is expected. The 'source' can also take the value 'other' for specifying a free-text feedback for any dish that is not included in LogMeal's API. Do note that if you confirm a dish with a free-text feedback (source 'other') it won't be taken into consideration when doing any calculation that is based on the dish (e.g. generating ingredients or nutritional information).
Ā
If a food segmentation endpoint has been used then you have to provide a food item identifier for each of the confirmed dishes. This implies adding the extra parameter 'food_item_position'. This parameter consists of a list of elements, one per each confirmed dish, and it must include an integer identifying the segmented region it corresponds to (see 'food_item_position' in returned json for /segmentation endpoints). If you desire to confirm a dish that does not belong to any of the detected regions then a string has to be provided that will act as an unique identifier for that extra confirmed dish.