- Print
- PDF
CLOVA OCR Validation
- Print
- PDF
CLOVA OCR result linkage verification method
The CLOVA OCR service can verify the value of the recognized text, reducing repetitive verification work and increasing reliability.
In CLOVA OCR Builder, external verification linkage can be set after Template OCR recognition. Using the verification function, if you have your own verification server, you can check each template by interworking with the API.
In other words, you can set a specific document as a template and send the value (for example, zip code) extracted from the document to an external verification server to receive the verification result (VALID or INVALID).
The verification result is reflected in the [CLOVA OCR Custom API] response validationResult object, and you can see the verification result for the CLOVA OCR Custom API client.
Request
Request Body
Image recognition result is sent from CLOVA OCR Builder.
Request Body Example
{
"image": {
"uid": "5bbb6c342f054b25a8af898b09bd1122",
"name": "Test-Request",
"inferResult": "SUCCESS",
"message": "SUCCESS",
"matchedTemplate": {
"id": 266,
"name": "EN-Front-2020"
},
"validationResult": {
"result": "UNCHECKED"
},
"title": {
"name": "2020 EN2B-Front",
"boundingPoly": {
"vertices": [
{
"x": 1148.3334,
"y": 23.833334
},
{
"x": 1423.5,
"y": 23.833334
},
{
"x": 1423.5,
"y": 47.666668
},
{
"x": 1148.3334,
"y": 47.666668
}
]
},
"inferText": "2020EN2B-Front",
"inferConfidence": 0.99994594
},
"fields": [
{
"name": "1-Value",
"valueType": "ALL",
"boundingPoly": {
"vertices": [
{
"x": 132.16667,
"y": 491.83334
},
{
"x": 197.16667,
"y": 491.83334
},
{
"x": 197.16667,
"y": 546.0
},
{
"x": 132.16667,
"y": 546.0
}
]
},
"inferText": "FIRST\nMIDDLE\nNAME",
"inferConfidence": 0.99935573,
"type": "NORMAL"
},
{
"name": "2-Value",
"valueType": "NUMERIC",
"boundingPoly": {
"vertices": [
{
"x": 223.98764,
"y": 1148.0485
},
{
"x": 263.99146,
"y": 1148.049
},
{
"x": 263.99606,
"y": 1212.0457
},
{
"x": 223.99258,
"y": 1212.045
}
]
},
"inferText": "",
"inferConfidence": 0.84649235,
"type": "NORMAL"
},
{
"name": "3-Value",
"valueType": "ALL",
"boundingPoly": {
"vertices": [
{
"x": 348.0137,
"y": 1376.034
},
{
"x": 507.0252,
"y": 1376.0349
},
{
"x": 507.0269,
"y": 1416.0331
},
{
"x": 348.01614,
"y": 1416.0322
}
]
},
"inferText": "",
"inferConfidence": 0.9938921,
"type": "MULTI_BOX",
"subFields": [
{
"boundingPoly": {
"vertices": [
{
"x": 348.0137,
"y": 1376.034
},
{
"x": 385.51636,
"y": 1376.0349
},
{
"x": 385.51862,
"y": 1416.0306
},
{
"x": 348.01614,
"y": 1416.0298
}
]
},
"inferText": "",
"inferConfidence": 0.999991
},
{
"boundingPoly": {
"vertices": [
{
"x": 388.51654,
"y": 1376.0349
},
{
"x": 426.01926,
"y": 1376.0356
},
{
"x": 426.02133,
"y": 1416.0315
},
{
"x": 388.51883,
"y": 1416.0306
}
]
},
"inferText": "",
"inferConfidence": 0.98254
}
]
}
]
}
}
Response
Response Body
Field name | Data type | Description |
---|---|---|
uid | string | Set the same value as uid of the request body. |
result | string | Set one of the following values [VALID, INVALID] |
message | string | Text set. result Value is only valid for VALID or INVALID. |
Response Body Example
{
"uid": "5bbb6c342f054b25a8af898b09bd1122",
"result": "VALID",
"message": "VALID message!"
}