Preparing search index...

    Function recognizeIngredientQuantities

    • Recognizes ingredient quantities from an image.

      Runs ML Kit text recognition on the provided image and extracts each non-empty text line as a raw quantity string (e.g. "200", "1.5", "100 g"). Returns an empty array when the image yields no text blocks or on error.

      Parameters

      • imageUri: string

        URI of the image to process

      Returns Promise<string[]>

      Promise resolving to an array of quantity strings, one per non-empty line