Typed and image-based ingredient input
Enter ingredients directly, or extract ingredient text from an uploaded image using OCR.
02 / Applied AI & Research
Personalized recipe generation through language models and multimodal inputs.
An AI-powered recipe generation application that uses ingredient lists, image-based text extraction and user preferences to generate customized recipes. The project combines local language-model inference, OCR, dietary preference handling, multilingual generation and PDF export.
Typed ingredients with non-vegetarian, Indian and dairy-allergy preferences, and the generated recipe with its PDF download.
Conventional recipe search often requires users to manually identify suitable recipes based on available ingredients, dietary preferences, cuisine and preparation time.
This project explores a more flexible approach: a language model generates recipes from user-provided constraints, using typed ingredients or ingredient lists extracted from images.
The steps below describe what a user can do, at a high level. They are a functional workflow and are not presented as an independently verified internal architecture.
Typed ingredients and uploaded ingredient-list images are combined with user preferences. Images pass through Tesseract OCR first. Ingredient and preference processing feeds local LLM generation with Ollama and LLaMA 3.2. The result is a recipe output, with PDF export where supported. This is a high-level functional workflow, not a verified internal architecture.
Enter ingredients directly, or extract ingredient text from an uploaded image using OCR.
Adjust requests by diet, cuisine, serving size, cooking time and listed food allergies. The application is allergy-aware in that it accepts allergies as an input; it is not medically validated.
Generate recipes in different supported languages.
Export supported generated recipes as downloadable PDF documents.
These are genuine screenshots of the application. The interface’s own subtitle in these historical captures uses the phrase “Allergy-Safe”. That is the application’s wording, not a claim made by this portfolio: the project is described here as allergy-aware, for the reasons in the limitations below.
The Gradio interface before generation: ingredient text, an image upload for OCR, and diet, cuisine, allergy, language, servings and cooking-time inputs.
An uploaded grocery-list image used as ingredient input, with vegetarian and Italian preferences, and the generated recipe with its PDF download.
The exported PDF for the generated Spicy Chicken Biryani with Tomatoes (Dairy-Free) recipe.
Published patent application
Co-inventors and co-applicants: Dr. B. Selvapriya, B. Harini Shree, Lisha Choudhary.
Published application — not a granted patent.
The published application relates to this work. The publication describes the invention at a conceptual level; this case study describes only the implementation shown in the screenshots above.