CompletedOpenCV / Scikit-learn

Handwritten Digit Recognition & Calibration Engine

An OpenCV and Scikit-learn pipeline that segments multi-writer handwritten numeral grids, trains multinomial classifiers, and calibrates confidence errors.

Ingestion:OpenCV Grid Slicer
Classifier:L-BFGS Softmax
Diagnostics:Confidence Calibration

Overview

A pattern recognition pipeline built to ingest raw scanned handwritten digit sheets from multiple contributors and evaluate classifier probability calibration.

The Problem

Raw scanned sheets suffer from uneven lighting, ink thickness variation, and off-center numerals. Uncalibrated classifiers also output overconfident probabilities on ambiguous handwriting.

Architecture & Implementation

Used OpenCV (cv2) for adaptive thresholding, morphological cleanup, and aspect-preserving resizing into uniform feature vectors. Fed normalized arrays into a Scikit-learn multinomial logistic regression pipeline (L-BFGS solver) and evaluated confidence calibration bins.

Key Challenges Solved

  • Eliminating grid borders and scanning noise without clipping thin strokes on digits like 1 and 7.
  • Maintaining centered aspect ratios when normalizing wildly varying handwriting scales.
  • Diagnosing systematic confusion pairs through probability calibration curves and error galleries.

Outcomes & Verification

  • Reliable automated ingestion turning multi-writer raw sheet scans into clean training datasets.
  • Quantified confidence calibration showing where model uncertainty aligns with human ambiguity.