Skip to content
Flashgram

Flashgram

Swipe Learn Succeed

Created on 9th February 2025

β€’

Flashgram

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 β†’ EasyOCR for 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)

LearnSphere: Inclusive Education for All

Key Features: πŸ“„ PDF Upload & Processing – Extracts content from uploaded PDFs. πŸ€– AI-Generated Questions – Uses Gemini ...Read More

Discussion

Builders also viewed

See more projects on Devfolio