Machine Learning Based Automated Typing System using Webcam & Raspberry PI 4 Processing
A Slide and card blood typing is still read by eye in most blood camps and rural health centres, making the result dependent on lighting, operator experience and fatigue. Earlier camera-based readers relied on a laptop for processing, which increased cost, size and power consumption. This paper presents a stand-alone automated blood typing system in which a USB webcam, fixed on a 3D-printed stand with a GPIO-switched LED ring, captures the blood typing card, and a Raspberry Pi 5 with 2 GB RAM performs all processing. The pipeline locates and perspective-corrects the card, enhances contrast with CLAHE, extracts the Anti-A, Anti-B and Anti-D regions of interest (ROIs) and classifies each as agglutination present or absent using an INT8-quantised MobileNetV2 network in TensorFlow Lite. The three decisions are mapped to one of eight ABO/Rh blood groups and displayed with per-reagent confidence. On a held-out set of 300 ROIs from client-provided samples, the model achieved 96.3% accuracy, and end-to-end tests on 40 cards covering all eight groups gave 92.5% card-level accuracy, with most errors arising from weak Anti-D reactions and flagged for manual review. The full pipeline runs in about 0.41 s at roughly 6–7 W, showing that a low-cost edge device can provide fast, objective and offline blood typing support. Keywords: ABO and Rh, agglutination, blood typing, edge AI, image processing, MobileNetV2, Raspberry Pi 5, TensorFlow Lite.
Authors
- Kavyashree Kavyashree
- G Gokul
- Greeshma S
- Harshitha TP
- Sanjay B Nayak
Publication Details
- Journal
- International Journal of Creative and Open Research in Engineering and Management
- Published
- 2026-12-03
- DOI
- https://doi.org/10.55041/ijcope.v2i11.133
- Primary Topic
- Digital Imaging for Blood Diseases
- Type
- article
- Field-Weighted Citation Impact
- 0.00