How to detect the tick mark & the letter separately and print as text using matlab from the following image?

2 views (last 30 days)

Answers (1)

Image Analyst
Image Analyst on 14 Sep 2015
I suggest you build a library of all letters a-z with and without checkmarks, and an image of the checkmark alone. Then subtract the test image from each of your library images and find out which one has the least number of differences.
To print the images you have determined from what I just said, you can use the fprintf() function.
  4 Comments
Farzana Yasmin
Farzana Yasmin on 18 Sep 2015
I have used the following code & the output images are also given here. I'm unable to understand how can the detection be done & printed in text here?
clc
clear all
close all
I=imread('E:\Study\4-2\Project\A1p.jpg');
I=imresize(I,[100 100]);
figure
imshow(I), title('I');
J=imread('E:\Study\4-2\Project\Coding\OCR\library\bwidtick.jpg');
J=imresize(J,[100 100]);
figure
imshow(J), title('J');
z=I-J;
disp(z);
figure
imshow(z), title('z');

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!