Atharv Pathak is a Python developer, full-stack web developer, and IT engineering student based in India.

MediShot

AI / COMPUTER VISION

Scroll to explore↓
MediShotAI / COMPUTER VISION
The work

MediShot — Medicine Vision & Understanding

An intelligent medical packaging interpretation pipeline that extracts active salts, dosage, and brand names from blurry or poorly lit photos while enforcing strict uncertainty guardrails.

ACTIVE BUILDFinal-Year Major Engineering Project•2026
AI/VISIONOCRFASTAPIHEALTH-TECH
01 // The Problem

Elderly users and patients frequently struggle to read small typography, complex chemical names, and dosage instructions on pharmaceutical blister packs, leading to accidental misuse.

02 // The Solution

A mobile OCR app backed by a Python FastAPI engine that extracts chemical entities and displays structured summaries alongside raw text, highlighting uncertainty markers when confidence is low.

03 // Engineering Deep Dive

Deciphering printed medicine strips and prescriptions is notoriously challenging for non-specialists, especially when packaging is crumpled, reflective, cropped, or poorly lit. MediShot tackles this critical accessibility challenge with an end-to-end OCR and entity-extraction pipeline designed specifically for pharmaceutical packaging.

Users capture or upload a medicine strip. The image is processed through contrast-enhancement and binarization filters before hitting an OCR engine (Tesseract and EasyOCR). The extracted text tokens are analyzed by a domain-specific entity matcher that separates brand trade names, active chemical salts, strength measurements, and manufacturer details.

Critically, MediShot implements an uncompromising safety-first rule: medical advice must never be hallucinated. If a dose is ambiguous or blurred, the system explicitly renders the field with a high-uncertainty flag rather than guessing.

04 // System Architecture & Visual Breakdown

Architecture in Action

Visual walk-through of the operational pipeline, core algorithmic stages, and execution telemetry. Click any diagram to inspect in full resolution.

Computer Vision Preprocessing & Blister Pack Glare Suppression
Click to enlarge view
FIGURE 01 // 03IMAGE ENHANCEMENT ENGINE

Computer Vision Preprocessing & Blister Pack Glare Suppression

Multi-stage OpenCV preprocessing pipeline designed specifically for crumpled metallic blister packs. Utilizes Contrast-Limited Adaptive Histogram Equalization (CLAHE), bilateral filtering, and adaptive Gaussian binarization to suppress specular light reflections before feeding text segments into OCR engines.

Pharmaceutical Entity Parsing & Active Salt Extraction
Click to enlarge view
FIGURE 02 // 03PHARMA ENTITY GRAPH

Pharmaceutical Entity Parsing & Active Salt Extraction

Entity extraction pipeline separating commercial brand trade names (Augmentin 625 Duo) from active pharmaceutical ingredients (Amoxicillin 500mg + Potassium Clavulanate 125mg). Cross-references extracted formulations against verified national drug compendiums and normalizes dosage units.

Uncertainty-Aware Guardrails & Pharmacist Audit View
Click to enlarge view
FIGURE 03 // 03SAFETY & COMPLIANCE GUARDRAIL

Uncertainty-Aware Guardrails & Pharmacist Audit View

Zero-hallucination safety interface displaying side-by-side verification between the raw camera crop and extracted text tokens. Characters falling below the 85% confidence threshold are explicitly flagged with warning badges rather than guessed, prompting pharmacist verification.

05 // Architecture Stack

System Components

Client / UI

React Native with Expo & TypeScript (cross-platform mobile client)

Backend & API

Python, FastAPI REST endpoints, Pandas for chemical formulary normalization

Data & Storage

PostgreSQL medicine dictionary with active salt indices

Protocols / Services

Tesseract OCR, EasyOCR, OpenCV image pre-processing pipelines

06 // Capabilities

Core Implemented Features

  • Low-light and skewed packaging image enhancement with OpenCV adaptive thresholding
  • Multi-pass OCR extraction targeting blister packs, foil strips, and bottle labels
  • Pharmaceutical entity parsing: separates brand trade names from active pharmaceutical ingredients (APIs)
  • Confidence-weighted attribute rendering: unreadable fields are flagged rather than guessed
  • Side-by-side verification: shows original camera crop alongside extracted text for instant user audit
  • Offline fallback cache for commonly recognized emergency medicines
07 // Technical Challenge & Retrospective

Overcoming Bottlenecks

Metallic blister packs cause severe specular glare, breaking conventional OCR. We implemented localized contrast-stretching filters and multi-angle token pooling to preserve legible character segments across reflections.

Verification & Scope Note

MediShot is an educational aid. It does not prescribe dosage or provide clinical diagnosis. Users are prompted to verify package labels directly with certified pharmacists.

Project Gallery

Visual Artifacts & Diagrams

MediShot preview
Enlarge
MediShot preview
Enlarge
MediShot preview
Enlarge
MediShot preview
Enlarge
Back to theall works.