Recognizes ingredient names and units from an image.
Runs ML Kit text recognition on the provided image and extracts ingredient
names with their units using the existing header-parsing pipeline.
Returns an empty array when the image yields no text blocks.
Parameters
imageUri: string
URI of the image to process
Returns Promise<{name:string;unit:string}[]>
Promise resolving to an array of { name, unit } objects
Recognizes ingredient names and units from an image.
Runs ML Kit text recognition on the provided image and extracts ingredient names with their units using the existing header-parsing pipeline. Returns an empty array when the image yields no text blocks.