How refa3ey/egyptian-license-plate works
This repository recognizes Egyptian license plates from pre-cropped images and also provides a dataset-preparation and model-training workflow. Inference loads an image, preprocesses and segments it, classifies characters with a CNN, and assembles plate text. The README documents the separate augmentation-to-labeling training workflow; excerpts show training artifacts and inference inputs. Inference preprocessing and segmentation are implemented within predict.py, so they are represented there rather than as unsupported calls to the standalone preparation scripts.
Main entry points: predict.py Recognition pipeline · train.py CNN training · Augmentation.PY Image augmentation · labeling.py Manual labeling
Components 16
Plate recognition
- Recognition pipeline
predict.py
Dataset preparation
- Image augmentation
Augmentation.PY - Image preprocessing
preprocessing.py - Character segmentation
segmentation.py
Labeling and training
- Manual labeling
labeling.py - CNN training
train.py
Diagnostics
- System diagnostics
diagnostic.py - Plate debugging
debug_plate.py
Other components
- User
- Plate image
- Plate text
- Original plates
- Character images
- Character labels
- Trained CNN
model.pth1 - Class names
classes.json
Connections 19
- User → Recognition pipeline: runs recognition
README.md - Plate image → Recognition pipeline: loads image
predict.py - Recognition pipeline → Plate text: assembles text
README.md - User → Image augmentation: runs preparation
README.md - Original plates → Image augmentation: augments images
Augmentation.PY - Image augmentation → Image preprocessing: prepares images
README.md - Image preprocessing → Character segmentation: feeds plates
README.md - Character segmentation → Character images: writes characters
segmentation.py - User → Manual labeling: labels characters
README.md - Character images → Manual labeling: displays images
labeling.py - Manual labeling → Character labels: writes labels
labeling.py - Character labels → CNN training: loads labels
train.py - User → CNN training: runs training
README.md - CNN training → Trained CNN: saves weights
train.py - CNN training → Class names: writes classes
train.py - Recognition pipeline → Trained CNN: loads weights
predict.py - Recognition pipeline → Class names: loads classes
predict.py - User → System diagnostics: checks health
README.md - User → Plate debugging: inspects plate
debug_plate.py