Technical Services
Non Insurance Services
Deprecate
Optical Character Recognition
Sidebar On this page

Introduction - OCR

OCR (Optical Character Recognition) is a service that extracts information from various types of images, such as photos, PDFs, and handwritten files, and converts them into machine-encoded text. This eliminates the need for manual data entry in certain business applications.

Many cloud vendors like Google, offer original OCR services. However, insureMO OCR service acts as an adapter that connects various OCR vendors like Google, and provides a unified interface to consumer applications.

The insureMO OCR service consists of two parts: the OCR Configuration Console and the OCR APIs.

Users can choose and configure the OCR vendor in the insureMO OCR Configuration console.

Once the configuration is done, the user’s application can integrate and call the OCR API.

Get Started - OCR

OCR Configuration Console

To get started, follow these steps:

  1. Create an OCR account and obtain the token for API calls.

  2. Click Sign in to log in to insureMO Portal with your personal account.

    info

    If you do not have a personal insureMO account, click Sign up to register one.

  3. Click Catalog at the top of the home page.

  4. In the nevagation pane on the left side of Catalog page, navigate to Non Insurance Services > OCR to find the OCR Service v2 service card.

  5. Select OCR Service v2

  6. Click Create to add a new account.

2
  1. Enter the account name, choose the OCR vendor, and select the document type that will use OCR.
3
  1. View the created account and its token for API access.
4

OCR APIs

Go to “API Management”, under “Subscribed APIs”, search for OCR APIs, then you can use Online API test to test the APIs:

1.Image Base64 API

5

1.1 Type

  • Post

1.2 Path

1.3 Request Body

  • Image file;

  • Support type: PNG、JPG、JPEG、BMP、PDF;

  • File size should be under 5 MB;

  • Resolution should be above 600 * 800 pixels.

1.4 Response Body

6

Result Object

7

Sample Response

{ “status”: “200”, “message”: “success”, “result”: { “imageBase64”: “wMLvXefIAAAAASUVORK5CYII=XXXXXX” }}

2. OCR API

8

2.1 Type

  • Post

2.2 Path

2.3 Request Body

9

2.4 Response Body

10

Result Object

11

VnIDCardRes Object

12

ThaiIDCardRes Object

13

VnDriversLicenseRes Object

14

Sample Response

{ “status”: “200”, “message”: “success”, “result”: { “vnIdCardRes”: { “id_number”: “0010XX0008XX”, “full_name”: “NGÔ XXX MI”, “date_of_birth”: “14/08/1990”, “sex”: “Nam”, “nationality”: “Viêt Nam”, “place_of_origin”: “XXX, Chương Mỹ, Hà Nội”, “place_of_residence”: ” XXX, Nam Từ Liêm, Hà Nội”, “date_of_expiry”: “14/08/2023” } } }


Feedback
Was this page helpful?
|
Provide feedback