CIB DeepER API Documentation (EN)

API-Description

OCR Call

DeepER is accessed by a REST Interface.

For requesting an OCR-result, a POST-Request has to be sent to https://backend-ocr.cib.de/ocr/v4

Credentials have to be provided via the authentication header.

Supported input formats are PNG and JPG. To process an image, it has to be provided as a file in the request body. The content-type should be 'application/octet-stream'. The naming of the field must be 'file'.

In Python, a basic client implementation looks like this:

import requests
 files = {
           'file': ('image.png', open(r'\path\to\image.png', 'rb'), 
             'application/octet-stream'),
      }
        response = requests.post('http://backend-ocr.cib.de/ocr/v4',
                                files=files, 
                                auth=('<<username>>', '<<password>>'))
        json_response = response.json()