How do I setup Ranger's OCR parameters?

How do I setup Ranger's OCR parameters?


If your check scanner supports OCR reading, then you define OCR parameters in Ranger's GenericOptions.ini file.

Values in the GenericOptions.ini file and can be modified either manually or by calling Ranger's SetGenericOption() function prior to calling EnableOptions().
      SetGenericOption(<section name>, <value name>, <value>)

There are two steps to setting up OCR parameters.
  1. Enable OCR reading
  2. Define an OCR read zone

Step 1: Enable OCR reading

This step turns on OCR reading, if it's supported by your check scanner, and defines how many OCR zones will be read. 

Using Ranger's GetTransportInfo() call can determine if OCR reading is supported and how many OCR zones can be read.

To enable OCR reading and enable a single OCR zone set the following values in Ranger's GenericOptions.ini file:


Step 2. Define an OCR read zone

These parameters tell Ranger which portion (zone) of the front image to read with OCR.

Setting the following values in the GenericOptions.ini file will read the MICR line on most checks.  You will find a similar example in your GenericOptions.ini file.



Parameter
Usage
Font
Font of the OCR line. The legal values for your check scanner
See Ranger's TransportInfo.ini file [OcrReader*] sections.
VerticalCenter
Vertical center of the OCR line in millimeters measured from the bottom of document.
Right
Right edge of of OCR zone in millimeters from the right edge of the document.
Width
Width of OCR zone in millimeters from the "Right" value.
Height
Height of OCR zone from top to bottom in millimeters.




More:
An OCR read zone is a rectangular region on the document with a Height and Width.  The OCR read zone/rectangle also has a position.  The rectangle position is defined my its Right edge and its VerticalCenter.

The easiest way to define the OCR zone position values for a document is to:
  1. Draw a rectangle around the OCR line that you want to read.  The OCR zone should be slightly larger (in each direction) than the OCR line.  This will allow you to support slight variations in printing and document size.  However the OCR zone should not be too large or it will pick up stray characters from other areas of your documents.  Adjust the zone size to work best for the documents that you have.
  2. Measure the width of the rectangle.  This will become your Width option value.
  3. Measure the height of the rectangle.  This will become your Height option value.
  4. Measure from the right (leading) edge of the document to the right edge of the rectangle.  This will become your Right option value.
  5. Measure from the bottom edge of the document to the vertical center of the rectangle.  The vertical center is in the middle between the rectangle top and bottom.  This will become your VerticalCenter option value.

Copyright © 2023 Silver Bullet Technology
www.sbullet.com

    • Related Articles

    • What's the best Image setting for OCR?

      To provide the best OCR reading results, Canon recommends using the "TextEnhanced" image mode as their number one recommendation and "AdaptiveThreshold" as the second choice. You may want to try both and pick the option that yields the best OCR ...
    • Why is OCR not working for my MVX scanner?

      Panini controls what options are enabled for your machine depending on what options were purchsed for that machine. It is possible that OCR has not been enabled on this machine. One way to determine if your scanner has OCR enabled is to check the ...
    • Can check scanner OCR read check amounts, dates, signatures, etc.?

      The OCR capability that comes with check scanners cannot read check amounts, dates, signatures and so on. There are vendors that offer software that can read this type of information from checks. Some of the companies that offer popular check reading ...
    • Ranger Installation Options

      Silent Install - /S - You can find additional installation details here When ranger is installed silently no dialog is shown to the user. So you could embed the ranger installer within your own script, extract it and run it from your install script. ...
    • How can my plug-in define unique parameters?

      Each plug-in has an ini file for setting options that are unique to the scanner(s) that the plug-in supports. You specify which options are available by placing an ini file with the same root name as you plug-in DLL in the plug-in data directory ...