CLOVA OCR Validation
    • PDF

    CLOVA OCR Validation

    • PDF

    Article Summary

    CLOVA OCR 결과 연동검증 방법

    CLOVA OCR 서비스는 인식된 텍스트의 값을 검증할 수 있어 반복 검증 업무를 줄이고 신뢰도를 높일 수 있습니다.

    CLOVA OCR 빌더에서는 Template OCR 인식 후 외부 검증 연동을 설정할 수 있습니다. 검증 기능을 사용하면 독자적인 검증 서버를 보유하고있는 경우 API로 연동하여 템플릿별로 확인을 할 수 있습니다.

    즉, 특정 문서를 Template 으로 설정하고, 문서에서 추출한 값(예를들어 우편 번호)를 외부 검증서버로 보내 검증한 결과(VALID 또는 INVALID)를 받을 수 있습니다.

    검증 결과는 [CLOVA OCR Custom API] 응답 validationResult 객체에 반영되며 CLOVA OCR Custom API 클라이언트에 대한 확인 결과를 알 수 있습니다.


    Request

    Request Body

    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

    필드 이름데이터 유형설명
    uidstring요청 바디의 uid와 같은 값을 설정함
    resultstring다음 중 하나의 값을 설정함
    [VALID, INVALID]
    messagestring텍스트를 설정함 result 값이 VALID 또는 INVALID의 경우에만 유효

    Response Body Example

    {
      "uid": "5bbb6c342f054b25a8af898b09bd1122",
      "result": "VALID",
      "message": "VALID message!"
    }
    

    이 문서가 도움이 되었습니까?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.