Most license plate recognition (LPR) systems fail after dark. This project asks: Can a quantum-enhanced neural network read license plates in night conditions more accurately than a purely classical system?
The quantum model achieves competitive performance utilizing a dynamic 256-dimensional Hilbert space, requiring fewer overall parameters compared to the classical baseline.
The 8-qubit register exhibits emergent specialization during training. Different qubits learn to react to specific visual features, such as numeral density or character boundaries.
1import torch
2
3# Load the Quantum Checkpoint
4checkpoint = torch.load("quantum/latest.pth", map_location="cpu")
5
6print(f"Loaded Epoch: {checkpoint.get('epoch', 'N/A')}")
7print(f"Validation CER: {checkpoint.get('val_cer', 'N/A')}")
8
9# Assuming HybridLPRNet_8Q is defined in your scope:
10# model = HybridLPRNet_8Q()
11# model.load_state_dict(checkpoint['model_state_dict'])
12# model.eval()