JeVoisBase
1.22
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
|
Simple DNN network invoked from OpenCV in python. More...
Public Member Functions | |
__init__ (self) | |
[Optional] Constructor | |
init (self) | |
[Optional] JeVois parameters initialization | |
freeze (self, doit) | |
[Optional] Freeze some parameters that should not be changed at runtime | |
load (self) | |
[Required] Load the network from disk | |
process (self, blobs) | |
[Required] Main processing function: process input blobs through network and return output blobs blobs is a list of numpy arrays for the network's outputs Should return a tuple with (list of output blobs, list of info strings), where the info strings could contain some information about the network | |
Public Attributes | |
net | |
gflops | |
dataroot | |
intensors | |
outtensors | |
config | |
model | |
Simple DNN network invoked from OpenCV in python.
Definition at line 22 of file PyNetOpenCV.py.
PyNetOpenCV.PyNetOpenCV.__init__ | ( | self | ) |
[Optional] Constructor
Definition at line 25 of file PyNetOpenCV.py.
PyNetOpenCV.PyNetOpenCV.freeze | ( | self, | |
doit | |||
) |
[Optional] Freeze some parameters that should not be changed at runtime
Definition at line 61 of file PyNetOpenCV.py.
References PyNetOpenCV.PyNetOpenCV.config, PyNetKSNN.PyNetKSNN.dataroot, PyNetOpenCV.PyNetOpenCV.dataroot, PyNetORT.PyNetORT.dataroot, PyNetURetinex.PyNetURetinex.dataroot, PyNetOpenCV.PyNetOpenCV.freeze(), PyNetKSNN.PyNetKSNN.intensors, PyNetOpenCV.PyNetOpenCV.intensors, PyNetORT.PyNetORT.intensors, PyNetURetinex.PyNetURetinex.intensors, 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, and PyNetOpenCV.PyNetOpenCV.outtensors.
Referenced by PyNetOpenCV.PyNetOpenCV.freeze().
PyNetOpenCV.PyNetOpenCV.init | ( | self | ) |
[Optional] JeVois parameters initialization
Definition at line 31 of file PyNetOpenCV.py.
PyNetOpenCV.PyNetOpenCV.load | ( | self | ) |
[Required] Load the network from disk
Definition at line 70 of file PyNetOpenCV.py.
References PyNetOpenCV.PyNetOpenCV.config, PyNetKSNN.PyNetKSNN.dataroot, PyNetOpenCV.PyNetOpenCV.dataroot, PyNetORT.PyNetORT.dataroot, PyNetURetinex.PyNetURetinex.dataroot, 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, Darknet.net, Yolo.net, ObjectRecognition< NetType >.net, ObjectRecognition< tiny_dnn::sequential >.net, PyNetKSNN.PyNetKSNN.net, PyNetOpenCV.PyNetOpenCV.net, PyClassificationDNN.PyClassificationDNN.net, PyDetectionDNN.PyDetectionDNN.net, and PyEmotion.PyEmotion.net.
PyNetOpenCV.PyNetOpenCV.process | ( | self, | |
blobs | |||
) |
[Required] Main processing function: process input blobs through network and return output blobs blobs is a list of numpy arrays for the network's outputs Should return a tuple with (list of output blobs, list of info strings), where the info strings could contain some information about the network
Definition at line 81 of file PyNetOpenCV.py.
References PyNetOpenCV.PyNetOpenCV.gflops, Darknet.net, Yolo.net, ObjectRecognition< tiny_dnn::sequential >.net, ObjectRecognition< NetType >.net, PyNetKSNN.PyNetKSNN.net, PyNetOpenCV.PyNetOpenCV.net, PyClassificationDNN.PyClassificationDNN.net, PyDetectionDNN.PyDetectionDNN.net, and PyEmotion.PyEmotion.net.
PyNetOpenCV.PyNetOpenCV.config |
Definition at line 46 of file PyNetOpenCV.py.
Referenced by PyNetOpenCV.PyNetOpenCV.freeze(), and PyNetOpenCV.PyNetOpenCV.load().
PyNetOpenCV.PyNetOpenCV.dataroot |
Definition at line 34 of file PyNetOpenCV.py.
Referenced by PyNetKSNN.PyNetKSNN.freeze(), PyNetOpenCV.PyNetOpenCV.freeze(), PyNetORT.PyNetORT.freeze(), PyNetURetinex.PyNetURetinex.freeze(), PyNetKSNN.PyNetKSNN.load(), PyNetOpenCV.PyNetOpenCV.load(), PyNetORT.PyNetORT.load(), and PyNetURetinex.PyNetURetinex.load().
PyNetOpenCV.PyNetOpenCV.gflops |
Definition at line 27 of file PyNetOpenCV.py.
Referenced by PyNetOpenCV.PyNetOpenCV.process().
PyNetOpenCV.PyNetOpenCV.intensors |
Definition at line 38 of file PyNetOpenCV.py.
Referenced by PyNetKSNN.PyNetKSNN.freeze(), PyNetOpenCV.PyNetOpenCV.freeze(), PyNetORT.PyNetORT.freeze(), and PyNetURetinex.PyNetURetinex.freeze().
PyNetOpenCV.PyNetOpenCV.model |
Definition at line 52 of file PyNetOpenCV.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().
PyNetOpenCV.PyNetOpenCV.net |
Definition at line 26 of file PyNetOpenCV.py.
Referenced by PyNetKSNN.PyNetKSNN.load(), PyNetOpenCV.PyNetOpenCV.load(), PyDetectionDNN.PyDetectionDNN.postprocess(), PyNetKSNN.PyNetKSNN.process(), PyNetOpenCV.PyNetOpenCV.process(), PyClassificationDNN.PyClassificationDNN.process(), and PyDetectionDNN.PyDetectionDNN.process().
PyNetOpenCV.PyNetOpenCV.outtensors |
Definition at line 42 of file PyNetOpenCV.py.
Referenced by PyNetOpenCV.PyNetOpenCV.freeze().