How to create our own template for ocr?

조회 수: 3 (최근 30일)
sindhu c
sindhu c 2015년 11월 26일
답변: Image Analyst 2015년 11월 26일
I have a set of images of "i"..I have to create my own template for OCR,for this I have to combine all the images of i and should get the average image of i of all images.How to do it?Please help me

답변 (1개)

Image Analyst
Image Analyst 2015년 11월 26일
First crop out all the i letters. Then resize them to the same pixel size, then add them to a double array
sum_i = zeros(rows, columns);
for k = 1 : numberOfIs
this_i = imread(.....
sum_i = sum_i + this_i
end
mean_i = sum_i / numberOfIs;

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by