JeVoisBase  1.22
JeVois Smart Embedded Machine Vision Toolkit Base Modules
Share this page:
Loading...
Searching...
No Matches
PyLicensePlate.PyLicensePlate Class Reference

Detect license plates on NPU using YuNet TIM-VX. More...

Public Member Functions

 __init__ (self)
 Constructor.
 
 processGUI (self, inframe, helper)
 Process function with GUI output.
 

Public Attributes

 modelname
 
 model
 
 timer
 
 h
 
 w
 

Detailed Description

Detect license plates on NPU using YuNet TIM-VX.

This module runs on the JeVois-Pro NPU using a quantized deep neural network. It is derived from https://github.com/opencv/opencv_zoo/tree/master/models/license_plate_detection_yunet See LICENSE for license information.

Please note that the model is trained with Chinese license plates, so the detection results of other license plates with this model may be limited. See the screenshots of this module for examples, or search for "Chinese license plate" on the web for more images.

This module is mainly intended as a tutorial for how to run quantized int8 DNNs on the NPU using OpenCV and TIM-VX, here achieved through only small modifications of code from https://github.com/opencv/opencv_zoo - in particular, the core class for this model, LPD_YuNet, was not modified at all, and only the demo code was edited to use the JeVois GUI Helper for fast OpenGL drawing as opposed to slow drawings into OpenCV images.

Author
Laurent Itti
Display Name:
PyLicensePlate
Videomapping:
JVUI 0 0 30.0 CropScale=RGB24@512x288:YUYV 1920 1080 30.0 JeVois PyLicensePlate
Videomapping:
JVUI 0 0 30.0 CropScale=RGB24@256x144:YUYV 1920 1080 30.0 JeVois PyLicensePlate
Email:
itti@usc.edu
Address:
University of Southern California, HNB-07A, 3641 Watt Way, Los Angeles, CA 90089-2520, USA
Main URL:
http://jevois.org
Support URL:
http://jevois.org/doc
Other URL:
http://iLab.usc.edu
License:
GPL v3
Distribution:
Unrestricted
Restrictions:
None

Definition at line 39 of file PyLicensePlate.py.

Constructor & Destructor Documentation

◆ __init__()

PyLicensePlate.PyLicensePlate.__init__ (   self)

Constructor.

Definition at line 42 of file PyLicensePlate.py.

Member Function Documentation

◆ processGUI()

PyLicensePlate.PyLicensePlate.processGUI (   self,
  inframe,
  helper 
)

Process function with GUI output.

Definition at line 63 of file PyLicensePlate.py.

References jevois::CameraCalibration.h, env_dims.h, PyLicensePlate.PyLicensePlate.h, PySceneText.PySceneText.h, TensorFlow.model, mobilenet_v1.MobileNetV1.model, mobilenet_v2.MobileNetV2.model, lpd_yunet.LPD_YuNet.model, mp_palmdet.MPPalmDet.model, PyNetKSNN.PyNetKSNN.model, PyNetOpenCV.PyNetOpenCV.model, PyNetORT.PyNetORT.model, PyNetURetinex.PyNetURetinex.model, PyClassificationDNN.PyClassificationDNN.model, PyCoralClassify.PyCoralClassify.model, PyCoralDetect.PyCoralDetect.model, PyCoralSegment.PyCoralSegment.model, PyDetectionDNN.PyDetectionDNN.model, PyEmotion.PyEmotion.model, PyLicensePlate.PyLicensePlate.model, PyLicensePlate.PyLicensePlate.modelname, PyLLM.PyLLM.modelname, PySceneText.PySceneText.modelname, AprilTag.AprilTag.timer, FirstPython.FirstPython.timer, PyClassificationDNN.PyClassificationDNN.timer, PyCoralClassify.PyCoralClassify.timer, PyCoralDetect.PyCoralDetect.timer, PyCoralSegment.PyCoralSegment.timer, PyDetectionDNN.PyDetectionDNN.timer, PyDMTX.PyDMTX.timer, PyEmotion.PyEmotion.timer, PyFaceMesh.PyFaceMesh.timer, PyHandDetector.PyHandDetector.timer, PyLicensePlate.PyLicensePlate.timer, PyObjectron.PyObjectron.timer, PyPoseDetector.PyPoseDetector.timer, PySceneText.PySceneText.timer, PySelfie.PySelfie.timer, PythonObject6D.PythonObject6D.timer, PythonOpenCV.PythonOpenCV.timer, PythonParallel.PythonParallel.timer, PythonSandbox.PythonSandbox.timer, PythonTest.PythonTest.timer, jevois::CameraCalibration.w, TinyImGUIdemo.w, env_dims.w, PyLicensePlate.PyLicensePlate.w, and PySceneText.PySceneText.w.

Member Data Documentation

◆ h

PyLicensePlate.PyLicensePlate.h

◆ model

◆ modelname

PyLicensePlate.PyLicensePlate.modelname

◆ timer

◆ w

PyLicensePlate.PyLicensePlate.w

The documentation for this class was generated from the following file: