14. License Plate Recognition

14.1. Python Example

Example: License Plate Recognition
from mpython import *
import smartcamera_k230 as smartcamera

smart_camera = smartcamera.SmartCameraK230(tx=Pin.P1, rx=Pin.P0)

smart_camera.model_init(8)

while True:
    smart_camera.lpr.recognize()
    lpr_str = smart_camera.lpr.lpr_str
    if lpr_str != None:
        print(str('License plate: ') + str(lpr_str))

14.2. mPython Graphical Example

../../../../_images/license_plate_recognition.png