Preparing search index...

    Function computeOcrFieldStatus

    • Derives a non-blocking feedback status from an OCR extraction result.

      ingredientQuantities scans are special-cased: an empty payload is empty, and a non-empty payload whose length differs from the ingredient rows already on the form is mismatch (the quantities cannot be paired one-to-one, including when no rows exist yet). Every other field is success when the payload carries any usable value and empty otherwise.

      Parameters

      Returns OcrFieldStatus

      The feedback status for the extraction.