OCR for seven segment display.

2 次查看(过去 30 天)
Umar Khan
Umar Khan 2018-4-10
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 个)

类别

Help CenterFile Exchange 中查找有关 Text Analytics Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by