OCR for seven segment display.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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,
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/172008/image.png)
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 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Text Analytics Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!