Evaluating an Application
After a template classification model is trained, you can evaluate the template classifier and template images. You can upload test images and evaluate the template classification and OCR results online to ensure that the model can correctly classify test images in the case of multiple templates and recognize text in recognition areas of test images.
Prerequisites
You have created an application using the multi-template classification workflow and uploaded training sets for templates on the OCR Suite console. For details, see Uploading Training Sets.
Accessing the Evaluate page
Log in to the ModelArts Pro > OCR Suite console. By default, the AppDev > Workbench page is displayed. On the My Applications page, locate the desired application and click View in the Operation column. The application details page is displayed. You can access the Evaluate page from the Application Assets and Application Development pages.
- On the Application Assets page, the Classifiers page is displayed by default. Click Evaluation in the Operation column of the desired template. The Evaluate page is displayed.
- Alternatively, on the Application Development page, complete operations Upload Images, Define Preprocessing, Box-select Reference Fields, Box-select Recognition, and Upload Training Sets in sequence, and click Next. The Evaluate page is displayed.
Evaluating the Classifier
You can evaluate whether the template classifier after model training can correctly classify templates online by uploading test images.
On the Application Development > Evaluate page, you can upload test images from the local host or upload images online.
- Uploading a local test image
The Local Upload page is displayed by default. You can enable Classification Mode and Dynamic Recognition as required. Click Upload or drag an image to the dotted-line box to upload a local image as a test image.
Classification Mode: When this function is enabled, the accuracy of the classifier is evaluated separately. After an image is uploaded, the automatic classification result is displayed on the right, indicating the template ID, template name, and confidence. When this function is disabled, both automatic classification of the template and structured recognition of text are performed.
Dynamic Identification: If the format of the image to be identified is similar to that of the template image but not completely the same, for example, the position of the recognition area on the image relatively changes, you are advised to enable this function for evaluation. If a template in fixed format is evaluated, you are advised to disable this function.
After a test image is uploaded, the recognition result is displayed on the right.
- Uploading an online test image
Click Online URL. Enter the URL of the image to be tested in the box on the left of Start, or drag the test image to the image upload area in the dotted line box to upload a test image online.
After an image is uploaded, the template recognition result is displayed on the right, indicating the template ID, template name, and confidence.
Check whether the recognition result is correct.
If the recognition result is incorrect, click Previous to modify the template.
If the recognition result is correct, you can further evaluate the template. For details, see Evaluating a Template.
Evaluating a Template
You can evaluate the template recognition and structured information extraction capabilities of the model online by uploading test images.
Choose Application Development > Evaluate, select the template to be evaluated on the right, and upload a test image from the local host or upload an online image to evaluate the template.
- Uploading a local test image
The Local Upload page is displayed by default. You can enable Dynamic Recognition as required. Click Upload or drag an image to the dotted-line box to upload a local image as a test image.
Dynamic Identification: If the format of the image to be identified is similar to that of the template image but not completely the same, for example, the position of the recognition area on the image relatively changes, you are advised to enable this function for evaluation. If a template in fixed format is evaluated, you are advised to disable this function.
After an image is uploaded, the text recognition result is displayed on the right, indicating the recognition area and result.
- Uploading an online test image
Click Online URL. Enter the URL of the image to be tested in the box on the left of Start, or drag the test image to the image upload area in the dotted line box to upload a test image online.
After an image is uploaded, the text recognition result is displayed on the right, indicating the recognition area and result.
Check whether the recognition result is correct.
If the recognition result is incorrect, click Previous to modify the template.
If the recognition result is correct, click Next to deploy the template.
Follow-up Operations
If the recognition result is correct after evaluating the classifier and template, click Next to go to step Deploying an Application.
Last Article: Uploading Training Sets
Next Article: Deploying an Application
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.