Main Content

TroubleshootocrFunction Results

Performance Options with theocrFunction

If yourocrresults are not what you expect, try one or more of the following options:

  • 增加图像大小的2到4倍。

  • 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 thegraythreshandimbinarizefunctions 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 theimtophatfunction, or other techniques that deal with removing non-uniform illumination.

  • Use the region of interestroioption to isolate the text. Specify theroimanually 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 theTextLayoutproperty to either'Block'or'Word'.

See Also

|||||

Related Topics