This repo contains a python binding for the original EasyPR C++ library.
This version of python binding is only tested on Ubuntu 16.04.3 LTS with OpenCV 3.3.1 .
- Download and unpack python module with shaerd library from Release Page.
- Demo code:
>>> import plate_detector
>>> import cv2
>>> im = cv2.imread(path_to_test_image)
>>> imp = plate_detector.Mat.from_array(im)
>>> plate_detector.Recognize(imp)
'蓝牌:津AJ0W96'
- Modify
wrapper/wrapper.h
as what you like. - Run
build_shared_objects.sh
to generatelibeasypr.so
andlibthirdparty.so
- Clone repo renatoGarcia/opencv-swig alongside this repo
- Run
build_python_binding.sh
to generate python bindingplate_detector.py
and_plate_detector.so