Git Product home page Git Product logo

aiocrrecipeconvertor's Introduction

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

aiocrrecipeconvertor's People

Contributors

referefref avatar

Stargazers

Nick Lozon avatar Mike Peart avatar  avatar  avatar lllllllillllllillll avatar

Watchers

 avatar

Forkers

frankcav

aiocrrecipeconvertor's Issues

Feature request: support the schema.org recipe standard’s JSON+LD meta data

I am impressed by the picture to text to webpage current solution already!
I have tried the convertor today with the goal to import the generated file in Nextcloud cookbook.
The html output doesn't satisfy NC Cookbook however as the import end in a "No parser found for the given import" error.
My understanding is that the page needs to support the schema.org recipe standard’s JSON+LD meta data.
Not sure if that is an easy addition or not :/ I will happily participate to that implementation if I can get some directions.
Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.