MATLAB Optical character recognition - need help

2019-09-07 15:36发布

问题:

I have to use mat lab to find a certain letter in a tif text image.In the spatial domain. I have no idea how to do this, and can't find any documentation other than complex code that uses loops, loops are forbidden. Yes, this is an assignment I don't want the answer just some direction on how to even start.

I want to use imfilter and use a letter as a template or filter to imfilter using correlation but from there I have no idea where to go and don't even know what questions to ask to find more info on mat labs site.

The write up makes it seem simple but I know nothing of this subject as I am a beginner so to me this is hard.

thanks

回答1:

If you have the image processing toolbox I would suggest using the function normxcorr2. It calculates the normalized cross correlation between a template image and a larger image, which I think is what you want.

You don't need any for loops to use it, but the method itself probably uses for loops somewhere hidden in the code. I don't know if that counts..



标签: matlab ocr