OCR for seven segment display.
1 view (last 30 days)
Show older comments
Hi, Am trying to read a seven segment display in matlab using ocr. I have the following code,
clc;clear all;close all businessCard = imread('test2.png'); ocrResults = ocr(businessCard, 'CharacterSet','.0123456789'); recognizedText = ocrResults.Text; figure; imshow(businessCard); text(600, 150, recognizedText,'BackgroundColor', [1 1 1]);
The image I am trying to read and convert to text is,
The result is that no text is recognized,
ocrResults =
ocrText with properties:
Text: '1
' CharacterBoundingBoxes: [3x4 double] CharacterConfidences: [3x1 single] Words: {'1'} WordBoundingBoxes: [9 5 42 55] WordConfidences: 0.6098
Any suggestions? I want to use OCR to make my code robust.
Thanks.
0 Comments
Answers (0)
See Also
Categories
Find more on Text Analytics Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!