JeVoisBase
1.20
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
|
Detect and decode English or Chinese text on NPU using TIM-VX. More...
Public Member Functions | |
def | __init__ (self) |
Constructor. More... | |
def | processGUI (self, inframe, helper) |
Process function with GUI output. More... | |
Public Attributes | |
modelname | |
charset | |
tdname | |
recognizer | |
detector | |
timer | |
h | |
Detect and decode English or Chinese text on NPU using 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/text_recognition_crnn See LICENSE for license information.
By default, English is used, but you can change that to Chinese in the constructor
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 37 of file PySceneText.py.
def PySceneText.PySceneText.__init__ | ( | self | ) |
Constructor.
Definition at line 40 of file PySceneText.py.
def PySceneText.PySceneText.processGUI | ( | self, | |
inframe, | |||
helper | |||
) |
Process function with GUI output.
Definition at line 79 of file PySceneText.py.
References PySceneText.PySceneText.charset, PySceneText.PySceneText.detector, demo.float, PyLicensePlate.PyLicensePlate.h, PySceneText.PySceneText.h, env_dims.h, PyLicensePlate.PyLicensePlate.modelname, PySceneText.PySceneText.modelname, PySceneText.PySceneText.recognizer, PySceneText.PySceneText.tdname, PythonTutorial2::PythonTutorial2.timer, PyModule::__MODULE__.timer, PyFaceMesh.PyFaceMesh.timer, PyPoseDetector.PyPoseDetector.timer, PyHandDetector.PyHandDetector.timer, PyDMTX.PyDMTX.timer, PyObjectron.PyObjectron.timer, PyEmotion.PyEmotion.timer, PyLicensePlate.PyLicensePlate.timer, PyCoralDetect.PyCoralDetect.timer, PyCoralSegment.PyCoralSegment.timer, PySceneText.PySceneText.timer, PyCoralClassify.PyCoralClassify.timer, PyClassificationDNN.PyClassificationDNN.timer, FirstPython.FirstPython.timer, PyDetectionDNN.PyDetectionDNN.timer, E.w, PyLicensePlate.PyLicensePlate.w, and env_dims.w.
PySceneText.PySceneText.charset |
Definition at line 48 of file PySceneText.py.
Referenced by PySceneText.PySceneText.processGUI().
PySceneText.PySceneText.detector |
Definition at line 62 of file PySceneText.py.
Referenced by PySceneText.PySceneText.processGUI().
PySceneText.PySceneText.h |
Definition at line 75 of file PySceneText.py.
Referenced by PySceneText.PySceneText.processGUI().
PySceneText.PySceneText.modelname |
Definition at line 47 of file PySceneText.py.
Referenced by PySceneText.PySceneText.processGUI().
PySceneText.PySceneText.recognizer |
Definition at line 59 of file PySceneText.py.
Referenced by PySceneText.PySceneText.processGUI().
PySceneText.PySceneText.tdname |
Definition at line 49 of file PySceneText.py.
Referenced by PySceneText.PySceneText.processGUI().
PySceneText.PySceneText.timer |
Definition at line 72 of file PySceneText.py.
Referenced by PythonOpenCV.PythonOpenCV.process(), PythonSandbox.PythonSandbox.process(), PythonParallel.PythonParallel.process(), PythonObject6D.PythonObject6D.process(), PySelfie.PySelfie.processGUI(), PySceneText.PySceneText.processGUI(), PythonTest.PythonTest.processGUI(), PythonSandbox.PythonSandbox.processGUI(), PythonSandbox.PythonSandbox.processNoUSB(), and PythonObject6D.PythonObject6D.processNoUSB().