Skip to content

About

Hugging Face Space for prescription OCR and drug name matching in MedScript.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

MedScript Prescription OCR

Overview

MedScript Prescription OCR is an AI-powered application that extracts handwritten medicine names from prescription images and matches them against a cleaned drug dataset.

This project uses OCR and fuzzy matching to identify likely drug names from prescription images line by line.

Features

  • Upload prescription images
  • Line-by-line OCR extraction
  • OCR text cleaning
  • Drug-name matching against a cleaned dataset
  • Top matching results with confidence scores

Tech Stack

  • Python
  • Gradio
  • Hugging Face Transformers
  • RapidFuzz
  • OpenCV
  • Pandas

Dataset

This project uses a cleaned drug dataset hosted on Hugging Face.

Dataset repo: hashan-7/medscript-drug-dataset

Dataset file: data/master_drug_dataset.csv

Workflow

  1. Upload a prescription image
  2. Segment the image into text lines
  3. Run OCR on each line
  4. Clean extracted text
  5. Match likely drug names
  6. Display top results

Local Run

Install dependencies:

pip install -r requirements.txt

About

Hugging Face Space for prescription OCR and drug name matching in MedScript.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages