Using PIP Python Package

iApp Technology just released a PIP Python Package on Thai Vehicle License Plate OCR.

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.


$ pip install iapp_ai

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

Calling Thai Vehicle License Plate API

# License Plate OCR api required an image file path

Example Usages

import iapp_ai

# You can request API key at
apikey = 'XXXXX_Your_API_Key_XXXXX' 

api = iapp_ai.api(apikey)

# License Plate OCR api required an image file path.
result = api.license_plate_lpr("iapp_ai/media/plate.jpg").json()

# {
# 'conf': 93.12893677,
#  'infer_time(s)': 1.7994873523712158,
#  'lp_number': '2กธ7120',
#  'message': 'success',
#  'province': 'th-10:Bangkok (กรุงเทพมหานคร)',
#  'status': 200,
#  'vehicle_brand': 'nissan',
#  'vehicle_color': 'black',
#  'vehicle_model': 'nissan_sunny'
#  }

Full Example in Google Colaboratory

Last updated