OCR for seven segment display.

1 回表示 (過去 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 Center および File ExchangeText Analytics Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by