JeVoisBase
1.22
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
|
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 | |
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.
Definition at line 39 of file PyLicensePlate.py.
PyLicensePlate.PyLicensePlate.__init__ | ( | self | ) |
Constructor.
Definition at line 42 of file PyLicensePlate.py.
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.
PyLicensePlate.PyLicensePlate.h |
Definition at line 58 of file PyLicensePlate.py.
Referenced by PyLicensePlate.PyLicensePlate.processGUI(), and PySceneText.PySceneText.processGUI().
PyLicensePlate.PyLicensePlate.model |
Definition at line 46 of file PyLicensePlate.py.
Referenced by lpd_yunet.LPD_YuNet.__init__(), PyNetKSNN.PyNetKSNN.freeze(), PyNetOpenCV.PyNetOpenCV.freeze(), PyNetORT.PyNetORT.freeze(), PyNetURetinex.PyNetURetinex.freeze(), mobilenet_v1.MobileNetV1.infer(), mobilenet_v2.MobileNetV2.infer(), lpd_yunet.LPD_YuNet.infer(), mp_palmdet.MPPalmDet.infer(), PyNetKSNN.PyNetKSNN.load(), PyNetOpenCV.PyNetOpenCV.load(), PyNetORT.PyNetORT.load(), PyNetURetinex.PyNetURetinex.load(), PyClassificationDNN.PyClassificationDNN.process(), PyCoralClassify.PyCoralClassify.process(), PyCoralDetect.PyCoralDetect.process(), PyCoralSegment.PyCoralSegment.process(), PyDetectionDNN.PyDetectionDNN.process(), PyCoralClassify.PyCoralClassify.processGUI(), PyCoralDetect.PyCoralDetect.processGUI(), PyCoralSegment.PyCoralSegment.processGUI(), PyLicensePlate.PyLicensePlate.processGUI(), mobilenet_v1.MobileNetV1.setBackend(), mobilenet_v2.MobileNetV2.setBackend(), lpd_yunet.LPD_YuNet.setBackend(), mp_palmdet.MPPalmDet.setBackend(), mobilenet_v1.MobileNetV1.setTarget(), mobilenet_v2.MobileNetV2.setTarget(), lpd_yunet.LPD_YuNet.setTarget(), and mp_palmdet.MPPalmDet.setTarget().
PyLicensePlate.PyLicensePlate.modelname |
Definition at line 44 of file PyLicensePlate.py.
Referenced by PyLicensePlate.PyLicensePlate.processGUI(), PyLLM.PyLLM.processGUI(), and PySceneText.PySceneText.processGUI().
PyLicensePlate.PyLicensePlate.timer |
Definition at line 55 of file PyLicensePlate.py.
Referenced by FirstPython.FirstPython.process(), PyClassificationDNN.PyClassificationDNN.process(), PyCoralClassify.PyCoralClassify.process(), PyCoralDetect.PyCoralDetect.process(), PyCoralSegment.PyCoralSegment.process(), PyDetectionDNN.PyDetectionDNN.process(), PyDMTX.PyDMTX.process(), PythonObject6D.PythonObject6D.process(), PythonOpenCV.PythonOpenCV.process(), PythonParallel.PythonParallel.process(), PythonSandbox.PythonSandbox.process(), AprilTag.AprilTag.processGUI(), PyCoralClassify.PyCoralClassify.processGUI(), PyCoralDetect.PyCoralDetect.processGUI(), PyCoralSegment.PyCoralSegment.processGUI(), PyFaceMesh.PyFaceMesh.processGUI(), PyHandDetector.PyHandDetector.processGUI(), PyLicensePlate.PyLicensePlate.processGUI(), PyObjectron.PyObjectron.processGUI(), PyPoseDetector.PyPoseDetector.processGUI(), PySceneText.PySceneText.processGUI(), PySelfie.PySelfie.processGUI(), PythonOpenCV.PythonOpenCV.processGUI(), PythonSandbox.PythonSandbox.processGUI(), PythonTest.PythonTest.processGUI(), FirstPython.FirstPython.processNoUSB(), PythonObject6D.PythonObject6D.processNoUSB(), and PythonSandbox.PythonSandbox.processNoUSB().
PyLicensePlate.PyLicensePlate.w |
Definition at line 59 of file PyLicensePlate.py.
Referenced by PyLicensePlate.PyLicensePlate.processGUI(), and PySceneText.PySceneText.processGUI().