How can i write a code to detect the numbers and alphabets in an image?
Show older comments

3 Comments
Walter Roberson
on 12 Feb 2018
That is likely to be difficult. Do you have control over the lighting and angle and distance? You would prefer a brighter diffuse light and to take the picture from directly above, I think...though taking it from a sharp angle with a strong light to get a profile image could be potentially useful to read those embossed letters.
Kelechukwu Ezike
on 12 Feb 2018
Walter Roberson
on 12 Feb 2018
You currently have bright on one side of the box and comparative dim on the other side of the box. That makes it difficult to even find a correct bounding box to be able to isolate the box to have a chance to do threshold detection to find the letters. The specular reflections of the gold also make it difficult. I think better illumination would reduce the problems.
Answers (1)
Image Analyst
on 12 Feb 2018
0 votes
You need better image capture conditions, such as alignment and lighting. Then do a background correction. Then look at the Computer Vision System Toolbox, which has OCR capabilities. https://www.mathworks.com/help/vision/ref/ocr.html#bt548t1-2_1
1 Comment
Kelechukwu Ezike
on 12 Feb 2018
Categories
Find more on Convert Image Type in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!