Clear Filters
Clear Filters

OCR for seven segment display.

2 views (last 30 days)
Umar Khan
Umar Khan on 10 Apr 2018
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.

Answers (0)

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!