Skip to content

A real-time text extraction tool using Raspberry Pi and MATLAB. Captures handwritten and printed documents using the Pi camera and processes them through MATLAB’s OCR functions. Includes preprocessing, bounding box display, and a UI for manual correction of detected text

Notifications You must be signed in to change notification settings

Shreya-Sanjay08/ocr-raspberrypi-matlab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

🔍 OCR Text Extractor – Raspberry Pi + MATLAB

An OCR system that captures and extracts handwritten or printed text using MATLAB's OCR capabilities and a Raspberry Pi camera module.

🎯 Features

  • Capture image using Raspberry Pi camera
  • Transfer image to MATLAB via SSH/SCP
  • Apply image preprocessing (grayscale, binarization, filtering)
  • Perform text extraction using ocr() function
  • UI interface for manual text correction
  • Display bounding boxes for recognized words

🛠 Tech Stack

  • Hardware: Raspberry Pi 3B+, Pi Camera V2
  • Software: MATLAB, Image Processing Toolbox
  • Languages: MATLAB Script, Bash

📦 Project Structure

  • capture_image.sh – Pi-side script
  • ocr_main.m – MATLAB main script
  • image_processing.m – Preprocessing
  • ui_text_edit.m – Correction GUI

📸 Screenshots

** Dialogue box that helps users edit the message** image

** Image of bounding boxes around the identified words** image

📈 Results

  • Tested on handwritten + printed text
  • Accurate bounding boxes and OCR output

About

A real-time text extraction tool using Raspberry Pi and MATLAB. Captures handwritten and printed documents using the Pi camera and processes them through MATLAB’s OCR functions. Includes preprocessing, bounding box display, and a UI for manual correction of detected text

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages