Flashgram
Swipe Learn Succeed
The problem Flashgram solves
Our project enables users to upload PDFs, and our system intelligently
generates questions based on the content using Gemini LLM. Users can then
answer these questions, making it an interactive learning
Challenges we ran into
π οΈ Bug: Supporting Different File Types in Flashgram
π Issue Faced
Initially, Flashgram struggled to extract text from different file formats. While PDFs were processed smoothly, scanned documents, images, and handwritten notes posed challenges because they required OCR (Optical Character Recognition).
π‘ Solution Implemented
To resolve this, we implemented a multi-format processing pipeline:
β 1. File Type Detection & Routing
Before processing, we determine the file type and use the appropriate method:
- Standard PDFs β
PyMuPDF,pdfplumber - Scanned PDFs & Images β OCR using
Tesseract OCR,EasyOCR - Handwritten Notes β
EasyOCRfor better recognition - Text Files (TXT, DOCX, Markdown) β Standard text parsing
π€ 2. OCR-Based Text Extraction for Images & Scanned PDFs
For non-text PDFs and images, we integrated Tesseract OCR with preprocessing (grayscale, noise reduction) to improve text accuracy.
For handwritten notes, we used EasyOCR, which provides better recognition of cursive and varied handwriting styles.
π 3. Converting Extracted Text into Flashcards
Once text is extracted, it is structured into Q&A flashcards, making it ready for learning.
π― Impact of the Fix
βοΈ Flashgram now supports multiple file types seamlessly.
βοΈ Users can upload scanned PDFs, images, and handwritten notes without issues.
βοΈ Improved accessibility & usability, making learning more efficient.
π This fix significantly enhanced Flashgramβs flexibility, making it more user-friendly and robust!
Tracks Applied (1)
