Health Check Report OCR
API Documentation for Health Check Report OCR
Extract medical examination report information from image or PDF file
Error Definition
http status | error_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
Name | Type | Description |
---|---|---|
image* | String | Input base64 image encoded utf-8 |
- 200: OK Successful response
- 422: Unprocessable Entity Validation error
{
"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"
}
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
Example code
- Python
- Nodejs
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())
const axios = require("axios");
const api = "https://apis.aigen.online/aiscript/healthcheck-form/v1";
const headers = {
"x-aigen-key": "<key>",
};
const data = { image: "<base64_string>" };
axios
.post(api, data, { headers: headers })
.then((res) => {
console.log(res.data);
})
.catch((err) => {
console.error(err.response.data);
});