Picture Letter Recognition software
This is just the start of what I want to do with a letter recognition program. To run it, save the files in a folder and run the program. It will analyze the picture and compare it to a set of values taken from a letter database to output the letters.
If you want to test its accuracy, open up paint and write anything in Calibri with capital letters. Try sticking with a font above 20 in paint because when uploading it to matlab, small fonts wont be represented as well in the 3 by 3 rgb translation.
The way I set the program up will allow it to run with other fonts, you just have to update the file called letter profiles with other fonts.
How I did it:
When uploading a picture text to matlab, it will be presented as a 3 by 3 matrix with numbers ranging from 0 to 255. The first thing I did was manipulate these numbers to be either 0 or 255. This made analyzing the picture easier. Then I found the the upper and lower limits of each line and stored them as an array. With this data I found the left and right limits of each character. From here, I was able to filter out the letters into sub matrix's to be analyzed.
The way I analyzed these letters was by looking at each side of the letter (top bottom left right) and then seeing what shape they made. From here I ran the program to see the shape of the alphabet and I stored that as letter profiles.
This is were it got a little tricky because I had to use a spline command and a way of normalizing the data to adjust for different font sizes and different letter dimensions.
From here I compared the picture letters with the letter profiles and outputted which letter it was.
引用格式
nathanial hapeman (2024). Picture Letter Recognition software (https://www.mathworks.com/matlabcentral/fileexchange/35975-picture-letter-recognition-software), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
平台兼容性
Windows macOS Linux类别
- Image Processing and Computer Vision > Computer Vision Toolbox > Recognition, Object Detection, and Semantic Segmentation > Semantic Segmentation >
- AI and Statistics > Text Analytics Toolbox >
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |