Forensic License Plate Recognition
September 2023AI / ML
PythonNumPyComputer Vision
A forensic license plate recognition algorithm implemented for CS 70, Foundations of Applied Computer Science and Machine Learning. The algorithm removes perspective distortion from images of planar surfaces, transforming the view so the license plate appears face-on.
The approach deduces the entries of a homography matrix that maps four clicked corner points to the four corners of an undistorted rectangular license plate. Each pair of corresponding points provides two constraints, and with four pairs, the system solves 8 constraints on 8 unknowns. After mapping the points from the original image to the corrected image, the license plate becomes fully readable.