Preprocessing Templates

After uploading template images, you need to preprocess them, such as rotate or crop the images, or reduce the noise. The purpose is to retain the key content and remove the redundant part to ensure that the image content is clear and the model recognition is accurate.

Prerequisites

You have created an application using the multi-template classification workflow and uploaded template images on the OCR Suite console. For details, see Uploading Template Images.

Preprocessing Templates

Choose Application Development > Define Preprocessing. Click to select the desired template and preprocess it.

Figure 1 Preprocessing templates

Select the required operation in the Select Preprocessing Logic area on the right. Currently, Auto Rotation and Seal Removal are supported.

  • Auto Rotation: When you select this option, the system automatically rotates the image with incorrect text direction to the correct direction.
  • Seal Removal: When you select this option, the system automatically removes the seal on the image to ensure recognition accuracy.

Alternatively, you can click the following operation icons in the upper left corner of the page to adjust the size, direction, and other properties of the template image:

: Click to reset the image to the initial status, that is, the unprocessed status.

: Click to adjust the cropping range in the Crop Image window and click Crop to resize the image.

: Click to adjust the image direction. Left-click on in the Rotate Image window, hold down the left mouse button and drag your mouse in the direction you want to rotate the image, and click OK.

: Click to rotate the image 90 degrees leftwards.

: Click to rotate the image 90 degrees rightwards.

: Click to zoom out the image.

: Click to zoom in the image.

: Click to select an image zoom percentage.

When preprocessing is complete, click Next to go to step Box-selecting Reference Fields.