JeVoisBase
1.22
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
|
Public Member Functions | |
__init__ (self, modelPath, inputSize=[320, 240], confThreshold=0.8, nmsThreshold=0.3, topK=5000, keepTopK=750, backendId=0, targetId=0) | |
name (self) | |
setBackend (self, backendId) | |
setTarget (self, targetId) | |
setInputSize (self, inputSize) | |
infer (self, image) | |
__init__ (self, modelPath, inputSize=[320, 240], confThreshold=0.8, nmsThreshold=0.3, topK=5000, keepTopK=750, backendId=0, targetId=0) | |
name (self) | |
setBackend (self, backendId) | |
setTarget (self, targetId) | |
setInputSize (self, inputSize) | |
infer (self, image) | |
Public Attributes | |
model_path | |
input_size | |
confidence_threshold | |
nms_threshold | |
top_k | |
keep_top_k | |
backend_id | |
target_id | |
output_names | |
min_sizes | |
steps | |
variance | |
model | |
priors | |
Protected Member Functions | |
_preprocess (self, image) | |
_postprocess (self, blob) | |
_priorGen (self) | |
_decode (self, blob) | |
_preprocess (self, image) | |
_postprocess (self, blob) | |
_priorGen (self) | |
_decode (self, blob) | |
Definition at line 6 of file lpd_yunet.py.
lpd_yunet.LPD_YuNet.__init__ | ( | self, | |
modelPath, | |||
inputSize = [320, 240] , |
|||
confThreshold = 0.8 , |
|||
nmsThreshold = 0.3 , |
|||
topK = 5000 , |
|||
keepTopK = 750 , |
|||
backendId = 0 , |
|||
targetId = 0 |
|||
) |
Definition at line 7 of file lpd_yunet.py.
lpd_yunet.LPD_YuNet.__init__ | ( | self, | |
modelPath, | |||
inputSize = [320, 240] , |
|||
confThreshold = 0.8 , |
|||
nmsThreshold = 0.3 , |
|||
topK = 5000 , |
|||
keepTopK = 750 , |
|||
backendId = 0 , |
|||
targetId = 0 |
|||
) |
Definition at line 7 of file lpd_yunet.py.
References lpd_yunet.LPD_YuNet._priorGen(), mobilenet_v1.MobileNetV1.backend_id, mobilenet_v2.MobileNetV2.backend_id, lpd_yunet.LPD_YuNet.backend_id, mp_palmdet.MPPalmDet.backend_id, lpd_yunet.LPD_YuNet.confidence_threshold, mobilenet_v1.MobileNetV1.input_size, mobilenet_v2.MobileNetV2.input_size, lpd_yunet.LPD_YuNet.input_size, mp_palmdet.MPPalmDet.input_size, lpd_yunet.LPD_YuNet.keep_top_k, lpd_yunet.LPD_YuNet.min_sizes, 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, mobilenet_v1.MobileNetV1.model_path, mobilenet_v2.MobileNetV2.model_path, lpd_yunet.LPD_YuNet.model_path, mp_palmdet.MPPalmDet.model_path, quantize-inc.Quantize.model_path, quantize-ort.Quantize.model_path, lpd_yunet.LPD_YuNet.nms_threshold, mp_palmdet.MPPalmDet.nms_threshold, mobilenet_v1.MobileNetV1.output_names, mobilenet_v2.MobileNetV2.output_names, lpd_yunet.LPD_YuNet.output_names, jevois::DMPdata.steps, lpd_yunet.LPD_YuNet.steps, mobilenet_v1.MobileNetV1.target_id, mobilenet_v2.MobileNetV2.target_id, lpd_yunet.LPD_YuNet.target_id, mp_palmdet.MPPalmDet.target_id, lpd_yunet.LPD_YuNet.top_k, and lpd_yunet.LPD_YuNet.variance.
|
protected |
Definition at line 111 of file lpd_yunet.py.
References mobilenet_v1.MobileNetV1.input_size, mobilenet_v2.MobileNetV2.input_size, lpd_yunet.LPD_YuNet.input_size, mp_palmdet.MPPalmDet.input_size, lpd_yunet.LPD_YuNet.priors, and lpd_yunet.LPD_YuNet.variance.
Referenced by lpd_yunet.LPD_YuNet._postprocess().
|
protected |
Definition at line 111 of file lpd_yunet.py.
References mobilenet_v1.MobileNetV1.input_size, mobilenet_v2.MobileNetV2.input_size, lpd_yunet.LPD_YuNet.input_size, mp_palmdet.MPPalmDet.input_size, lpd_yunet.LPD_YuNet.priors, and lpd_yunet.LPD_YuNet.variance.
Referenced by lpd_yunet.LPD_YuNet._postprocess().
|
protected |
Definition at line 63 of file lpd_yunet.py.
References lpd_yunet.LPD_YuNet._decode(), lpd_yunet.LPD_YuNet.confidence_threshold, lpd_yunet.LPD_YuNet.keep_top_k, lpd_yunet.LPD_YuNet.nms_threshold, mp_palmdet.MPPalmDet.nms_threshold, and lpd_yunet.LPD_YuNet.top_k.
Referenced by pphumanseg.PPHumanSeg.infer(), mobilenet_v1.MobileNetV1.infer(), mobilenet_v2.MobileNetV2.infer(), ppresnet.PPResNet.infer(), lpd_yunet.LPD_YuNet.infer(), mp_palmdet.MPPalmDet.infer(), and crnn.CRNN.infer().
|
protected |
Definition at line 63 of file lpd_yunet.py.
References lpd_yunet.LPD_YuNet._decode(), lpd_yunet.LPD_YuNet.confidence_threshold, lpd_yunet.LPD_YuNet.keep_top_k, lpd_yunet.LPD_YuNet.nms_threshold, mp_palmdet.MPPalmDet.nms_threshold, and lpd_yunet.LPD_YuNet.top_k.
Referenced by pphumanseg.PPHumanSeg.infer(), mobilenet_v1.MobileNetV1.infer(), mobilenet_v2.MobileNetV2.infer(), ppresnet.PPResNet.infer(), lpd_yunet.LPD_YuNet.infer(), mp_palmdet.MPPalmDet.infer(), and crnn.CRNN.infer().
|
protected |
Definition at line 44 of file lpd_yunet.py.
Referenced by pphumanseg.PPHumanSeg.infer(), mobilenet_v1.MobileNetV1.infer(), mobilenet_v2.MobileNetV2.infer(), ppresnet.PPResNet.infer(), lpd_yunet.LPD_YuNet.infer(), mp_palmdet.MPPalmDet.infer(), youtureid.YoutuReID.infer(), sface.SFace.infer(), and crnn.CRNN.infer().
|
protected |
Definition at line 44 of file lpd_yunet.py.
Referenced by pphumanseg.PPHumanSeg.infer(), mobilenet_v1.MobileNetV1.infer(), mobilenet_v2.MobileNetV2.infer(), ppresnet.PPResNet.infer(), lpd_yunet.LPD_YuNet.infer(), mp_palmdet.MPPalmDet.infer(), youtureid.YoutuReID.infer(), sface.SFace.infer(), and crnn.CRNN.infer().
|
protected |
Definition at line 81 of file lpd_yunet.py.
References mobilenet_v1.MobileNetV1.input_size, mobilenet_v2.MobileNetV2.input_size, lpd_yunet.LPD_YuNet.input_size, mp_palmdet.MPPalmDet.input_size, lpd_yunet.LPD_YuNet.min_sizes, jevois::DMPdata.steps, and lpd_yunet.LPD_YuNet.steps.
Referenced by lpd_yunet.LPD_YuNet.__init__(), and lpd_yunet.LPD_YuNet.setInputSize().
|
protected |
Definition at line 81 of file lpd_yunet.py.
References mobilenet_v1.MobileNetV1.input_size, mobilenet_v2.MobileNetV2.input_size, lpd_yunet.LPD_YuNet.input_size, mp_palmdet.MPPalmDet.input_size, lpd_yunet.LPD_YuNet.min_sizes, lpd_yunet.LPD_YuNet.priors, jevois::DMPdata.steps, and lpd_yunet.LPD_YuNet.steps.
Referenced by lpd_yunet.LPD_YuNet.__init__(), and lpd_yunet.LPD_YuNet.setInputSize().
lpd_yunet.LPD_YuNet.infer | ( | self, | |
image | |||
) |
Definition at line 47 of file lpd_yunet.py.
References lpd_yunet.LPD_YuNet._postprocess(), mobilenet_v1.MobileNetV1._postprocess(), mobilenet_v2.MobileNetV2._postprocess(), mp_palmdet.MPPalmDet._postprocess(), pphumanseg.PPHumanSeg._postprocess(), ppresnet.PPResNet._postprocess(), crnn.CRNN._postprocess(), pphumanseg.PPHumanSeg._preprocess(), mobilenet_v1.MobileNetV1._preprocess(), mobilenet_v2.MobileNetV2._preprocess(), ppresnet.PPResNet._preprocess(), lpd_yunet.LPD_YuNet._preprocess(), mp_palmdet.MPPalmDet._preprocess(), youtureid.YoutuReID._preprocess(), sface.SFace._preprocess(), crnn.CRNN._preprocess(), mobilenet_v1.MobileNetV1.input_size, mobilenet_v2.MobileNetV2.input_size, lpd_yunet.LPD_YuNet.input_size, mp_palmdet.MPPalmDet.input_size, 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, mobilenet_v1.MobileNetV1.output_names, mobilenet_v2.MobileNetV2.output_names, and lpd_yunet.LPD_YuNet.output_names.
Referenced by sface.SFace.match(), and youtureid.YoutuReID.query().
lpd_yunet.LPD_YuNet.infer | ( | self, | |
image | |||
) |
Definition at line 47 of file lpd_yunet.py.
References lpd_yunet.LPD_YuNet._postprocess(), mobilenet_v1.MobileNetV1._postprocess(), mobilenet_v2.MobileNetV2._postprocess(), mp_palmdet.MPPalmDet._postprocess(), pphumanseg.PPHumanSeg._postprocess(), ppresnet.PPResNet._postprocess(), crnn.CRNN._postprocess(), pphumanseg.PPHumanSeg._preprocess(), mobilenet_v1.MobileNetV1._preprocess(), mobilenet_v2.MobileNetV2._preprocess(), ppresnet.PPResNet._preprocess(), lpd_yunet.LPD_YuNet._preprocess(), mp_palmdet.MPPalmDet._preprocess(), youtureid.YoutuReID._preprocess(), sface.SFace._preprocess(), crnn.CRNN._preprocess(), mobilenet_v1.MobileNetV1.input_size, mobilenet_v2.MobileNetV2.input_size, lpd_yunet.LPD_YuNet.input_size, mp_palmdet.MPPalmDet.input_size, 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, mobilenet_v1.MobileNetV1.output_names, mobilenet_v2.MobileNetV2.output_names, and lpd_yunet.LPD_YuNet.output_names.
Referenced by sface.SFace.match(), and youtureid.YoutuReID.query().
lpd_yunet.LPD_YuNet.name | ( | self | ) |
Definition at line 28 of file lpd_yunet.py.
lpd_yunet.LPD_YuNet.name | ( | self | ) |
Definition at line 28 of file lpd_yunet.py.
lpd_yunet.LPD_YuNet.setBackend | ( | self, | |
backendId | |||
) |
Definition at line 31 of file lpd_yunet.py.
References mobilenet_v1.MobileNetV1.backend_id, mobilenet_v2.MobileNetV2.backend_id, lpd_yunet.LPD_YuNet.backend_id, mp_palmdet.MPPalmDet.backend_id, 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, and PyLicensePlate.PyLicensePlate.model.
lpd_yunet.LPD_YuNet.setBackend | ( | self, | |
backendId | |||
) |
Definition at line 31 of file lpd_yunet.py.
References mobilenet_v1.MobileNetV1.backend_id, mobilenet_v2.MobileNetV2.backend_id, lpd_yunet.LPD_YuNet.backend_id, mp_palmdet.MPPalmDet.backend_id, 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, and PyLicensePlate.PyLicensePlate.model.
lpd_yunet.LPD_YuNet.setInputSize | ( | self, | |
inputSize | |||
) |
Definition at line 39 of file lpd_yunet.py.
References lpd_yunet.LPD_YuNet._priorGen(), mobilenet_v1.MobileNetV1.input_size, mobilenet_v2.MobileNetV2.input_size, lpd_yunet.LPD_YuNet.input_size, and mp_palmdet.MPPalmDet.input_size.
lpd_yunet.LPD_YuNet.setInputSize | ( | self, | |
inputSize | |||
) |
Definition at line 39 of file lpd_yunet.py.
References lpd_yunet.LPD_YuNet._priorGen(), mobilenet_v1.MobileNetV1.input_size, mobilenet_v2.MobileNetV2.input_size, lpd_yunet.LPD_YuNet.input_size, and mp_palmdet.MPPalmDet.input_size.
lpd_yunet.LPD_YuNet.setTarget | ( | self, | |
targetId | |||
) |
Definition at line 35 of file lpd_yunet.py.
References 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, mobilenet_v1.MobileNetV1.target_id, mobilenet_v2.MobileNetV2.target_id, lpd_yunet.LPD_YuNet.target_id, and mp_palmdet.MPPalmDet.target_id.
lpd_yunet.LPD_YuNet.setTarget | ( | self, | |
targetId | |||
) |
Definition at line 35 of file lpd_yunet.py.
References 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, mobilenet_v1.MobileNetV1.target_id, mobilenet_v2.MobileNetV2.target_id, lpd_yunet.LPD_YuNet.target_id, and mp_palmdet.MPPalmDet.target_id.
lpd_yunet.LPD_YuNet.backend_id |
Definition at line 14 of file lpd_yunet.py.
Referenced by lpd_yunet.LPD_YuNet.__init__(), mobilenet_v1.MobileNetV1.setBackend(), mobilenet_v2.MobileNetV2.setBackend(), lpd_yunet.LPD_YuNet.setBackend(), and mp_palmdet.MPPalmDet.setBackend().
lpd_yunet.LPD_YuNet.confidence_threshold |
Definition at line 10 of file lpd_yunet.py.
Referenced by lpd_yunet.LPD_YuNet.__init__(), and lpd_yunet.LPD_YuNet._postprocess().
lpd_yunet.LPD_YuNet.input_size |
Definition at line 9 of file lpd_yunet.py.
Referenced by lpd_yunet.LPD_YuNet.__init__(), lpd_yunet.LPD_YuNet._decode(), mp_palmdet.MPPalmDet._postprocess(), mp_palmdet.MPPalmDet._preprocess(), lpd_yunet.LPD_YuNet._priorGen(), lpd_yunet.LPD_YuNet.infer(), and lpd_yunet.LPD_YuNet.setInputSize().
lpd_yunet.LPD_YuNet.keep_top_k |
Definition at line 13 of file lpd_yunet.py.
Referenced by lpd_yunet.LPD_YuNet.__init__(), and lpd_yunet.LPD_YuNet._postprocess().
lpd_yunet.LPD_YuNet.min_sizes |
Definition at line 18 of file lpd_yunet.py.
Referenced by lpd_yunet.LPD_YuNet.__init__(), and lpd_yunet.LPD_YuNet._priorGen().
lpd_yunet.LPD_YuNet.model |
Definition at line 23 of file lpd_yunet.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().
lpd_yunet.LPD_YuNet.model_path |
Definition at line 8 of file lpd_yunet.py.
Referenced by lpd_yunet.LPD_YuNet.__init__(), quantize-ort.Quantize.check_opset(), quantize-inc.Quantize.run(), and quantize-ort.Quantize.run().
lpd_yunet.LPD_YuNet.nms_threshold |
Definition at line 11 of file lpd_yunet.py.
Referenced by lpd_yunet.LPD_YuNet.__init__(), lpd_yunet.LPD_YuNet._postprocess(), and mp_palmdet.MPPalmDet._postprocess().
lpd_yunet.LPD_YuNet.output_names |
Definition at line 17 of file lpd_yunet.py.
Referenced by lpd_yunet.LPD_YuNet.__init__(), mobilenet_v1.MobileNetV1.infer(), mobilenet_v2.MobileNetV2.infer(), and lpd_yunet.LPD_YuNet.infer().
lpd_yunet.LPD_YuNet.priors |
Definition at line 109 of file lpd_yunet.py.
Referenced by lpd_yunet.LPD_YuNet._decode(), and lpd_yunet.LPD_YuNet._priorGen().
lpd_yunet.LPD_YuNet.steps |
Definition at line 19 of file lpd_yunet.py.
Referenced by lpd_yunet.LPD_YuNet.__init__(), and lpd_yunet.LPD_YuNet._priorGen().
lpd_yunet.LPD_YuNet.target_id |
Definition at line 15 of file lpd_yunet.py.
Referenced by lpd_yunet.LPD_YuNet.__init__(), mobilenet_v1.MobileNetV1.setTarget(), mobilenet_v2.MobileNetV2.setTarget(), lpd_yunet.LPD_YuNet.setTarget(), and mp_palmdet.MPPalmDet.setTarget().
lpd_yunet.LPD_YuNet.top_k |
Definition at line 12 of file lpd_yunet.py.
Referenced by lpd_yunet.LPD_YuNet.__init__(), and lpd_yunet.LPD_YuNet._postprocess().
lpd_yunet.LPD_YuNet.variance |
Definition at line 20 of file lpd_yunet.py.
Referenced by lpd_yunet.LPD_YuNet.__init__(), and lpd_yunet.LPD_YuNet._decode().