The repository contains the code for detecting multiple characters from an image using the EMNIST dataset
The dataset used is EMNIST. You can find the data here. I have used the EMNIST gby merge dataset
- Tensorflow
- Keras
- Numpy
- h5py
- Pandas
- OpenCV
-
Keep the downloaded files in the same folder as the code. Execute the command "python convnet.py" to train the model.
-
The trained model is saved in the h5 file int the output folder.
-
For training a sample of own choice we can simply execute the command "python cannyedgedet.py lpp.jpg" which uses the image and segments the image. Each segmented image is tested using the test script which generates the output.
NOTE - The weights file is already present in the output folder. One can directly use the command "python cannyedgedet.py lpp.jpg" to generate output. First line of output is all the bounding box coordinates in the image and second line is the detected letters
Following are a few results obtained after training the model