# Using the Auto-Tune Dialog

You can open and use the Auto-Tune Dialog of the OCRMax tool as described below.

## Opening the Auto-Tune Dialog:

1. From the OCRMax Property sheet, press the Auto-Tune button in the lower left.

## Training Images

All of the steps below assume that a database of sample images that contain the characters to be trained has been created and placed in a directory. Also, the steps assume that an OCRMax function has been inserted into the Spreadsheet. The process of training and segmenting characters for OCR applications using the Auto-Tune dialog consists of the following:

###### Training Images Using Automatic Character Segmentation

1. In the Auto-Tune dialog, by default, the Auto-Tune tab will be displayed. In the Text field, enter the text string to be trained.
2. From the Auto-Tune dialog's toolbar, press the Edit Region button to enter Interactive Graphics Mode and position the OCRMax function’s region of interest (ROI) over the line of text to be read. When configuring the ROI, ensure that it accounts for any angular rotation and/or skew.
3. The function will automatically create character regions around the text that the function determines to be characters, based on the default settings in the Segmentation tab.
4. Press the Fix Segmentation (Automatic) button to allow the OCRMax function to automatically adjust the Segmentation parameters.

5. After the OCRMax function has segmented the characters, the Auto-Segment Results dialog will be displayed, with a list of results.

6. Examine the result(s) to determine which result provides the best segmentation of characters. Selecting a result in the list will update the character regions in the image. If necessary, press the Edit Result button to enter Interactive Graphics Mode and manually adjust the character regions around the character(s).
7. Once the best result has been determined, select the result from the list and press the OK button to close the Auto-Segment Results dialog.
8. A new Auto-Tune Record will be created, and the image will be updated with the new character regions. The Font will also be updated with the newly trained characters.
9. Load the next image, and repeat steps 1 through 8.
10. Once all of the training images have been used, press the OK button to close the Auto-Tune dialog.

###### Training Images Using Manual Character Segmentation

1. In the Auto-Tune dialog, by default, the Auto-Tune tab will be displayed. In the Text field, enter the text string to be trained.
2. From the Auto-Tune dialog's toolbar, press the Edit Region button to enter Interactive Graphics Mode and position the OCRMax function’s ROI over the line of text to be read. When configuring the ROI, ensure that it accounts for any angular rotation and/or skew.
3. The function will automatically create character regions around the text that the function determines to be characters, based on the default settings in the Segmentation tab.
4. Press the Fix Segmentation (Manual) button to enter Interactive Graphics Mode.
5. Manually edit the position and size of the character regions, as needed.
6. Once all of the character regions have been resized and re-positioned as needed, press the OK button on the toolbar to exit Interactive Graphics Mode.
7. The Auto-Tune dialog will once again be displayed, and a new Auto-Tune Record will be created, and the image will be updated with the new character regions. The Font will also be updated with the newly trained characters.
8. Once all of the training images have been used, press the OK button to close the Auto-Tune dialog.

###### Correcting Character Identifications

This option is used when the image has been segmented correctly, however the characters were misidentified.

1. In the Auto-Tune dialog, by default, the Auto-Tune tab will be displayed. In the Text field, enter the text string to be trained.
2. Press the Train Characters Only button.
3. The Font will be updated with the newly trained characters, and a new Auto-Tune Record will be created.

Note: If the error message "Incorrect Record String in the Model" is encountered, this error indicates that an Auto-Tune Record has been added that is identical to another Auto-Tune Record, except the classification between the two is different. For example, if the first Auto-Tune Record has a zero classified as the letter "O" in the first, but in the second it is correctly classified as "0," this error will occur. In this error condition, go to the Records tab and ensure that the text strings specified for the Auto-Tune Record are correct.