This hook orchestrates the complete OCR process for recipe data extraction:
Manages OCR modal state for selecting which field to extract
Processes images using ML Kit text recognition
Populates recipe fields with extracted data
Handles validation queues for ingredients and tags with fuzzy matching
Manages duplicate detection and merging for ingredients
The hook integrates with RecipeFormContext to access and update form state.
It uses useRecipeTags and useRecipeIngredients hooks for duplicate-safe additions.
Hook for managing OCR workflow in recipe forms.
This hook orchestrates the complete OCR process for recipe data extraction:
The hook integrates with RecipeFormContext to access and update form state. It uses useRecipeTags and useRecipeIngredients hooks for duplicate-safe additions.