Links

Pip Python Package

For easing the python development using iApp AI API service, we have released the iapp_ai python pip package. It is the api client library for iApp AI API service for python.

Installation

$ pip install iapp_ai
Note: It can be either pip or pip3 depend on your environment.

Example Usages

1
import iapp_ai
2
3
# You can request API key at https://ai.iapp.co.th
4
apikey = 'XXXXX_Your_API_Key_XXXXX'
5
6
api = iapp_ai.api(apikey)
7
8
# ID Card Front required an image file path.
9
result = api.idcard_front("iapp_ai/media/id-card-front.jpg").json()
10
print(result)
11
12
# {
13
# 'address': '23/20 หมู่ที่ 6 ต.กะทู้ อ.กะทู้ จ.ภูเก็ต',
14
# 'detection_score': 0.9645371039708456,
15
# 'district': 'กะทู้',
16
# 'en_dob': '11 Mar 1965',
17
# ...
18
# }

Full Examples in Google Colaboratory

Google Colaboratory
Full Example of iApp AI API in Google Colaboratory