referefref / AIOCRRecipeConvertor

Simple web app to build a HTML complete with schema.org recipe markup from a photo of a recipe, using OpenAI compatible API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AI OCR Recipe Convertor

Simple web app to build a HTML complete with schema.org recipe markup from a photo of a recipe, using OpenAI compatible API

  • I needed a way to move hand written and printed recipes to Paprika, this simple app facilitates that using pyTesseract and OpenAI GPT-4-Turbo
  • As an added bonus, it fills in (guesses) some missing information like prep time, cooking time, servings, keywords, OCR failures, author details etc.

Install and execute

git clone https://github.com/referefref/AIOCRRecipeConvertor.git
cd AIOCRRecipeConvertor
apt install tesseract
pip install -r requirements.txt
echo 'OPENAI_API_KEY = "YOURKEYHERE"' >  .env
python3 aiocrrecipecon.py
# Server runs on port 5000

Todo

  • Show all recipes as list on the index page
  • Function to deal with multi-page recipes
  • Bulk upload
  • API
  • Integrate directly with Paprika account?

Award for the most basic UI goes to

image

About

Simple web app to build a HTML complete with schema.org recipe markup from a photo of a recipe, using OpenAI compatible API

License:Apache License 2.0


Languages

Language:Python 80.2%Language:HTML 19.8%