This project is an Arabic font recognition system implemented in Python. It consists of modules for data reading, preprocessing, feature extraction, model training, testing, and accuracy evaluation. The system is designed to recognize fonts from images and provide accuracy metrics based on the trained model, achieving an impressive 99% accuracy. 🌟
- Module for reading font images and labels from specified directories.
- Provides functions for reading data for training and testing.
- Module for preprocessing raw image data.
- Performs tasks such as resizing, normalization, and noise reduction.
- Module for extracting features from preprocessed images.
- Extracts relevant features for font recognition.
- Module for training machine learning models.
- Utilizes extracted features to train a font recognition model.
- Main script orchestrating the font recognition process.
- Integrates data reading, preprocessing, feature extraction, model training, testing, and accuracy evaluation.
To use the font recognition system, follow these steps:
- Set the
path_folder
variable to the directory containing the font dataset. - Configure the
NumberOftrainingData
andNumoftestData
variables according to your dataset size. - Run the
TrainingModule()
function to train the font recognition model. - Run the
ReadTestData()
function to load test data. - Run the
TestingModule()
function to test the trained model and evaluate accuracy.
readdata.py
: Contains functions for reading font image data.preprocessing.py
: Performs image preprocessing tasks.features.py
: Extracts features from preprocessed images.modeltraining.py
: Trains the font recognition model.main.py
: Main script orchestrating the font recognition process.results.txt
: Contains predicted labels for test data.time.txt
: Contains execution times for the testing phase.
- Python 3.x
- Required Python libraries: joblib, opencv-python, scipy, numpy, scikit-learn
Our system has achieved an outstanding 99% accuracy in recognizing Arabic fonts! 🏆
Sara Bisheer |
Rawan Mostafa |
Menna Mohammed |
Fatma Ebrahim |