%% 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); %%%%%
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)