Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Sir,
I am new in MATLAB, I have written a MATLAB code that will extract segmented Text. My question is how to display those text in notepad using MATLAB command or code.
I am giving my code here for segmentation of the image that contain Text,
My motive is to **Extract Text form the image** by Subtracting background extra image ..I want only text in notepad
%% step1 and step2 starts here %%
clc;
clear;
clear all;
I = imread('amz.jpg');   %% Image is taken from ICDAR Dataset (image with Text ICDAR dataset )%%
imshow(I)
%%
% Apply both the Sobel and Canny edge detectors to the image and display
% them for comparison.
J = rgb2gray(I);
%imshow(J);
%I=im2bw(I);
%K =   medfilt2(I);
BW1 = edge(J,'sobel');
BW2 = edge(J,'canny');
figure;
imshowpair(BW1,   BW2,'montage')
title('Sobel Filter                                   Canny Filter');
%%step 1 step2 ends here %%
%%start step3 %%

%imshow(K);
figure;
%imshow(K);
imshow(J);
%%%%%
Posted
Updated 16-Apr-15 1:01am
v2
Comments
Kenneth Haugland 16-Apr-15 8:41am    
Where is your text detection happening then?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900