ocr Function Results
Performance Options with the
ocr results are
not what you expect, try one or more of the following options:
Increase image size 2-to-4 times larger.
If the characters in the image are too close together or their edges are touching, use morphology to thin out the characters. Using morphology to thin out the characters separates the characters.
Use binarization to check for non-uniform lighting issues. Use the
imbinarizefunctions to binarize the image. If the characters are not visible in the results of the binarization, it indicates a potential non-uniform lighting issue. Try top hat, using the
imtophatfunction, or other techniques that deal with removing non-uniform illumination.
Use the region of interest
roioption to isolate the text. Specify the
roimanually or use text detection.
If your image looks like a natural scene containing words, like a street scene, rather than a scanned document, try setting the
TextLayoutproperty to either