Beruflich Dokumente
Kultur Dokumente
tiya04_11092013
no_of_characters=0;
temp_row_cntr=1;
temp_start_row=1;
temp_end_row=1;
while(temp_row_cntr<col_count)
%%-------------Extracting character ---------------------temp_row_status=Get_Row_Status(line_image,temp_row_cntr);
if (temp_row_status~=BLANK)
temp_start_row=temp_row_cntr;
[char_image,temp_end_row]=Get_Character(line_image,temp_start_row);
temp_row_cntr=temp_end_row;
%% Croping character image-------------------------%% [char_image]=Set_Char_Boundary(char_image);
%% --------------storing chacracter image-----------no_of_characters=no_of_characters+1;
filename=sprintf('%s\\char_%d.jpeg',dirname,no_of_characters);
imwrite(char_image,filename,'jpeg');
end
temp_row_cntr=temp_row_cntr+1;
end
%%##---------------------------------------------------------end
%% i.e. bottom line of character
row_cntr=row_cntr+1;
end
% pause;
close all;
Page 2