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

import iapp_ai

# You can request API key at https://ai.iapp.co.th
apikey = 'XXXXX_Your_API_Key_XXXXX' 

api = iapp_ai.api(apikey)

# ID Card Front required an image file path.
result = api.idcard_front("iapp_ai/media/id-card-front.jpg").json()
print(result)

# {
# 'address': '23/20 ā¸Ģā¸Ąā¸šāšˆā¸—ā¸ĩāšˆ 6 ā¸•.ā¸ā¸°ā¸—ā¸šāš‰ ā¸­.ā¸ā¸°ā¸—ā¸šāš‰ ā¸ˆ.ā¸ ā¸šāš€ā¸āš‡ā¸•',
# 'detection_score': 0.9645371039708456,
# 'district': 'ā¸ā¸°ā¸—ā¸šāš‰',
# 'en_dob': '11 Mar 1965',
# ...
# }

Full Examples in Google Colaboratory

Last updated