Yo, this is Lecturify, a project I built to solve a problem every student has: taking messy unorganized screen captures of white boards during a lecture and trying to make sense of them later.
Lecturify uses OCR to read the messy text and an LLM to act like a strict professor, restructuring your notes into a clean, logical, connected study guide.
-
Handwriting to Text: Uses
PaddleOCRto scrape text from images of your notes. -
AI Restructuring: Uses Microsoft's
Phi-3(via HuggingFace) to fix grammar, group related topics, and add headers. -
PDF Generation: Instantly converts the cleaned-up Markdown into a downloadable PDF.
-
Web Interface: A simple, clean UI built with FastAPI and Jinja2 templates.
Under the hood:
-
Backend: Python, FastAPI
-
AI/ML:
PaddleOCR(for reading text),Transformers+Phi-3(for main stuff) andPyTorch -
Frontend: HTML/CSS (Jinja2 Templates)
-
Utilities:
xhtmlpdf2(PDF Generation),ngrokfor tunneling
You will need a GPU if you want to run it locally !! otherwise, Colab is your friend; just open the notebook in colab and run all the cells.
-
Clone the repo
git clone http://github.com/ZohaibHassan16/lecturify.git cd lecturify
-
Install Dependencies
It's a bit heavy so i recommend using a virtual environment
pip install -r requirements.txt
-
Run the app
The code is split into
main.py(server) andlogic.py(AI engine)python main.py
Or if you are using uvicorn directly
uvicorn main:app --reload
-
Open it
Go to
https://localhost:8000(or whatever localhost it spits out) in your browser.