Health Check Report OCR

​Extract medical examination report information from image or PDF file

​Error Definition

http statuserror_message

200

-

500

some error occur in serverside

Extract medical examination report information from image or PDF file

POST https://apis.aigen.onlinehttps://apis.aigen.online/aiscript/healthcheck-form/v1

Request Body

NameTypeDescription

image*

String

Input base64 image encoded utf-8

​{
  "result": "Success",
  "datetime": "2022-01-31 11:59:59.000000+07:00",
  "data": [
    {
      "key": "FBS",
      "found": "True",
      "score": "0.9998",
      "value": "FBS",
      "rect": "[0.458593, 0.221213, 0.240625, 0.012598]"
    }
  ],
  "message": "Internal Server Error"
}

​Example code

import requests
import json

api = "https://apis.aigen.online/aiscript/healthcheck-form/v1"
headers = {"x-aigen-key": "<key>", "content-type": "application/json"}
data = json.dumps({"image": "<base64_string>"})

res = requests.post(api, data=data, headers=headers)
print(res.json())

Last updated