My Template
API Documentation for My Template.
Description
My Template is a customizable service that allows users to design and build their own document extraction models. It supports both field-level information extraction and table data extraction. Users can intuitively define the fields and table columns they need, tailoring the model to suit their specific document structures.
Response Schema
Key | Type | Description |
---|---|---|
status | str | The API processing status. "success or error " |
error | list[Dict of error details] | Error details. |
data | list[Dict[mapping_key,Data-Object]] | list of designed fields <key>:<value> . |
completion | str | The text completion outpul by LLM |
general_ocr | list[General-OCR-Object] | The OCR text page. sorted by ARTA or ARTATA |
table | list[dict[str, list]] | The designed table column outputs. |
Data-Object schema
Key | Type | Description |
---|---|---|
value | str | The designed field extracted from document. |
bboxes | list[list[list[int]]] | The list of four point bboxes. |
bboxes_norm | list[list[list[float]]] | The list of four point normalized bboxes. |
confidence | float | The confidence value. |
Response Definition
HTTP Status | Code | Message | Description |
---|---|---|---|
success | 200 | success | IDcard Fraud Detection API works successfully. |
Bad Request | 400 | Bad Request | Not a valid base64 image request (must be .jpg, .jpeg, .png, .pdf) or invalid size, request schema. The api can not retrieve information on any image. |
Unprocessable Content | 422 | Unprocessable Content | The request body is not valid. |
Request Body too large | 413 | Request entity too large | The request image base64 size is larger than the specified image size. |
Error | 500 | Internal server error | There is some error in the internal servers. |
Requests My-Template
POST https://apis.aigen.online/aiscript/mytemplate/v3
Requests Body
Name | Type | Description |
---|---|---|
image* | String | Base64 image encoded string |
mapping_key | Optional[Dict[i_key,o_key]] | The designed mapping_key to extacting information. i_key: Information key name, o_key: Output key name.example, {'First Name':"f_name", 'Phone No.': 'phone_no'} |
document_type | Optional[String] | Define the input document type or leave it empty. |
additional_prompt | Optional[String] | Input the text for explaination task and field characteristic to supervise LLM. |
table_key | Optional[Dict[str,str]] | The table column key you wants to extract informations. |
structured_output | Optional[Dict[str,str]] | Define the strucuted Json output. |
API Response Examples.
- 200: OK Success
- 400: Bad Request Bad Request
- 500: Internal Server Error Internal Server Error
View Response
{'status': 'success',
'error': [],
'data': [{'acc_no': {'value': '79898938',
'bboxes': [[[447, 504], [702, 504], [702, 551], [447, 551]]],
'bboxes_norm': [[[0.263, 0.1545],
[0.4127, 0.1545],
[0.4127, 0.169],
[0.263, 0.169]]],
'confidence': 0.9982},
'branch_code': {'value': '56-05',
'bboxes': [[[181, 504], [343, 504], [343, 553], [181, 553]]],
'bboxes_norm': [[[0.1065, 0.1545],
[0.2015, 0.1545],
[0.2015, 0.1695],
[0.1065, 0.1695]]],
'confidence': 0.9982},
'read_date': {'value': '02/01/65',
'bboxes': [[[186, 714], [352, 714], [352, 762], [186, 762]]],
'bboxes_norm': [[[0.1094, 0.219],
[0.2073, 0.219],
[0.2073, 0.2335],
[0.1094, 0.2335]]],
'confidence': 0.9982},
'current_read': {'value': '385',
'bboxes': [[[511, 718], [614, 718], [614, 763], [511, 763]]],
'bboxes_norm': [[[0.3004, 0.22],
[0.3608, 0.22],
[0.3608, 0.234],
[0.3004, 0.234]]],
'confidence': 0.9982},
'inv_date': {'value': '02/01/65',
'bboxes': [[[186, 714], [352, 714], [352, 762], [186, 762]]],
'bboxes_norm': [[[0.1094, 0.219],
[0.2073, 0.219],
[0.2073, 0.2335],
[0.1094, 0.2335]]],
'confidence': 0.9982},
'inv_no': {'value': '005619-2',
'bboxes': [[[1074, 494], [1252, 494], [1252, 541], [1074, 541]]],
'bboxes_norm': [[[0.6315, 0.1515],
[0.7361, 0.1515],
[0.7361, 0.166],
[0.6315, 0.166]]],
'confidence': 0.9982},
'name': {'value': 'นายธีระยุทธ แสงวุธ',
'bboxes': [[[80, 2353], [726, 2345], [726, 2410], [80, 2418]]],
'bboxes_norm': [[[0.047, 0.721],
[0.4271, 0.7185],
[0.4271, 0.7385],
[0.047, 0.741]]],
'confidence': 0.9698},
'totla_price': {'value': '211.86',
'bboxes': [[[1004, 1237], [1190, 1237], [1190, 1294], [1004, 1294]]],
'bboxes_norm': [[[0.5902, 0.379],
[0.6996, 0.379],
[0.6996, 0.3965],
[0.5902, 0.3965]]],
'confidence': 0.9982},
'passport_no': None,
'pob': None}],
'completion': ['{\n "account no.": "79898938",\n "branch code": "56-05",\n "current read date": "02/01/65",\n "current reading": "385",\n "invince date": "02/01/65",\n "invoice no.": "005619-2",\n "name": "นายธีระยุทธ แสงวุธ",\n "passport no": null,\n "place of birth": null,\n "total price": "211.86"\n}',
'{\n "account no": ["79898938"],\n "branch": ["56-05"]\n}'],
'general_ocr': [{'bboxes': [{'bbox': [[251, 16],
[895, 17],
[895, 61],
[251, 60]],
'bbox_norm': [[0.2409, 0.008],
[0.8589, 0.0085],
[0.8589, 0.0305],
[0.2409, 0.03]],
'char_pos_norm': [0.0044,
0.0174,
0.0261,
0.0348,
0.0522,
0.0609,
0.074,
0.0914,
0.1001,
0.1175,
0.1305,
0.1436,
0.1566,
0.1697,
0.1827,
0.1914,
0.2001,
0.2088,
0.2219,
0.2349,
0.2436,
0.248,
0.261,
0.2654,
0.2741,
0.2871,
0.2958,
0.3002,
0.3132,
0.3263,
0.335,
0.348,
0.3654,
0.3741,
0.3828,
0.3872,
0.3959,
0.4046,
0.4176,
0.4307,
0.4481,
0.4568,
0.4698,
0.4872],
'text': 'การประปานครหลวง ใบแจ้งค่าน้ำประปา ( INVOICE)',
'confidence': 0.9331},
{'bbox': [[258, 70], [768, 70], [768, 98], [258, 98]],
'bbox_norm': [[0.2476, 0.035],
[0.737, 0.035],
[0.737, 0.049],
[0.2476, 0.049]],
'char_pos_norm': [0.0,
0.0205,
0.0342,
0.0444,
0.0615,
0.0786,
0.0957,
0.1128,
0.1265,
0.1367,
0.147,
0.1641,
0.1777,
0.1846,
0.2085,
0.2256,
0.2358,
0.2529,
0.27,
0.2905,
0.3076,
0.3247,
0.3384,
0.3521,
0.3623,
0.3794,
0.3965,
0.4067,
0.4273,
0.4443,
0.4614,
0.4683,
0.4785],
'text': 'METROPOLITAN WATERWORKS AUTHORITY',
'confidence': 0.9904},
{'bbox': [[252, 108], [852, 106], [852, 140], [252, 141]],
'bbox_norm': [[0.2418, 0.054],
[0.8177, 0.053],
[0.8177, 0.07],
[0.2418, 0.0705]],
'char_pos_norm': [0.0036,
0.0145,
0.0218,
0.0291,
0.0363,
0.0436,
0.0508,
0.0545,
0.069,
0.0872,
0.0981,
0.1053,
0.1235,
0.138,
0.1562,
0.1634,
0.1743,
0.1816,
0.1888,
0.1997,
0.2215,
0.2361,
0.2433,
0.2578,
0.2687,
0.276,
0.2796,
0.2833,
0.2905,
0.2978,
0.3123,
0.3268,
0.3414,
0.3523,
0.3632,
0.3741,
0.385,
0.4031,
0.4176,
0.4322,
0.4431,
0.4503,
0.4612,
0.4685,
0.4757,
0.4866],
'text': 'http://www.mwgco.th E-mail : [email protected]',
'confidence': 0.9145},
{'bbox': [[914, 133], [982, 133], [982, 164], [914, 164]],
'bbox_norm': [[0.8772, 0.0665],
[0.9424, 0.0665],
[0.9424, 0.082],
[0.8772, 0.082]],
'char_pos_norm': [0.0284, 0.1135, 0.1987, 0.2554, 0.369],
'text': '01/65',
'confidence': 0.9982},
{'bbox': [[311, 134], [582, 132], [582, 161], [311, 164]],
'bbox_norm': [[0.2985, 0.067],
[0.5585, 0.066],
[0.5585, 0.0805],
[0.2985, 0.082]],
'char_pos_norm': [0.0074,
0.0368,
0.0735,
0.0956,
0.1323,
0.1397,
0.1544,
0.1838,
0.1985,
0.2205,
0.2279,
0.2573,
0.2867,
0.3014,
0.3235,
0.3455,
0.3749,
0.3823,
0.4117,
0.4337,
0.4631],
'text': 'มหาสวัสดิ 02-448-0734',
'confidence': 0.9919},
{'bbox': [[62, 145], [228, 145], [228, 170], [62, 170]],
'bbox_norm': [[0.0595, 0.0725],
[0.2188, 0.0725],
[0.2188, 0.085],
[0.0595, 0.085]],
'char_pos_norm': [0.0094,
0.0375,
0.0656,
0.0938,
0.1313,
0.1594,
0.1875,
0.225,
0.2438,
0.2813,
0.3188,
0.3563,
0.3938,
0.4313,
0.4594],
'text': 'การประปายครหลวง',
'confidence': 0.9175},
{'bbox': [[756, 148], [891, 148], [891, 182], [756, 182]],
'bbox_norm': [[0.7255, 0.074],
[0.8551, 0.074],
[0.8551, 0.091],
[0.7255, 0.091]],
'char_pos_norm': [0.0,
0.0627,
0.0941,
0.1725,
0.2195,
0.2822,
0.3136,
0.3293,
0.3763,
0.4233],
'text': 'ประจำเดือน',
'confidence': 0.9783},
{'bbox': [[254, 158], [311, 158], [311, 184], [254, 184]],
'bbox_norm': [[0.2438, 0.079],
[0.2985, 0.079],
[0.2985, 0.092],
[0.2438, 0.092]],
'char_pos_norm': [0.0284, 0.142, 0.2556, 0.3976],
'text': 'สาขา',
'confidence': 0.9982},
{'bbox': [[260, 169], [331, 169], [331, 202], [260, 202]],
'bbox_norm': [[0.2495, 0.0845],
[0.3177, 0.0845],
[0.3177, 0.101],
[0.2495, 0.101]],
'char_pos_norm': [0.0289, 0.1157, 0.2026, 0.2894, 0.4051],
'text': '00037',
'confidence': 0.9982},
{'bbox': [[637, 232], [804, 229], [805, 267], [638, 270]],
'bbox_norm': [[0.6113, 0.116],
[0.7716, 0.1145],
[0.7726, 0.1335],
[0.6123, 0.135]],
'char_pos_norm': [0.0,
0.0304,
0.076,
0.1215,
0.1367,
0.1519,
0.1671,
0.2127,
0.2279,
0.2583,
0.3039,
0.3191,
0.3495,
0.3798,
0.4102,
0.4406],
'text': 'เลขที่แจ้งค่าน้ำ',
'confidence': 0.9871},
{'bbox': [[825, 233], [983, 230], [984, 270], [825, 273]],
'bbox_norm': [[0.7917, 0.1165],
[0.9434, 0.115],
[0.9443, 0.135],
[0.7917, 0.1365]],
'char_pos_norm': [0.0168,
0.0337,
0.0505,
0.101,
0.1179,
0.1347,
0.1684,
0.202,
0.2189,
0.2526,
0.3031,
0.3199,
0.3536,
0.3872,
0.4041,
0.4378],
'text': 'วันที่แจ้งค่าน้ำ',
'confidence': 0.9726},
{'bbox': [[107, 235], [216, 235], [216, 265], [107, 265]],
'bbox_norm': [[0.1027, 0.1175],
[0.2073, 0.1175],
[0.2073, 0.1325],
[0.1027, 0.1325]],
'char_pos_norm': [0.0171,
0.0857,
0.1371,
0.2056,
0.2742,
0.3084,
0.3427,
0.4112],
'text': 'สาขา-เขต',
'confidence': 0.9871},
{'bbox': [[263, 237], [425, 234], [426, 274], [264, 277]],
'bbox_norm': [[0.2524, 0.1185],
[0.4079, 0.117],
[0.4088, 0.137],
[0.2534, 0.1385]],
'char_pos_norm': [0.0164,
0.0493,
0.0985,
0.115,
0.1314,
0.1807,
0.2135,
0.2628,
0.2792,
0.2956,
0.3285,
0.3613,
0.3777,
0.4106,
0.4434,
0.4599],
'text': 'ทะเบียนผู้ใช้น้ำ',
'confidence': 0.9953},
{'bbox': [[455, 238], [612, 238], [612, 273], [455, 273]],
'bbox_norm': [[0.4367, 0.119],
[0.5873, 0.119],
[0.5873, 0.1365],
[0.4367, 0.1365]],
'char_pos_norm': [0.0,
0.0139,
0.0416,
0.0694,
0.1249,
0.1804,
0.2221,
0.2498,
0.2915,
0.3331,
0.3747,
0.4025,
0.4302],
'text': 'เส้นทาง-ลำดับ',
'confidence': 0.9982},
{'bbox': [[111, 265], [210, 265], [210, 295], [111, 295]],
'bbox_norm': [[0.1065, 0.1325],
[0.2015, 0.1325],
[0.2015, 0.1475],
[0.1065, 0.1475]],
'char_pos_norm': [0.0,
0.0377,
0.1132,
0.1698,
0.2453,
0.3019,
0.3962,
0.4716],
'text': '(Branch)',
'confidence': 0.9982},
{'bbox': [[649, 271], [791, 271], [791, 301], [649, 301]],
'bbox_norm': [[0.6228, 0.1355],
[0.7591, 0.1355],
[0.7591, 0.1505],
[0.6228, 0.1505]],
'char_pos_norm': [0.0,
0.0263,
0.0526,
0.0921,
0.1315,
0.1841,
0.2104,
0.2631,
0.3025,
0.3288,
0.3814,
0.434,
0.4603],
'text': '(Invoice no.)',
'confidence': 0.9982},
{'bbox': [[829, 271], [984, 271], [984, 297], [829, 297]],
'bbox_norm': [[0.7956, 0.1355],
[0.9443, 0.1355],
[0.9443, 0.1485],
[0.7956, 0.1485]],
'char_pos_norm': [0.0104,
0.0313,
0.0731,
0.1149,
0.1671,
0.188,
0.2297,
0.2715,
0.2924,
0.3446,
0.3968,
0.4177,
0.4699],
'text': 'Invoice date)',
'confidence': 0.9982},
{'bbox': [[491, 273], [574, 273], [574, 299], [491, 299]],
'bbox_norm': [[0.4712, 0.1365],
[0.5509, 0.1365],
[0.5509, 0.1495],
[0.4712, 0.1495]],
'char_pos_norm': [0.0, 0.039, 0.1365, 0.2145, 0.312, 0.351, 0.4485],
'text': '(Route)',
'confidence': 0.9982},
{'bbox': [[271, 277], [419, 277], [419, 302], [271, 302]],
'bbox_norm': [[0.2601, 0.1385],
[0.4021, 0.1385],
[0.4021, 0.151],
[0.2601, 0.151]],
'char_pos_norm': [0.0105,
0.0631,
0.1052,
0.1577,
0.2103,
0.2629,
0.305,
0.3365,
0.3576,
0.3996,
0.4522,
0.4838],
'text': 'Account no.)',
'confidence': 0.9953},
{'bbox': [[658, 303], [767, 303], [767, 332], [658, 332]],
'bbox_norm': [[0.6315, 0.1515],
[0.7361, 0.1515],
[0.7361, 0.166],
[0.6315, 0.166]],
'char_pos_norm': [0.0166,
0.0663,
0.1325,
0.1822,
0.265,
0.3147,
0.381,
0.4141],
'text': '005619-2',
'confidence': 0.9982},
{'bbox': [[476, 305], [567, 305], [567, 335], [476, 335]],
'bbox_norm': [[0.4568, 0.1525],
[0.5441, 0.1525],
[0.5441, 0.1675],
[0.4568, 0.1675]],
'char_pos_norm': [0.0205, 0.0821, 0.1437, 0.2258, 0.2873, 0.3489, 0.431],
'text': '084-127',
'confidence': 0.9982},
{'bbox': [[821, 307], [987, 303], [988, 334], [821, 338]],
'bbox_norm': [[0.7879, 0.1535],
[0.9472, 0.1515],
[0.9482, 0.167],
[0.7879, 0.169]],
'char_pos_norm': [0.0,
0.0391,
0.0783,
0.0913,
0.1435,
0.1827,
0.1957,
0.2479,
0.274,
0.3001,
0.3392,
0.3914,
0.4175,
0.4436],
'text': '02/01/65 08:57',
'confidence': 0.9953},
{'bbox': [[111, 309], [210, 309], [210, 339], [111, 339]],
'bbox_norm': [[0.1065, 0.1545],
[0.2015, 0.1545],
[0.2015, 0.1695],
[0.1065, 0.1695]],
'char_pos_norm': [0.0189, 0.0943, 0.1887, 0.283, 0.3773],
'text': '56-05',
'confidence': 0.9982},
{'bbox': [[274, 309], [430, 309], [430, 338], [274, 338]],
'bbox_norm': [[0.263, 0.1545],
[0.4127, 0.1545],
[0.4127, 0.169],
[0.263, 0.169]],
'char_pos_norm': [0.0,
0.0463,
0.1042,
0.1736,
0.2315,
0.3009,
0.3588,
0.4166],
'text': '79898938',
'confidence': 0.9982},
{'bbox': [[77, 362], [238, 359], [239, 403], [78, 406]],
'bbox_norm': [[0.0739, 0.181],
[0.2284, 0.1795],
[0.2294, 0.2015],
[0.0749, 0.203]],
'char_pos_norm': [0.0181,
0.0361,
0.0542,
0.1084,
0.1264,
0.1445,
0.1626,
0.1987,
0.2167,
0.2529,
0.3071,
0.3432,
0.3793,
0.3974,
0.4154,
0.4335,
0.4516,
0.4696],
'text': 'วันที่อ่านครั้งนี้',
'confidence': 0.9953},
{'bbox': [[653, 363], [787, 363], [787, 398], [653, 398]],
'bbox_norm': [[0.6267, 0.1815],
[0.7553, 0.1815],
[0.7553, 0.199],
[0.6267, 0.199]],
'char_pos_norm': [0.0163,
0.0488,
0.0976,
0.1626,
0.1951,
0.2602,
0.3252,
0.374,
0.439],
'text': 'เลขในมาตร',
'confidence': 0.9982},
{'bbox': [[833, 365], [976, 354], [979, 395], [837, 406]],
'bbox_norm': [[0.7994, 0.1825],
[0.9367, 0.177],
[0.9395, 0.1975],
[0.8033, 0.203]],
'char_pos_norm': [0.0222,
0.0665,
0.1109,
0.1774,
0.2217,
0.2883,
0.3326,
0.3548,
0.3991,
0.4213,
0.4656],
'text': 'จำนวนน้ำใช้',
'confidence': 0.9982},
{'bbox': [[278, 366], [412, 366], [412, 400], [278, 400]],
'bbox_norm': [[0.2668, 0.183],
[0.3954, 0.183],
[0.3954, 0.2],
[0.2668, 0.2]],
'char_pos_norm': [0.0158,
0.0474,
0.0948,
0.158,
0.1896,
0.2527,
0.3317,
0.3791,
0.4423],
'text': 'เลขในมาตร',
'confidence': 0.9982},
{'bbox': [[446, 368], [620, 368], [620, 403], [446, 403]],
'bbox_norm': [[0.428, 0.184],
[0.595, 0.184],
[0.595, 0.2015],
[0.428, 0.2015]],
'char_pos_norm': [0.0125,
0.025,
0.0376,
0.0877,
0.1002,
0.1127,
0.1252,
0.1503,
0.1753,
0.2004,
0.2505,
0.3006,
0.3131,
0.3256,
0.3381,
0.3632,
0.3757,
0.4007,
0.4383],
'text': 'วันที่อ่านครั้งก่อน',
'confidence': 0.9803},
{'bbox': [[639, 399], [806, 399], [806, 424], [639, 424]],
'bbox_norm': [[0.6132, 0.1995],
[0.7735, 0.1995],
[0.7735, 0.212],
[0.6132, 0.212]],
'char_pos_norm': [0.0093,
0.0373,
0.0652,
0.0932,
0.1305,
0.1491,
0.1771,
0.2144,
0.233,
0.2516,
0.2796,
0.3169,
0.3448,
0.3914,
0.4101,
0.438,
0.4753],
'text': 'Previous reading)',
'confidence': 0.9887},
{'bbox': [[827, 399], [987, 396], [988, 425], [828, 428]],
'bbox_norm': [[0.7937, 0.1995],
[0.9472, 0.198],
[0.9482, 0.2125],
[0.7946, 0.214]],
'char_pos_norm': [0.0,
0.0247,
0.0742,
0.1237,
0.1609,
0.198,
0.2351,
0.297,
0.3341,
0.3588,
0.3836,
0.4207,
0.4702],
'text': '(Consumption)',
'confidence': 0.9982},
{'bbox': [[85, 400], [237, 400], [237, 430], [85, 430]],
'bbox_norm': [[0.0816, 0.2],
[0.2274, 0.2],
[0.2274, 0.215],
[0.0816, 0.215]],
'char_pos_norm': [0.0,
0.0246,
0.0737,
0.1229,
0.1597,
0.1843,
0.2212,
0.2703,
0.2949,
0.3072,
0.3563,
0.4055,
0.4301,
0.4669],
'text': '(Current date)',
'confidence': 0.9982},
{'bbox': [[265, 402], [429, 402], [429, 427], [265, 427]],
'bbox_norm': [[0.2543, 0.201],
[0.4117, 0.201],
[0.4117, 0.2135],
[0.2543, 0.2135]],
'char_pos_norm': [0.0095,
0.0475,
0.0854,
0.1139,
0.1329,
0.1708,
0.2088,
0.2278,
0.2467,
0.2657,
0.3037,
0.3417,
0.3891,
0.4081,
0.446,
0.484],
'text': 'Current reading)',
'confidence': 0.9982},
{'bbox': [[452, 402], [619, 402], [619, 431], [452, 431]],
'bbox_norm': [[0.4338, 0.201],
[0.594, 0.201],
[0.594, 0.2155],
[0.4338, 0.2155]],
'char_pos_norm': [0.0,
0.0216,
0.0649,
0.0865,
0.1297,
0.1622,
0.1838,
0.2162,
0.2595,
0.2919,
0.3135,
0.3568,
0.4,
0.4216,
0.4541],
'text': '(Previous date)',
'confidence': 0.9982},
{'bbox': [[872, 432], [923, 432], [923, 467], [872, 467]],
'bbox_norm': [[0.8369, 0.216],
[0.8858, 0.216],
[0.8858, 0.2335],
[0.8369, 0.2335]],
'char_pos_norm': [0.0427, 0.2136],
'text': '20',
'confidence': 0.9982},
{'bbox': [[114, 438], [216, 438], [216, 467], [114, 467]],
'bbox_norm': [[0.1094, 0.219],
[0.2073, 0.219],
[0.2073, 0.2335],
[0.1094, 0.2335]],
'char_pos_norm': [0.0177,
0.0885,
0.1416,
0.177,
0.2478,
0.3186,
0.3363,
0.4248],
'text': '02/01/65',
'confidence': 0.9982},
{'bbox': [[691, 438], [738, 438], [738, 467], [691, 467]],
'bbox_norm': [[0.6631, 0.219],
[0.7083, 0.219],
[0.7083, 0.2335],
[0.6631, 0.2335]],
'char_pos_norm': [0.0384, 0.1537, 0.3073],
'text': '365',
'confidence': 0.9982},
{'bbox': [[484, 439], [586, 439], [586, 468], [484, 468]],
'bbox_norm': [[0.4645, 0.2195],
[0.5624, 0.2195],
[0.5624, 0.234],
[0.4645, 0.234]],
'char_pos_norm': [0.0177,
0.0708,
0.1416,
0.177,
0.2301,
0.3009,
0.3363,
0.4071],
'text': '02/12/64',
'confidence': 0.9982},
{'bbox': [[313, 440], [376, 440], [376, 468], [313, 468]],
'bbox_norm': [[0.3004, 0.22],
[0.3608, 0.22],
[0.3608, 0.234],
[0.3004, 0.234]],
'char_pos_norm': [0.0277, 0.166, 0.3044],
'text': '385',
'confidence': 0.9982},
{'bbox': [[406, 495], [464, 495], [464, 521], [406, 521]],
'bbox_norm': [[0.3896, 0.2475],
[0.4453, 0.2475],
[0.4453, 0.2605],
[0.3896, 0.2605]],
'char_pos_norm': [0.0279, 0.1395, 0.2233, 0.307],
'text': '0.15',
'confidence': 0.9982},
{'bbox': [[648, 495], [721, 489], [724, 521], [651, 527]],
'bbox_norm': [[0.6219, 0.2475],
[0.6919, 0.2445],
[0.6948, 0.2605],
[0.6248, 0.2635]],
'char_pos_norm': [0.0311, 0.1245, 0.1868, 0.3113],
'text': '3.00',
'confidence': 0.9982},
{'bbox': [[77, 503], [180, 503], [180, 537], [77, 537]],
'bbox_norm': [[0.0739, 0.2515],
[0.1727, 0.2515],
[0.1727, 0.2685],
[0.0739, 0.2685]],
'char_pos_norm': [0.0206,
0.0617,
0.0822,
0.1439,
0.2055,
0.2261,
0.2877,
0.3288,
0.3699],
'text': 'ค่าน้ำดิบ',
'confidence': 0.9919},
{'bbox': [[191, 507], [380, 507], [380, 540], [191, 540]],
'bbox_norm': [[0.1833, 0.2535],
[0.3647, 0.2535],
[0.3647, 0.27],
[0.1833, 0.27]],
'char_pos_norm': [0.0,
0.0217,
0.0435,
0.0652,
0.1087,
0.1522,
0.1848,
0.2283,
0.25,
0.2718,
0.2935,
0.337,
0.3805,
0.4022,
0.4457],
'text': '(ลูกบาศก์เมตรละ',
'confidence': 0.9823},
{'bbox': [[461, 509], [529, 509], [529, 540], [461, 540]],
'bbox_norm': [[0.4424, 0.2545],
[0.5077, 0.2545],
[0.5077, 0.27],
[0.4424, 0.27]],
'char_pos_norm': [0.0851, 0.1987, 0.2838, 0.4257],
'text': 'บาท)',
'confidence': 0.9953},
{'bbox': [[768, 526], [995, 520], [996, 558], [769, 564]],
'bbox_norm': [[0.737, 0.263],
[0.9549, 0.26],
[0.9559, 0.279],
[0.738, 0.282]],
'char_pos_norm': [0.012,
0.036,
0.0481,
0.0841,
0.1081,
0.1201,
0.1322,
0.1562,
0.1802,
0.1922,
0.2283,
0.2523,
0.2643,
0.2763,
0.2883,
0.3124,
0.3364,
0.3724,
0.3845,
0.4205,
0.4565],
'text': 'ประวัติการใช้น้ำประปา',
'confidence': 0.9254},
{'bbox': [[304, 536], [411, 536], [411, 570], [304, 570]],
'bbox_norm': [[0.2917, 0.268],
[0.3944, 0.268],
[0.3944, 0.285],
[0.2917, 0.285]],
'char_pos_norm': [0.0198, 0.1187, 0.1978, 0.2374, 0.3363, 0.4352],
'text': 'R1(00)',
'confidence': 0.9665},
{'bbox': [[614, 537], [721, 534], [722, 564], [615, 567]],
'bbox_norm': [[0.5893, 0.2685],
[0.6919, 0.267],
[0.6929, 0.282],
[0.5902, 0.2835]],
'char_pos_norm': [0.019, 0.0951, 0.1712, 0.2473, 0.3044, 0.3805],
'text': '170.00',
'confidence': 0.9982},
{'bbox': [[76, 542], [213, 547], [212, 588], [74, 583]],
'bbox_norm': [[0.0729, 0.271],
[0.2044, 0.2735],
[0.2035, 0.294],
[0.071, 0.2915]],
'char_pos_norm': [0.0206,
0.0412,
0.0824,
0.1236,
0.1648,
0.1854,
0.2266,
0.2884,
0.309,
0.3709,
0.4533],
'text': 'ค่าน้ำประปา',
'confidence': 0.9953},
{'bbox': [[768, 565], [997, 560], [997, 589], [768, 595]],
'bbox_norm': [[0.737, 0.2825],
[0.9568, 0.28],
[0.9568, 0.2945],
[0.737, 0.2975]],
'char_pos_norm': [0.0,
0.019,
0.0476,
0.0761,
0.1047,
0.1237,
0.1618,
0.1998,
0.2284,
0.2379,
0.2569,
0.2759,
0.3045,
0.3235,
0.3616,
0.3711,
0.3901,
0.4092,
0.4377,
0.4567,
0.4758],
'text': '(Consumption History)',
'confidence': 0.9953},
{'bbox': [[651, 584], [723, 584], [723, 616], [651, 616]],
'bbox_norm': [[0.6248, 0.292],
[0.6939, 0.292],
[0.6939, 0.308],
[0.6248, 0.308]],
'char_pos_norm': [0.0277, 0.1107, 0.1937, 0.332],
'text': '0.00',
'confidence': 0.9746},
{'bbox': [[76, 594], [160, 594], [160, 626], [76, 626]],
'bbox_norm': [[0.0729, 0.297],
[0.1536, 0.297],
[0.1536, 0.313],
[0.0729, 0.313]],
'char_pos_norm': [0.0237, 0.0474, 0.0949, 0.1897, 0.2846, 0.3795],
'text': 'ส่วนลด',
'confidence': 0.897},
{'bbox': [[880, 613], [1003, 600], [1008, 641], [884, 654]],
'bbox_norm': [[0.8445, 0.3065],
[0.9626, 0.3],
[0.9674, 0.3205],
[0.8484, 0.327]],
'char_pos_norm': [0.0263,
0.0525,
0.1313,
0.1839,
0.2101,
0.2889,
0.3414,
0.3677,
0.394,
0.4202,
0.4465],
'text': 'จำนวนน้ำใข้',
'confidence': 0.9416},
{'bbox': [[762, 614], [878, 607], [880, 644], [764, 651]],
'bbox_norm': [[0.7313, 0.307],
[0.8426, 0.3035],
[0.8445, 0.322],
[0.7332, 0.3255]],
'char_pos_norm': [0.0232,
0.0464,
0.0696,
0.1161,
0.1393,
0.1625,
0.1857,
0.2321,
0.2554,
0.3018,
0.3714,
0.4179,
0.4411],
'text': 'วันที่อ่านน้ำ',
'confidence': 0.9887},
{'bbox': [[632, 632], [723, 632], [723, 664], [632, 664]],
'bbox_norm': [[0.6065, 0.316],
[0.6939, 0.316],
[0.6939, 0.332],
[0.6065, 0.332]],
'char_pos_norm': [0.0219, 0.1095, 0.2189, 0.2627, 0.3722],
'text': '25.00',
'confidence': 0.9982},
{'bbox': [[72, 633], [277, 636], [276, 674], [72, 671]],
'bbox_norm': [[0.0691, 0.3165],
[0.2658, 0.318],
[0.2649, 0.337],
[0.0691, 0.3355]],
'char_pos_norm': [0.0125,
0.0374,
0.0498,
0.0747,
0.1121,
0.137,
0.1494,
0.1868,
0.2241,
0.249,
0.2864,
0.3113,
0.3486,
0.3735,
0.386,
0.4109,
0.4482],
'text': 'ค่าบริการรายเดือน',
'confidence': 0.9919},
{'bbox': [[898, 648], [1003, 648], [1003, 672], [898, 672]],
'bbox_norm': [[0.8618, 0.324],
[0.9626, 0.324],
[0.9626, 0.336],
[0.8618, 0.336]],
'char_pos_norm': [0.0,
0.0285,
0.0854,
0.1281,
0.1708,
0.2277,
0.2988,
0.3415,
0.37,
0.3984,
0.4411],
'text': 'Consumption',
'confidence': 0.9953},
{'bbox': [[794, 650], [855, 650], [855, 677], [794, 677]],
'bbox_norm': [[0.762, 0.325],
[0.8205, 0.325],
[0.8205, 0.3385],
[0.762, 0.3385]],
'char_pos_norm': [0.0, 0.0551, 0.1653, 0.248, 0.3031, 0.3858],
'text': '(Date)',
'confidence': 0.9982},
{'bbox': [[942, 677], [982, 677], [982, 707], [942, 707]],
'bbox_norm': [[0.904, 0.3385],
[0.9424, 0.3385],
[0.9424, 0.3535],
[0.904, 0.3535]],
'char_pos_norm': [0.0467, 0.1868],
'text': '20',
'confidence': 0.9982},
{'bbox': [[620, 681], [725, 681], [725, 710], [620, 710]],
'bbox_norm': [[0.595, 0.3405],
[0.6958, 0.3405],
[0.6958, 0.355],
[0.595, 0.355]],
'char_pos_norm': [0.0, 0.0688, 0.1548, 0.2407, 0.2923, 0.3783],
'text': '198.00',
'confidence': 0.9982},
{'bbox': [[773, 681], [883, 678], [884, 709], [774, 712]],
'bbox_norm': [[0.7418, 0.3405],
[0.8474, 0.339],
[0.8484, 0.3545],
[0.7428, 0.356]],
'char_pos_norm': [0.0191,
0.0953,
0.1526,
0.1907,
0.2288,
0.3051,
0.3242,
0.4005],
'text': '02/10/64',
'confidence': 0.9982},
{'bbox': [[73, 691], [292, 691], [292, 725], [73, 725]],
'bbox_norm': [[0.0701, 0.3455],
[0.2802, 0.3455],
[0.2802, 0.3625],
[0.0701, 0.3625]],
'char_pos_norm': [0.0097,
0.0387,
0.0773,
0.116,
0.1353,
0.145,
0.1643,
0.203,
0.2126,
0.232,
0.2706,
0.3093,
0.3286,
0.348,
0.3866,
0.4253,
0.4543,
0.4736],
'text': 'ยอดเงินก่อนคิดภาษี',
'confidence': 0.9982},
{'bbox': [[946, 713], [984, 713], [984, 743], [946, 743]],
'bbox_norm': [[0.9079, 0.3565],
[0.9443, 0.3565],
[0.9443, 0.3715],
[0.9079, 0.3715]],
'char_pos_norm': [0.0492, 0.1475],
'text': '18',
'confidence': 0.9982},
{'bbox': [[777, 717], [883, 717], [883, 747], [777, 747]],
'bbox_norm': [[0.7457, 0.3585],
[0.8474, 0.3585],
[0.8474, 0.3735],
[0.7457, 0.3735]],
'char_pos_norm': [0.0176,
0.0705,
0.141,
0.1938,
0.2467,
0.2995,
0.3348,
0.4053],
'text': '02/11/64',
'confidence': 0.9982},
{'bbox': [[638, 723], [726, 723], [726, 754], [638, 754]],
'bbox_norm': [[0.6123, 0.3615],
[0.6967, 0.3615],
[0.6967, 0.377],
[0.6123, 0.377]],
'char_pos_norm': [0.0219, 0.0877, 0.1974, 0.2412, 0.3509],
'text': '13.86',
'confidence': 0.9982},
{'bbox': [[343, 726], [387, 726], [387, 757], [343, 757]],
'bbox_norm': [[0.3292, 0.363],
[0.3714, 0.363],
[0.3714, 0.3785],
[0.3292, 0.3785]],
'char_pos_norm': [0.0439, 0.2193],
'text': '7%',
'confidence': 0.9982},
{'bbox': [[71, 734], [236, 734], [236, 774], [71, 774]],
'bbox_norm': [[0.0681, 0.367],
[0.2265, 0.367],
[0.2265, 0.387],
[0.0681, 0.387]],
'char_pos_norm': [0.0151,
0.0604,
0.1056,
0.1207,
0.166,
0.1811,
0.2264,
0.2717,
0.2868,
0.3169,
0.3471,
0.3773,
0.3924,
0.4075,
0.4377],
'text': 'ภาษีมูลค่าเพิ่ม',
'confidence': 0.9982},
{'bbox': [[946, 747], [984, 747], [984, 778], [946, 778]],
'bbox_norm': [[0.9079, 0.3735],
[0.9443, 0.3735],
[0.9443, 0.389],
[0.9079, 0.389]],
'char_pos_norm': [0.0508, 0.2032],
'text': '19',
'confidence': 0.9982},
{'bbox': [[777, 755], [882, 748], [884, 779], [779, 785]],
'bbox_norm': [[0.7457, 0.3775],
[0.8464, 0.374],
[0.8484, 0.3895],
[0.7476, 0.3925]],
'char_pos_norm': [0.0215,
0.0861,
0.1507,
0.1938,
0.2368,
0.3014,
0.3444,
0.409],
'text': '02/12/64',
'confidence': 0.9982},
{'bbox': [[615, 758], [729, 758], [729, 793], [615, 793]],
'bbox_norm': [[0.5902, 0.379],
[0.6996, 0.379],
[0.6996, 0.3965],
[0.5902, 0.3965]],
'char_pos_norm': [0.0191, 0.0956, 0.1911, 0.2485, 0.3058, 0.3823],
'text': '211.86',
'confidence': 0.9982},
{'bbox': [[72, 779], [157, 779], [157, 811], [72, 811]],
'bbox_norm': [[0.0691, 0.3895],
[0.1507, 0.3895],
[0.1507, 0.4055],
[0.0691, 0.4055]],
'char_pos_norm': [0.0234, 0.0703, 0.1406, 0.2578, 0.3047, 0.3281, 0.375],
'text': 'รวมเงิน',
'confidence': 0.9982},
{'bbox': [[655, 816], [729, 812], [730, 843], [656, 846]],
'bbox_norm': [[0.6286, 0.408],
[0.6996, 0.406],
[0.7006, 0.4215],
[0.6296, 0.423]],
'char_pos_norm': [0.0282, 0.1411, 0.1976, 0.3105],
'text': '0.00',
'confidence': 0.9982},
{'bbox': [[68, 823], [243, 826], [242, 862], [68, 859]],
'bbox_norm': [[0.0653, 0.4115],
[0.2332, 0.413],
[0.2322, 0.431],
[0.0653, 0.4295]],
'char_pos_norm': [0.0139,
0.0416,
0.0555,
0.0971,
0.1249,
0.1526,
0.1804,
0.2081,
0.222,
0.2497,
0.3052,
0.3469,
0.3746,
0.4024,
0.444],
'text': 'ค่าน้ำเดือนก่อน',
'confidence': 0.9803},
{'bbox': [[335, 823], [357, 823], [357, 842], [335, 842]],
'bbox_norm': [[0.3215, 0.4115],
[0.3426, 0.4115],
[0.3426, 0.421],
[0.3215, 0.421]],
'char_pos_norm': [0.0538],
'text': 'O',
'confidence': 0.9847},
{'bbox': [[866, 828], [882, 828], [882, 840], [866, 840]],
'bbox_norm': [[0.8311, 0.414],
[0.8464, 0.414],
[0.8464, 0.42],
[0.8311, 0.42]],
'char_pos_norm': [0.1401],
'text': 'พ',
'confidence': 0.9698},
{'bbox': [[399, 830], [456, 830], [456, 864], [399, 864]],
'bbox_norm': [[0.3829, 0.415],
[0.4376, 0.415],
[0.4376, 0.432],
[0.3829, 0.432]],
'char_pos_norm': [0.0, 0.0371, 0.1114, 0.1857, 0.2971],
'text': 'เดือน',
'confidence': 0.9823},
{'bbox': [[824, 831], [845, 831], [845, 850], [824, 850]],
'bbox_norm': [[0.7908, 0.4155],
[0.8109, 0.4155],
[0.8109, 0.425],
[0.7908, 0.425]],
'char_pos_norm': [],
'text': '',
'confidence': 0.9919},
{'bbox': [[943, 832], [950, 832], [950, 842], [943, 842]],
'bbox_norm': [[0.905, 0.416],
[0.9117, 0.416],
[0.9117, 0.421],
[0.905, 0.421]],
'char_pos_norm': [],
'text': '',
'confidence': 0.9919},
{'bbox': [[538, 869], [732, 875], [731, 910], [537, 904]],
'bbox_norm': [[0.5163, 0.4345],
[0.7025, 0.4375],
[0.7015, 0.455],
[0.5154, 0.452]],
'char_pos_norm': [0.1047,
0.144,
0.2094,
0.2618,
0.3142,
0.3534,
0.3796,
0.432],
'text': '**211.86',
'confidence': 0.9599},
{'bbox': [[71, 879], [358, 879], [358, 918], [71, 918]],
'bbox_norm': [[0.0681, 0.4395],
[0.3436, 0.4395],
[0.3436, 0.459],
[0.0681, 0.459]],
'char_pos_norm': [0.0085,
0.0254,
0.0508,
0.0846,
0.1015,
0.11,
0.1269,
0.1607,
0.1692,
0.1777,
0.1946,
0.2115,
0.2284,
0.2538,
0.2792,
0.3046,
0.3299,
0.3553,
0.3807,
0.3976,
0.4061,
0.423,
0.4399,
0.4484,
0.4568,
0.4738],
'text': 'รวมเงินที่ต้องชำระทั้งสิ้น',
'confidence': 0.9982},
{'bbox': [[69, 926], [220, 926], [220, 955], [69, 955]],
'bbox_norm': [[0.0662, 0.463],
[0.2111, 0.463],
[0.2111, 0.4775],
[0.0662, 0.4775]],
'char_pos_norm': [0.012,
0.0717,
0.1076,
0.1554,
0.2033,
0.2511,
0.2989,
0.3348,
0.3946,
0.4185,
0.4663],
'text': 'Grand Total',
'confidence': 0.9982},
{'bbox': [[826, 940], [851, 940], [851, 960], [826, 960]],
'bbox_norm': [[0.7927, 0.47],
[0.8167, 0.47],
[0.8167, 0.48],
[0.7927, 0.48]],
'char_pos_norm': [],
'text': '',
'confidence': 0.9919},
{'bbox': [[209, 952], [419, 949], [419, 989], [209, 992]],
'bbox_norm': [[0.2006, 0.476],
[0.4021, 0.4745],
[0.4021, 0.4945],
[0.2006, 0.496]],
'char_pos_norm': [0.0127,
0.051,
0.0892,
0.1275,
0.1657,
0.1912,
0.204,
0.2295,
0.2805,
0.3314,
0.3569,
0.4079,
0.4334],
'text': 'ชำระเงินภายใน',
'confidence': 0.9982},
{'bbox': [[578, 952], [733, 952], [733, 981], [578, 981]],
'bbox_norm': [[0.5547, 0.476],
[0.7035, 0.476],
[0.7035, 0.4905],
[0.5547, 0.4905]],
'char_pos_norm': [0.0116,
0.0582,
0.1281,
0.1747,
0.2563,
0.3028,
0.3494,
0.4193],
'text': '09/01/65',
'confidence': 0.955},
{'bbox': [[65, 970], [549, 962], [550, 1025], [66, 1032]],
'bbox_norm': [[0.0624, 0.485],
[0.5269, 0.481],
[0.5278, 0.5125],
[0.0633, 0.516]],
'char_pos_norm': [0.009,
0.027,
0.0359,
0.0539,
0.0629,
0.0719,
0.0809,
0.0988,
0.1078,
0.1258,
0.1348,
0.1438,
0.1528,
0.1617,
0.1707,
0.1797,
0.1887,
0.1977,
0.2157,
0.2246,
0.2336,
0.2426,
0.2606,
0.2696,
0.2786,
0.2875,
0.3055,
0.3145,
0.3235,
0.3325,
0.3414,
0.3594,
0.3684,
0.3864,
0.3954,
0.4043,
0.4133,
0.4313,
0.4403,
0.4493,
0.4583,
0.4762,
0.4852],
'text': 'Please pay tihe ourstutdimng antoumt bวันที',
'confidence': 0.8677},
{'bbox': [[792, 971], [991, 967], [992, 1000], [793, 1004]],
'bbox_norm': [[0.7601, 0.4855],
[0.9511, 0.4835],
[0.952, 0.5],
[0.761, 0.502]],
'char_pos_norm': [0.0115,
0.0461,
0.0921,
0.1152,
0.1612,
0.1843,
0.2188,
0.2534,
0.2879,
0.311,
0.357,
0.4031,
0.4492],
'text': 'QR Cross Bank',
'confidence': 0.9803},
{'bbox': [[30, 1214], [164, 1214], [164, 1245], [30, 1245]],
'bbox_norm': [[0.0288, 0.607],
[0.1574, 0.607],
[0.1574, 0.6225],
[0.0288, 0.6225]],
'char_pos_norm': [0.0144,
0.072,
0.1008,
0.1296,
0.1872,
0.2448,
0.2737,
0.3313,
0.3745,
0.4177],
'text': 'V. 40.01 A',
'confidence': 0.9314},
{'bbox': [[145, 1242], [913, 1235], [913, 1279], [145, 1286]],
'bbox_norm': [[0.1392, 0.621],
[0.8762, 0.6175],
[0.8762, 0.6395],
[0.1392, 0.643]],
'char_pos_norm': [0.0041,
0.0165,
0.0207,
0.0289,
0.0331,
0.0372,
0.0455,
0.0537,
0.062,
0.0661,
0.0703,
0.0786,
0.091,
0.0992,
0.1034,
0.1075,
0.1158,
0.1199,
0.124,
0.1282,
0.1364,
0.1488,
0.153,
0.1612,
0.1736,
0.1778,
0.1902,
0.1943,
0.1984,
0.2067,
0.215,
0.2232,
0.2315,
0.2398,
0.2439,
0.2522,
0.2563,
0.2646,
0.2687,
0.277,
0.2894,
0.2935,
0.3018,
0.3142,
0.3183,
0.3225,
0.3266,
0.3349,
0.339,
0.3431,
0.3514,
0.3597,
0.3679,
0.3721,
0.3804,
0.3886,
0.3969,
0.4052,
0.4134,
0.4176,
0.4217,
0.43,
0.4341,
0.4382,
0.4424,
0.4506,
0.4589,
0.4672,
0.4754,
0.4796,
0.4878],
'text': 'คำเตือน : กปน. ไม่มีนโยบายรับชำระค่าน้ำประปาที่บ้าน โปรดระวังผู้แอบอ้าง',
'confidence': 0.9396},
{'bbox': [[853, 1279], [1041, 1279], [1041, 1312], [853, 1312]],
'bbox_norm': [[0.8186, 0.6395],
[0.999, 0.6395],
[0.999, 0.656],
[0.8186, 0.656]],
'char_pos_norm': [0.0109,
0.0437,
0.0765,
0.1093,
0.153,
0.1748,
0.1967,
0.2295,
0.2841,
0.306,
0.3278,
0.3606,
0.4043,
0.459],
'text': 'ชำระผ่านตัวแทน',
'confidence': 0.9372},
{'bbox': [[45, 1287], [433, 1284], [433, 1331], [45, 1334]],
'bbox_norm': [[0.0432, 0.6435],
[0.4155, 0.642],
[0.4155, 0.6655],
[0.0432, 0.667]],
'char_pos_norm': [0.008,
0.0241,
0.0481,
0.0642,
0.0883,
0.1043,
0.1123,
0.1444,
0.1524,
0.1605,
0.1925,
0.2086,
0.2166,
0.2327,
0.2567,
0.2728,
0.2888,
0.3129,
0.337,
0.361,
0.369,
0.3851,
0.4172,
0.4413,
0.4573,
0.4733],
'text': 'ใบเสร็จรับเงิน/ใบกำกับภาษี',
'confidence': 0.9953},
{'bbox': [[464, 1316], [1041, 1316], [1041, 1355], [464, 1355]],
'bbox_norm': [[0.4453, 0.658],
[0.999, 0.658],
[0.999, 0.6775],
[0.4453, 0.6775]],
'char_pos_norm': [0.0,
0.0126,
0.0252,
0.0337,
0.0421,
0.0505,
0.0631,
0.0757,
0.0884,
0.101,
0.1178,
0.1262,
0.1304,
0.1347,
0.1431,
0.1557,
0.1599,
0.1683,
0.1725,
0.1809,
0.1894,
0.2062,
0.2188,
0.2314,
0.2399,
0.2483,
0.2609,
0.2693,
0.2777,
0.2946,
0.303,
0.3114,
0.324,
0.3282,
0.3324,
0.3366,
0.3451,
0.3577,
0.3619,
0.3703,
0.3787,
0.3871,
0.404,
0.4208,
0.4334,
0.4418,
0.4503,
0.4629,
0.4797,
0.4881],
'text': '400 ถ.ประชาชื่น ทุ่งสองห้อง หลักสี่ กรุงเทพฯ 10210',
'confidence': 0.9372},
{'bbox': [[47, 1327], [295, 1324], [296, 1359], [48, 1362]],
'bbox_norm': [[0.0451, 0.6635],
[0.2831, 0.662],
[0.2841, 0.6795],
[0.0461, 0.681]],
'char_pos_norm': [0.0095,
0.038,
0.0665,
0.095,
0.133,
0.152,
0.19,
0.228,
0.247,
0.285,
0.3135,
0.3515,
0.3895,
0.418,
0.4465],
'text': 'การประปานครหลวง',
'confidence': 0.9904},
{'bbox': [[47, 1363], [776, 1351], [776, 1391], [48, 1403]],
'bbox_norm': [[0.0451, 0.6815],
[0.7447, 0.6755],
[0.7447, 0.6955],
[0.0461, 0.7015]],
'char_pos_norm': [0.0044,
0.0178,
0.0266,
0.0355,
0.0444,
0.0488,
0.0577,
0.0711,
0.0844,
0.0933,
0.1021,
0.1155,
0.1243,
0.1288,
0.1332,
0.1421,
0.1465,
0.151,
0.1554,
0.1599,
0.1643,
0.1732,
0.1821,
0.1954,
0.1998,
0.2043,
0.2132,
0.2265,
0.2354,
0.2442,
0.2531,
0.2576,
0.2664,
0.2798,
0.2887,
0.2975,
0.3064,
0.3197,
0.3286,
0.3375,
0.3464,
0.3553,
0.3641,
0.3775,
0.3819,
0.3908,
0.3997,
0.4086,
0.4219,
0.4263,
0.4308,
0.4396,
0.4441,
0.4574,
0.4663,
0.4752,
0.484],
'text': 'หมายเลขประจำตัวผู้เสียภาษีอากร 0994000165463 สาขาที 00037',
'confidence': 0.9847},
{'bbox': [[47, 1400], [877, 1388], [878, 1431], [48, 1443]],
'bbox_norm': [[0.0451, 0.7],
[0.8417, 0.694],
[0.8426, 0.7155],
[0.0461, 0.7215]],
'char_pos_norm': [0.0041,
0.0124,
0.0206,
0.0288,
0.0371,
0.0412,
0.0494,
0.0536,
0.0618,
0.0659,
0.0742,
0.0824,
0.0865,
0.0989,
0.103,
0.1071,
0.1195,
0.1277,
0.1319,
0.136,
0.1442,
0.1525,
0.1607,
0.1648,
0.1731,
0.1813,
0.1937,
0.2019,
0.2101,
0.2184,
0.2266,
0.2307,
0.239,
0.2431,
0.2513,
0.2637,
0.2678,
0.272,
0.2843,
0.2926,
0.3008,
0.3132,
0.3173,
0.3296,
0.3379,
0.3461,
0.3544,
0.3626,
0.3667,
0.375,
0.3791,
0.3832,
0.3914,
0.3956,
0.4038,
0.4162,
0.4244,
0.4327,
0.4409,
0.4491,
0.4574,
0.4615,
0.4697,
0.478,
0.4862],
'text': 'สาขา 56 เขต 05 ทะเบียน 79898938 เลขที 5667454035 วันที 14/12/2564',
'confidence': 0.9462},
{'bbox': [[49, 1442], [445, 1437], [445, 1477], [49, 1482]],
'bbox_norm': [[0.047, 0.721],
[0.4271, 0.7185],
[0.4271, 0.7385],
[0.047, 0.741]],
'char_pos_norm': [0.0,
0.0071,
0.0141,
0.0283,
0.0424,
0.0495,
0.0566,
0.0707,
0.092,
0.099,
0.1132,
0.1344,
0.1486,
0.1556,
0.1627,
0.1839,
0.2122,
0.2405,
0.2547,
0.2688,
0.2759,
0.2901,
0.3113,
0.3254,
0.3396,
0.3467,
0.3679,
0.382,
0.3962,
0.4174,
0.4386,
0.4528,
0.4599,
0.474],
'text': 'ชื่อผู้ชำระเงิน นายธีระยุทธ แสงวุธ',
'confidence': 0.9698},
{'bbox': [[149, 1476], [725, 1467], [726, 1509], [150, 1519]],
'bbox_norm': [[0.143, 0.738],
[0.6958, 0.7335],
[0.6967, 0.7545],
[0.144, 0.7595]],
'char_pos_norm': [0.0056,
0.0168,
0.0281,
0.0393,
0.0505,
0.0561,
0.0673,
0.0785,
0.0842,
0.0898,
0.101,
0.1066,
0.1178,
0.1234,
0.1347,
0.1515,
0.1627,
0.1739,
0.1795,
0.1908,
0.202,
0.2076,
0.2188,
0.2356,
0.2469,
0.2581,
0.2637,
0.2861,
0.2918,
0.303,
0.3086,
0.3142,
0.3254,
0.331,
0.3423,
0.3479,
0.3591,
0.3647,
0.3703,
0.3815,
0.3984,
0.4152,
0.4208,
0.4376,
0.4432,
0.4489,
0.4601,
0.4713,
0.4825,
0.4881],
'text': '89/54 หมู่ 10 มบ.อินดีบางใหญ่ (2) ถ.เทิดพระเกียรติ',
'confidence': 0.9871},
{'bbox': [[49, 1483], [103, 1483], [103, 1519], [49, 1519]],
'bbox_norm': [[0.047, 0.7415],
[0.0988, 0.7415],
[0.0988, 0.7595],
[0.047, 0.7595]],
'char_pos_norm': [0.0415, 0.083, 0.1245, 0.166, 0.332, 0.3735, 0.415],
'text': 'ที่อยู่',
'confidence': 0.9823},
{'bbox': [[155, 1513], [689, 1508], [689, 1548], [155, 1553]],
'bbox_norm': [[0.1488, 0.7565],
[0.6612, 0.754],
[0.6612, 0.774],
[0.1488, 0.7765]],
'char_pos_norm': [0.0052,
0.0157,
0.0262,
0.042,
0.0577,
0.0787,
0.0892,
0.0997,
0.1154,
0.1207,
0.1312,
0.1469,
0.1626,
0.1679,
0.1784,
0.1889,
0.1994,
0.2099,
0.2256,
0.2413,
0.2571,
0.2676,
0.2833,
0.2938,
0.3095,
0.32,
0.3305,
0.341,
0.3568,
0.3725,
0.3882,
0.3987,
0.404,
0.4092,
0.4197,
0.425,
0.4407,
0.4564,
0.4669,
0.4774],
'text': 'ตำบลบางแม่นาง อำเภอบางใหญ่ นนทบุรี 11140',
'confidence': 0.9615},
{'bbox': [[50, 1601], [403, 1601], [403, 1640], [50, 1640]],
'bbox_norm': [[0.048, 0.8005],
[0.3868, 0.8005],
[0.3868, 0.82],
[0.048, 0.82]],
'char_pos_norm': [0.0,
0.0069,
0.0138,
0.0275,
0.0481,
0.055,
0.0619,
0.0757,
0.0894,
0.0963,
0.1169,
0.1444,
0.1582,
0.172,
0.1995,
0.2201,
0.2339,
0.2476,
0.2614,
0.282,
0.2958,
0.3095,
0.3233,
0.3508,
0.3714,
0.3989,
0.4265,
0.4471,
0.454,
0.4677],
'text': 'ชื่อผู้ใช้นำ นายธีระยุทธแสงวุธ',
'confidence': 0.9665},
{'bbox': [[45, 1640], [732, 1631], [733, 1678], [45, 1686]],
'bbox_norm': [[0.0432, 0.82],
[0.7025, 0.8155],
[0.7035, 0.839],
[0.0432, 0.843]],
'char_pos_norm': [0.0,
0.005,
0.01,
0.0199,
0.0249,
0.0299,
0.0398,
0.0448,
0.0547,
0.0597,
0.0747,
0.0896,
0.0995,
0.1045,
0.1145,
0.1194,
0.1294,
0.1394,
0.1443,
0.1493,
0.1593,
0.1642,
0.1742,
0.1792,
0.1891,
0.1991,
0.209,
0.219,
0.2289,
0.2389,
0.2488,
0.2538,
0.2588,
0.2737,
0.2837,
0.2936,
0.2986,
0.3135,
0.3235,
0.3285,
0.3384,
0.3434,
0.3484,
0.3583,
0.3633,
0.3683,
0.3782,
0.3832,
0.3882,
0.3982,
0.4081,
0.423,
0.433,
0.4429,
0.4479,
0.4529,
0.4629,
0.4728,
0.4828,
0.4877],
'text': 'ที่ใช้น้ำ 89/54 หมู่ 10 มบ.อินดีบางใหญ่ (2) ถ.เทิดพระเกียรติ',
'confidence': 0.9061},
{'bbox': [[149, 1682], [612, 1678], [612, 1721], [150, 1725]],
'bbox_norm': [[0.143, 0.841],
[0.5873, 0.839],
[0.5873, 0.8605],
[0.144, 0.8625]],
'char_pos_norm': [0.0063,
0.0253,
0.0379,
0.0569,
0.0758,
0.0948,
0.1074,
0.1201,
0.139,
0.1454,
0.158,
0.177,
0.1896,
0.2022,
0.2086,
0.2212,
0.2402,
0.2528,
0.2654,
0.2844,
0.3034,
0.316,
0.3349,
0.3476,
0.3665,
0.3792,
0.3918,
0.3981,
0.4171,
0.4424,
0.4613,
0.4677,
0.4803,
0.4866],
'text': 'ตำบลบางแม่นาง อำเภอบางใหญ่ นนพบุรี',
'confidence': 0.9462},
{'bbox': [[763, 1734], [947, 1737], [947, 1771], [762, 1768]],
'bbox_norm': [[0.7322, 0.867],
[0.9088, 0.8685],
[0.9088, 0.8855],
[0.7313, 0.884]],
'char_pos_norm': [0.0125,
0.0498,
0.0996,
0.1619,
0.1868,
0.2366,
0.2864,
0.3362,
0.3984,
0.4233],
'text': '189.35 บาท',
'confidence': 0.9982},
{'bbox': [[45, 1737], [565, 1731], [566, 1774], [45, 1779]],
'bbox_norm': [[0.0432, 0.8685],
[0.5422, 0.8655],
[0.5432, 0.887],
[0.0432, 0.8895]],
'char_pos_norm': [0.0057,
0.0115,
0.0172,
0.0287,
0.0402,
0.0459,
0.0574,
0.0746,
0.086,
0.1032,
0.109,
0.1205,
0.1319,
0.1491,
0.1549,
0.1663,
0.1778,
0.195,
0.2065,
0.2122,
0.218,
0.2294,
0.2466,
0.2638,
0.2696,
0.2868,
0.2983,
0.3097,
0.3212,
0.3327,
0.3499,
0.3556,
0.39,
0.4015,
0.4244,
0.4417,
0.4531,
0.4646,
0.4761],
'text': 'ค่าน้ำและค่าบริการเดือน 12/2564 19หน่วย',
'confidence': 0.9372},
{'bbox': [[802, 1779], [883, 1779], [883, 1811], [802, 1811]],
'bbox_norm': [[0.7697, 0.8895],
[0.8474, 0.8895],
[0.8474, 0.9055],
[0.7697, 0.9055]],
'char_pos_norm': [0.0246, 0.123, 0.1722, 0.2951],
'text': '0.00',
'confidence': 0.9982},
{'bbox': [[876, 1779], [947, 1782], [946, 1813], [875, 1809]],
'bbox_norm': [[0.8407, 0.8895],
[0.9088, 0.891],
[0.9079, 0.9065],
[0.8397, 0.9045]],
'char_pos_norm': [0.0882, 0.2646, 0.3234],
'text': 'บาท',
'confidence': 0.9982},
{'bbox': [[47, 1785], [140, 1785], [140, 1820], [47, 1820]],
'bbox_norm': [[0.0451, 0.8925],
[0.1344, 0.8925],
[0.1344, 0.91],
[0.0451, 0.91]],
'char_pos_norm': [0.0234, 0.0469, 0.0937, 0.164, 0.2812, 0.3749],
'text': 'ส่วนลด',
'confidence': 0.9982},
{'bbox': [[765, 1819], [885, 1819], [885, 1854], [765, 1854]],
'bbox_norm': [[0.7342, 0.9095],
[0.8493, 0.9095],
[0.8493, 0.927],
[0.7342, 0.927]],
'char_pos_norm': [0.0, 0.0726, 0.1634, 0.2361, 0.2905, 0.3632],
'text': '189.35',
'confidence': 0.9982},
{'bbox': [[876, 1822], [950, 1822], [950, 1854], [876, 1854]],
'bbox_norm': [[0.8407, 0.911],
[0.9117, 0.911],
[0.9117, 0.927],
[0.8407, 0.927]],
'char_pos_norm': [0.1077, 0.2423, 0.3231],
'text': 'บาท',
'confidence': 0.9982},
{'bbox': [[42, 1823], [275, 1819], [276, 1859], [43, 1863]],
'bbox_norm': [[0.0403, 0.9115],
[0.2639, 0.9095],
[0.2649, 0.9295],
[0.0413, 0.9315]],
'char_pos_norm': [0.0117,
0.0468,
0.0702,
0.1054,
0.1288,
0.1405,
0.1522,
0.199,
0.2107,
0.2341,
0.2692,
0.3161,
0.3278,
0.3512,
0.3863,
0.4214,
0.4448,
0.4683],
'text': 'ยอดเงินก่อนคิดภาษี',
'confidence': 0.9953},
{'bbox': [[788, 1863], [883, 1863], [883, 1894], [788, 1894]],
'bbox_norm': [[0.7562, 0.9315],
[0.8474, 0.9315],
[0.8474, 0.947],
[0.7562, 0.947]],
'char_pos_norm': [0.0, 0.0813, 0.1828, 0.2438, 0.3657],
'text': '13.25',
'confidence': 0.9982},
{'bbox': [[876, 1863], [950, 1863], [950, 1895], [876, 1895]],
'bbox_norm': [[0.8407, 0.9315],
[0.9117, 0.9315],
[0.9117, 0.9475],
[0.8407, 0.9475]],
'char_pos_norm': [0.1077, 0.2423, 0.3231],
'text': 'บาท',
'confidence': 0.9982},
{'bbox': [[46, 1867], [252, 1863], [253, 1903], [47, 1907]],
'bbox_norm': [[0.0441, 0.9335],
[0.2418, 0.9315],
[0.2428, 0.9515],
[0.0451, 0.9535]],
'char_pos_norm': [0.0132,
0.0397,
0.0662,
0.0794,
0.1191,
0.1323,
0.1588,
0.1985,
0.2117,
0.2382,
0.2647,
0.2911,
0.3044,
0.3308,
0.3705,
0.3838,
0.4235],
'text': 'ภาษีมูลค่าเพิม 7%',
'confidence': 0.9982},
{'bbox': [[674, 1897], [953, 1903], [952, 1942], [673, 1936]],
'bbox_norm': [[0.6468, 0.9485],
[0.9146, 0.9515],
[0.9136, 0.971],
[0.6459, 0.968]],
'char_pos_norm': [0.0,
0.03,
0.06,
0.0901,
0.1101,
0.1401,
0.1601,
0.2001,
0.2301,
0.2702,
0.2902,
0.3202,
0.3502,
0.3902,
0.4302,
0.4503],
'text': '******202.60 บาท',
'confidence': 0.9887},
{'bbox': [[46, 1907], [312, 1907], [312, 1947], [46, 1947]],
'bbox_norm': [[0.0441, 0.9535],
[0.2994, 0.9535],
[0.2994, 0.9735],
[0.0441, 0.9735]],
'char_pos_norm': [0.0,
0.0281,
0.0562,
0.0843,
0.103,
0.1123,
0.1217,
0.1592,
0.1685,
0.1779,
0.1966,
0.2153,
0.234,
0.2621,
0.2809,
0.2996,
0.337,
0.3558,
0.3745,
0.3932,
0.4213,
0.4494,
0.4681],
'text': 'รวมเงินที่หักบัญชี/ชำระ',
'confidence': 0.9847}],
'text_page': 'การประปานครหลวง ใบแจ้งค่าน้ำประปา ( INVOICE)\nMETROPOLITAN WATERWORKS AUTHORITY\nhttp://www.mwgco.th E-mail : [email protected]\nการประปายครหลวง มหาสวัสดิ 02-448-0734 ประจำเดือน 01/65\nสาขา 00037\nสาขา-เขต ทะเบียนผู้ใช้น้ำ เส้นทาง-ลำดับ เลขที่แจ้งค่าน้ำ วันที่แจ้งค่าน้ำ\n(Branch) Account no.) (Route) (Invoice no.) Invoice date)\n56-05 79898938 084-127 005619-2 02/01/65 08:57\nวันที่อ่านครั้งนี้ เลขในมาตร วันที่อ่านครั้งก่อน เลขในมาตร จำนวนน้ำใช้\n(Current date) Current reading) (Previous date) Previous reading) (Consumption)\n02/01/65 385 02/12/64 365 20\nค่าน้ำดิบ (ลูกบาศก์เมตรละ 0.15 3.00\nบาท) ประวัติการใช้น้ำประปา\nค่าน้ำประปา R1(00) 170.00\nส่วนลด (Consumption History)\n0.00\nยอดเงินก่อนคิดภาษี 25.00 วันที่อ่านน้ำ จำนวนน้ำใข้\nค่าบริการรายเดือน (Date) Consumption\n198.00 02/10/64 20\n7% 13.86 02/11/64 18\nภาษีมูลค่าเพิ่ม 02/12/64 19\n211.86\nรวมเงิน\nค่าน้ำเดือนก่อน เดือน 0.00\nO พ\nรวมเงินที่ต้องชำระทั้งสิ้น **211.86\nGrand Total\nPlease pay tihe ourstutdimng antoumt bวันที ชำระเงินภายใน 09/01/65\nQR Cross Bank\nV. 40.01 A\nคำเตือน : กปน. ไม่มีนโยบายรับชำระค่าน้ำประปาที่บ้าน โปรดระวังผู้แอบอ้าง\nใบเสร็จรับเงิน/ใบกำกับภาษี ชำระผ่านตัวแทน\nการประปานครหลวง 400 ถ.ประชาชื่น ทุ่งสองห้อง หลักสี่ กรุงเทพฯ 10210\nหมายเลขประจำตัวผู้เสียภาษีอากร 0994000165463 สาขาที 00037\nสาขา 56 เขต 05 ทะเบียน 79898938 เลขที 5667454035 วันที 14/12/2564\nชื่อผู้ชำระเงิน นายธีระยุทธ แสงวุธ\nที่อยู่ 89/54 หมู่ 10 มบ.อินดีบางใหญ่ (2) ถ.เทิดพระเกียรติ\nตำบลบางแม่นาง อำเภอบางใหญ่ นนทบุรี 11140\nชื่อผู้ใช้นำ นายธีระยุทธแสงวุธ\nที่ใช้น้ำ 89/54 หมู่ 10 มบ.อินดีบางใหญ่ (2) ถ.เทิดพระเกียรติ\nตำบลบางแม่นาง อำเภอบางใหญ่ นนพบุรี\nค่าน้ำและค่าบริการเดือน 12/2564 19หน่วย 189.35 บาท\nส่วนลด 0.00 บาท\nยอดเงินก่อนคิดภาษี 189.35 บาท\nภาษีมูลค่าเพิม 7% 13.25 บาท\nรวมเงินที่หักบัญชี/ชำระ ******202.60 บาท',
'page': 1,
'max_page': 1},
{'bboxes': [{'bbox': [[584, 9], [747, 7], [747, 45], [584, 47]],
'bbox_norm': [[0.6147, 0.035],
[0.7863, 0.0272],
[0.7863, 0.1751],
[0.6147, 0.1829]],
'char_pos_norm': [0.0,
0.0306,
0.0764,
0.1222,
0.1375,
0.1528,
0.1833,
0.2139,
0.2292,
0.2597,
0.3056,
0.3361,
0.3514,
0.3972,
0.4278,
0.4431],
'text': 'เลขที่แจ้งค่าน้ำ',
'confidence': 0.9574},
{'bbox': [[774, 11], [928, 11], [928, 48], [774, 48]],
'bbox_norm': [[0.8147, 0.0428],
[0.9768, 0.0428],
[0.9768, 0.1868],
[0.8147, 0.1868]],
'char_pos_norm': [0.015,
0.0299,
0.0449,
0.0897,
0.1047,
0.1197,
0.1496,
0.2094,
0.2244,
0.2543,
0.2992,
0.3141,
0.344,
0.3889,
0.4188,
0.4487],
'text': 'วันที่แจ้งค่าน้ำ',
'confidence': 0.948},
{'bbox': [[207, 14], [372, 11], [373, 52], [207, 55]],
'bbox_norm': [[0.2179, 0.0545],
[0.3916, 0.0428],
[0.3926, 0.2023],
[0.2179, 0.214]],
'char_pos_norm': [0.0165,
0.0495,
0.099,
0.132,
0.1485,
0.1815,
0.2145,
0.264,
0.2805,
0.297,
0.33,
0.3465,
0.3795,
0.396,
0.429,
0.4621],
'text': 'ทะเบียนผู้ใช้น้ำ',
'confidence': 0.9919},
{'bbox': [[54, 15], [161, 15], [161, 41], [54, 41]],
'bbox_norm': [[0.0568, 0.0584],
[0.1695, 0.0584],
[0.1695, 0.1595],
[0.0568, 0.1595]],
'char_pos_norm': [0.0151,
0.0756,
0.1362,
0.2118,
0.2723,
0.3026,
0.3479,
0.4085],
'text': 'สาขา-เขต',
'confidence': 0.9982},
{'bbox': [[402, 18], [556, 18], [556, 48], [402, 48]],
'bbox_norm': [[0.4232, 0.07],
[0.5853, 0.07],
[0.5853, 0.1868],
[0.4232, 0.1868]],
'char_pos_norm': [0.0,
0.0121,
0.0364,
0.0606,
0.1213,
0.1819,
0.2183,
0.2547,
0.2911,
0.3275,
0.3881,
0.4124,
0.4366],
'text': 'เส้นทาง-ลำดับ',
'confidence': 0.9615},
{'bbox': [[57, 43], [156, 43], [156, 70], [57, 70]],
'bbox_norm': [[0.06, 0.1673],
[0.1642, 0.1673],
[0.1642, 0.2724],
[0.06, 0.2724]],
'char_pos_norm': [0.0,
0.034,
0.1189,
0.1698,
0.2377,
0.3056,
0.3905,
0.4584],
'text': '(Branch)',
'confidence': 0.9982},
{'bbox': [[772, 49], [928, 47], [928, 73], [772, 75]],
'bbox_norm': [[0.8126, 0.1907],
[0.9768, 0.1829],
[0.9768, 0.284],
[0.8126, 0.2918]],
'char_pos_norm': [0.0,
0.0223,
0.0447,
0.0894,
0.1229,
0.1676,
0.19,
0.2347,
0.2794,
0.3017,
0.3576,
0.4023,
0.4246,
0.4693],
'text': '(Invoice date)',
'confidence': 0.9982},
{'bbox': [[436, 50], [517, 50], [517, 77], [436, 77]],
'bbox_norm': [[0.4589, 0.1946],
[0.5442, 0.1946],
[0.5442, 0.2996],
[0.4589, 0.2996]],
'char_pos_norm': [0.0, 0.0415, 0.1453, 0.2283, 0.332, 0.3735, 0.4565],
'text': '(Route)',
'confidence': 0.9982},
{'bbox': [[597, 51], [735, 51], [735, 76], [597, 76]],
'bbox_norm': [[0.6284, 0.1984],
[0.7737, 0.1984],
[0.7737, 0.2957],
[0.6284, 0.2957]],
'char_pos_norm': [0.0113,
0.0451,
0.0902,
0.1353,
0.1917,
0.2143,
0.2594,
0.3045,
0.3384,
0.3947,
0.4399,
0.4737],
'text': 'Invoice no.)',
'confidence': 0.9953},
{'bbox': [[218, 56], [367, 56], [367, 78], [218, 78]],
'bbox_norm': [[0.2295, 0.2179],
[0.3863, 0.2179],
[0.3863, 0.3035],
[0.2295, 0.3035]],
'char_pos_norm': [0.0092,
0.0643,
0.1103,
0.1563,
0.2022,
0.2574,
0.3033,
0.3309,
0.3493,
0.3953,
0.4504,
0.478],
'text': 'Account no.)',
'confidence': 0.9982},
{'bbox': [[424, 83], [513, 83], [513, 113], [424, 113]],
'bbox_norm': [[0.4463, 0.323],
[0.54, 0.323],
[0.54, 0.4397],
[0.4463, 0.4397]],
'char_pos_norm': [0.0, 0.063, 0.1469, 0.2308, 0.2728, 0.3358, 0.4197],
'text': '084-127',
'confidence': 0.9982},
{'bbox': [[607, 83], [712, 83], [712, 109], [607, 109]],
'bbox_norm': [[0.6389, 0.323],
[0.7495, 0.323],
[0.7495, 0.4241],
[0.6389, 0.4241]],
'char_pos_norm': [0.0,
0.0617,
0.1233,
0.185,
0.2621,
0.3083,
0.37,
0.4162],
'text': '005619-2',
'confidence': 0.9982},
{'bbox': [[767, 86], [931, 83], [931, 109], [767, 113]],
'bbox_norm': [[0.8074, 0.3346],
[0.98, 0.323],
[0.98, 0.4241],
[0.8074, 0.4397]],
'char_pos_norm': [0.0114,
0.0456,
0.0797,
0.1025,
0.148,
0.1822,
0.205,
0.2505,
0.2847,
0.2961,
0.3417,
0.3872,
0.4214,
0.4555],
'text': '02/01/65 08:57',
'confidence': 0.9904},
{'bbox': [[58, 87], [154, 87], [154, 114], [58, 114]],
'bbox_norm': [[0.0611, 0.3385],
[0.1621, 0.3385],
[0.1621, 0.4436],
[0.0611, 0.4436]],
'char_pos_norm': [0.0175, 0.0875, 0.1926, 0.2802, 0.3852],
'text': '56-05',
'confidence': 0.9982},
{'bbox': [[222, 87], [373, 87], [373, 113], [222, 113]],
'bbox_norm': [[0.2337, 0.3385],
[0.3926, 0.3385],
[0.3926, 0.4397],
[0.2337, 0.4397]],
'char_pos_norm': [0.0,
0.0429,
0.1072,
0.1715,
0.2358,
0.3002,
0.3645,
0.4288],
'text': '79898938',
'confidence': 0.9982},
{'bbox': [[601, 141], [730, 141], [730, 174], [601, 174]],
'bbox_norm': [[0.6326, 0.5486],
[0.7684, 0.5486],
[0.7684, 0.677],
[0.6326, 0.677]],
'char_pos_norm': [0.0,
0.0319,
0.0956,
0.1593,
0.1911,
0.2548,
0.3344,
0.3822,
0.4459],
'text': 'เลขในมาตร',
'confidence': 0.9982},
{'bbox': [[225, 143], [357, 143], [357, 176], [225, 176]],
'bbox_norm': [[0.2368, 0.5564],
[0.3758, 0.5564],
[0.3758, 0.6848],
[0.2368, 0.6848]],
'char_pos_norm': [0.0,
0.0311,
0.0934,
0.1556,
0.1868,
0.249,
0.3268,
0.3735,
0.4358],
'text': 'เลขในมาตร',
'confidence': 0.9982},
{'bbox': [[780, 146], [921, 135], [924, 173], [783, 185]],
'bbox_norm': [[0.8211, 0.5681],
[0.9695, 0.5253],
[0.9726, 0.6732],
[0.8242, 0.7198]],
'char_pos_norm': [0.0216,
0.0649,
0.1081,
0.1729,
0.2162,
0.281,
0.3243,
0.3459,
0.3891,
0.4323,
0.454],
'text': 'จำนวนน้ำใช้',
'confidence': 0.9982},
{'bbox': [[28, 148], [182, 148], [182, 178], [28, 178]],
'bbox_norm': [[0.0295, 0.5759],
[0.1916, 0.5759],
[0.1916, 0.6926],
[0.0295, 0.6926]],
'char_pos_norm': [0.0121,
0.0243,
0.0485,
0.097,
0.1092,
0.1213,
0.1577,
0.1819,
0.2062,
0.2426,
0.3032,
0.3638,
0.376,
0.3881,
0.4002,
0.4366,
0.4609,
0.473],
'text': 'วันที่อ่านครั้งนี้',
'confidence': 0.9698},
{'bbox': [[392, 149], [566, 149], [566, 179], [392, 179]],
'bbox_norm': [[0.4126, 0.5798],
[0.5958, 0.5798],
[0.5958, 0.6965],
[0.4126, 0.6965]],
'char_pos_norm': [0.0107,
0.0215,
0.0429,
0.0859,
0.0966,
0.1073,
0.1288,
0.1503,
0.1717,
0.2039,
0.2576,
0.3006,
0.3113,
0.322,
0.3328,
0.365,
0.3757,
0.4079,
0.4401],
'text': 'วันที่อ่านครั้งก่อน',
'confidence': 0.9526},
{'bbox': [[583, 177], [752, 177], [752, 202], [583, 202]],
'bbox_norm': [[0.6137, 0.6887],
[0.7916, 0.6887],
[0.7916, 0.786],
[0.6137, 0.786]],
'char_pos_norm': [0.0,
0.0184,
0.046,
0.0737,
0.1013,
0.1289,
0.1474,
0.1842,
0.2118,
0.2394,
0.2579,
0.2855,
0.3131,
0.35,
0.3868,
0.4052,
0.4421,
0.4789],
'text': '(Previous reading)',
'confidence': 0.9982},
{'bbox': [[208, 178], [375, 180], [375, 205], [208, 203]],
'bbox_norm': [[0.2189, 0.6926],
[0.3947, 0.7004],
[0.3947, 0.7977],
[0.2189, 0.7899]],
'char_pos_norm': [0.0101,
0.0503,
0.0906,
0.1208,
0.1409,
0.1812,
0.2114,
0.2315,
0.2516,
0.2718,
0.312,
0.3422,
0.3926,
0.4127,
0.4429,
0.4831],
'text': 'Current reading)',
'confidence': 0.9982},
{'bbox': [[774, 179], [931, 176], [931, 202], [774, 205]],
'bbox_norm': [[0.8147, 0.6965],
[0.98, 0.6848],
[0.98, 0.786],
[0.8147, 0.7977]],
'char_pos_norm': [0.0,
0.023,
0.069,
0.115,
0.161,
0.1955,
0.2415,
0.299,
0.345,
0.368,
0.391,
0.437,
0.483],
'text': '(Consumption)',
'confidence': 0.9953},
{'bbox': [[34, 181], [181, 181], [181, 206], [34, 206]],
'bbox_norm': [[0.0358, 0.7043],
[0.1905, 0.7043],
[0.1905, 0.8016],
[0.0358, 0.8016]],
'char_pos_norm': [0.0,
0.0212,
0.0741,
0.1271,
0.1482,
0.18,
0.2223,
0.2647,
0.2859,
0.307,
0.36,
0.4023,
0.4235,
0.4765],
'text': '(Current date)',
'confidence': 0.9919},
{'bbox': [[399, 181], [561, 183], [561, 208], [399, 206]],
'bbox_norm': [[0.42, 0.7043],
[0.5905, 0.7121],
[0.5905, 0.8093],
[0.42, 0.8016]],
'char_pos_norm': [0.0,
0.0208,
0.0623,
0.0934,
0.1245,
0.166,
0.1868,
0.2179,
0.2594,
0.2905,
0.3217,
0.3632,
0.4047,
0.4254,
0.4669],
'text': '(Previous date)',
'confidence': 0.9982},
{'bbox': [[820, 211], [866, 211], [866, 241], [820, 241]],
'bbox_norm': [[0.8632, 0.821],
[0.9116, 0.821],
[0.9116, 0.9377],
[0.8632, 0.9377]],
'char_pos_norm': [0.0406, 0.2436],
'text': '20',
'confidence': 0.9982},
{'bbox': [[638, 216], [683, 216], [683, 242], [638, 242]],
'bbox_norm': [[0.6716, 0.8405],
[0.7189, 0.8405],
[0.7189, 0.9416],
[0.6716, 0.9416]],
'char_pos_norm': [0.036, 0.1439, 0.2878],
'text': '365',
'confidence': 0.9982},
{'bbox': [[60, 218], [163, 218], [163, 244], [60, 244]],
'bbox_norm': [[0.0632, 0.8482],
[0.1716, 0.8482],
[0.1716, 0.9494],
[0.0632, 0.9494]],
'char_pos_norm': [0.0157,
0.0786,
0.1414,
0.1729,
0.2514,
0.3143,
0.3457,
0.4086],
'text': '02/01/65',
'confidence': 0.9982},
{'bbox': [[259, 218], [321, 216], [322, 245], [260, 247]],
'bbox_norm': [[0.2726, 0.8482],
[0.3379, 0.8405],
[0.3389, 0.9533],
[0.2737, 0.9611]],
'char_pos_norm': [0.0306, 0.1532, 0.3063],
'text': '385',
'confidence': 0.9982},
{'bbox': [[429, 218], [530, 218], [530, 244], [429, 244]],
'bbox_norm': [[0.4516, 0.8482],
[0.5579, 0.8482],
[0.5579, 0.9494],
[0.4516, 0.9494]],
'char_pos_norm': [0.016,
0.0801,
0.1442,
0.1923,
0.2404,
0.3045,
0.3366,
0.4167],
'text': '02/12/64',
'confidence': 0.9982}],
'text_page': ' สาขา-เขต ทะเบียนผู้ใช้น้ำ เส้นทาง-ลำดับ เลขที่แจ้งค่าน้ำ วันที่แจ้งค่าน้ำ\n (Branch) Account no.) (Route) Invoice no.) (Invoice date)\n 56-05 79898938 084-127 005619-2 02/01/65 08:57\n วันที่อ่านครั้งนี้ เลขในมาตร วันที่อ่านครั้งก่อน เลขในมาตร จำนวนน้ำใช้\n (Current date) Current reading) (Previous date) (Previous reading) (Consumption)\n 02/01/65 385 02/12/64 365 20',
'page': 1,
'max_page': 1}],
'table': [{'acc no': ['79898938'], 'branch': ['56-05']}]
}
{
"request_id": "",
"error": [
{ "object": "error", "code": "bad_request", "message": "Bad Request" }
],
"data": [{}],
"status": "error"
}
{
"request_id": "",
"error": [
{
"object": "error",
"code": "internal_server_error",
"message": "Page 1 : Internal Server Error"
}
],
"data": [{}],
"status": "error"
}
API Request Examples.
- Python
- Javascript
- PHP
- CURL
import requests
api = "https://apis.aigen.online/aiscript/mytemplate/v3"
headers = {"x-aigen-key": "<key>"}
mapping_key = {'name':'name',
'total price': 'totla_price',
'branch code': 'branch_code',
'account no.': 'acc_no',
'invoice no.': 'inv_no',
'invince date': 'inv_date',
'passport no': 'passport_no',
'place of birth': 'pob',
'current reading':'current_read',
'current read date': 'read_date'
}
table_key = {'Quantity': 'qty',
'Amont': 'amont',
'Items': 'items'
}
data = {'image':imgb64,
'mapping_key': mapping_key,
'table_key': table_key,
'additional_prompt': 'Quantity values must be integer.',
'document_type': 'invoice'
}
res = requests.post(api, json=data, headers=headers)
print(res.json())
const axios = require("axios");
const api = "https://apis.aigen.online/aiscript/mytemplate/v3";
const headers = {
"x-aigen-key": "<key>",
};
const mapping_key = {'name':'name',
'total price': 'totla_price',
'branch code': 'branch_code',
'account no.': 'acc_no',
'invoice no.': 'inv_no',
'invince date': 'inv_date',
'passport no': 'passport_no',
'place of birth': 'pob',
'current reading':'current_read',
'current read date': 'read_date'
};
const table_key = {'Quantity': 'qty',
'Amont': 'amont',
'Items': 'items'
};
const data = {image: "<base64_string>",
mapping_key: mapping_key,
table_key: table_key,
additional_prompt: 'Quantity values must be integer.',
document_type: 'invoice'
};
axios
.post(api, data, { headers: headers })
.then((res) => {
console.log(res.data);
})
.catch((err) => {
console.error(err.response.data);
});
<?php
$curl = curl_init();
// Mapping keys
$mapping_key = [
'name' => 'name',
'total price' => 'total_price', // typo fixed
'branch code' => 'branch_code',
'account no.' => 'acc_no',
'invoice no.' => 'inv_no',
'invince date' => 'inv_date',
'passport no' => 'passport_no',
'place of birth' => 'pob',
'current reading' => 'current_read',
'current read date' => 'read_date'
];
// Table keys
$table_key = [
'Quantity' => 'qty',
'Amont' => 'amont',
'Items' => 'items'
];
// Data to be sent in the POST request
$data = [
'image' => $imgb64,
'mapping_key' => $mapping_key,
'table_key' => $table_key,
'additional_prompt' => 'Quantity values must be integer.',
'document_type' => 'invoice'
];
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://apis.aigen.online/aiscript/mytemplate/v3',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => json_encode($data),
CURLOPT_HTTPHEADER => array(
'X-AIGEN-KEY: <aigen-key>',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>
curl -X POST "https://apis.aigen.online/aiscript/mytemplate/v3" \
-H "X-AIGEN-KEY: your_real_api_key" \
-H "Content-Type: application/json" \
-d '{
"image": "<base64_string>",
"mapping_key": {
"name": "name",
"total price": "total_price",
"branch code": "branch_code",
"account no.": "acc_no",
"invoice no.": "inv_no",
"invince date": "inv_date",
"passport no": "passport_no",
"place of birth": "pob",
"current reading": "current_read",
"current read date": "read_date"
},
"table_key": {
"Quantity": "qty",
"Amont": "amont",
"Items": "items"
},
"additional_prompt": "Quantity values must be integer.",
"document_type": "invoice"
}'