Deep Learning

Recognizing Doctors’ Handwriting in Prescriptions with Deep Learning

This project uses handwriting recognition to read medicine names from a doctor's prescription with a convolutional neural network, and has two parts: a handwriting recognition pipeline and a doctor's prescription app. The character recognition model is a multi-layer CNN built with TensorFlow and Keras and trained on the EMNIST dataset (47 classes, 28×28 grayscale images, 112,800 training and 18,800 test images), then deployed to Android with TensorFlow Lite.

The pipeline loads and resizes the image to 300×300 pixels with OpenCV, converts it to grayscale, enhances contrast and removes shadows (absdiff, normalization, morphological opening and CLAHE), applies thresholding to separate the text from the background, detects contours to get a bounding box for each character, crops and orders the characters, predicts each one with the model and joins them into words, the medicine names. The Flutter app stores user data in Cloud Firestore and images in Cloud Storage for Firebase, and offers sign-in and multi-step sign-up pages, a doctor's dashboard listing patients, a patient dashboard with the current prescription, and a prescription-scanning page that sends the photo through the recognition pipeline.

The Arabic article is a translation of an English project description. Read the original: doctors-prescription (GitHub).

Post links

Leave a comment

Your email address will not be published. Required fields are marked *