2 Star 5 Fork 1

wensiying/人脸跟随智能小车之目标检测功能 OpencvDNN yolov4

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
dnn_DetectionModel.py 3.17 KB
一键复制 编辑 原始数据 按行查看 历史
wensiying 提交于 2022-11-08 17:39 . yolov4
# encoding: utf-8
# module cv2.cv2
# from C:\ProgramData\Anaconda3\Lib\site-packages\cv2\cv2.pyd
# by generator 1.147
""" Python wrapper for OpenCV. """
# imports
import cv2 # C:\ProgramData\Anaconda3\Lib\site-packages\cv2\__init__.py
import cv2.Error as Error # <module 'cv2.Error'>
import cv2.cuda as cuda # <module 'cv2.cuda'>
import cv2.detail as detail # <module 'cv2.detail'>
import cv2.dnn as dnn # <module 'cv2.dnn'>
import cv2.fisheye as fisheye # <module 'cv2.fisheye'>
import cv2.flann as flann # <module 'cv2.flann'>
import cv2.gapi as gapi # <module 'cv2.gapi'>
import cv2.ipp as ipp # <module 'cv2.ipp'>
import cv2.ml as ml # <module 'cv2.ml'>
import cv2.ocl as ocl # <module 'cv2.ocl'>
import cv2.ogl as ogl # <module 'cv2.ogl'>
import cv2.parallel as parallel # <module 'cv2.parallel'>
import cv2.samples as samples # <module 'cv2.samples'>
import cv2.segmentation as segmentation # <module 'cv2.segmentation'>
import cv2.utils as utils # <module 'cv2.utils'>
import cv2.videoio_registry as videoio_registry # <module 'cv2.videoio_registry'>
import cv2 as __cv2
class dnn_DetectionModel(__cv2.dnn_Model):
# no doc
def detect(self, frame, confThreshold=None, nmsThreshold=None): # real signature unknown; restored from __doc__
"""
detect(frame[, confThreshold[, nmsThreshold]]) -> classIds, confidences, boxes
. @brief Given the @p input frame, create input blob, run net and return result detections.
. * @param[in] frame The input image.
. * @param[out] classIds Class indexes in result detection.
. * @param[out] confidences A set of corresponding confidences.
. * @param[out] boxes A set of bounding boxes.
. * @param[in] confThreshold A threshold used to filter boxes by confidences.
. * @param[in] nmsThreshold A threshold used in non maximum suppression.
"""
pass
def getNmsAcrossClasses(self): # real signature unknown; restored from __doc__
"""
getNmsAcrossClasses() -> retval
. * @brief Getter for nmsAcrossClasses. This variable defaults to false,
. * such that when non max suppression is used during the detect() function, it will do so only per-class
"""
pass
def setNmsAcrossClasses(self, value): # real signature unknown; restored from __doc__
"""
setNmsAcrossClasses(value) -> retval
. * @brief nmsAcrossClasses defaults to false,
. * such that when non max suppression is used during the detect() function, it will do so per-class.
. * This function allows you to toggle this behaviour.
. * @param[in] value The new value for nmsAcrossClasses
"""
pass
def __init__(self, *args, **kwargs): # real signature unknown
pass
@staticmethod # known case of __new__
def __new__(*args, **kwargs): # real signature unknown
""" Create and return a new object. See help(type) for accurate signature. """
pass
def __repr__(self, *args, **kwargs): # real signature unknown
""" Return repr(self). """
pass
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/wensiying/DNNyolov4.git
git@gitee.com:wensiying/DNNyolov4.git
wensiying
DNNyolov4
人脸跟随智能小车之目标检测功能 OpencvDNN yolov4
master

搜索帮助