I have a form table that contains characters. how to extract these characters?

4 Kommentare

Image Analyst
Image Analyst am 27 Nov. 2014
You forgot to attach your table or image, so there's nothing we can suggest (yet).
lamghari
lamghari am 28 Nov. 2014
sorry attached image
Thorsten
Thorsten am 28 Nov. 2014
Bearbeitet: Thorsten am 28 Nov. 2014
What do you mean by "extract these characters"? Select the images of the characters or do an OCR (optical character recognition) or something else?
lamghari
lamghari am 28 Nov. 2014
select the images of the characters

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Image Analyst
Image Analyst am 28 Nov. 2014

0 Stimmen

First I'd sum the image vertically and horizontally and look for the rows and columns where the grid lines are. Then call imcrop.
[rows, columns, numberOfColorChannels) = size(grayImage);
horizontalProfile = sum(grayImage, 1);
verticalProfile = sum(grayImage, 2);
binaryHoriz = horizontalProfile < someNumber;
and so on. Give it a try.

3 Kommentare

lamghari
lamghari am 28 Nov. 2014
How to calculate someNumber?
Image Analyst
Image Analyst am 29 Nov. 2014
Plot the profiles and you'll be able to tell what the number is. It might be like half the max value or something.
lamghari
lamghari am 29 Nov. 2014
ok thank you very much

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Convert Image Type finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by