An implementation of a classifier that distinguishes between 9 different arabic fonts.
This is CMPN450 course project - Faculty of Engineering, Cairo University.
Local Phase Quantaization (LPQ) feature is calculated for each test image and used to train a Support Vector Machine (SVM).
To install needed packages use:
pip install -r requirements.txt
To run the trained model on testcases in /test use:
python predict.py
To calculate the accuracy use:
python evaluate.py
This is the directory where the test images are located. The output is ordered ascendingly according to the file names.
Contains the actual labels of the test images, each in a seperate line.
Contains the class of each test image in ascending order according to the image name, each in a seperate line.
Contains the classification time of each test image in ascending order according to the image name, each in a seperate line.