首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

CascadeClassifier-对象检测(2)

CascadeClassifier-对象检测(2)

二 CascadeClassifier 初始化
§ detectMultiScale() 有三个重载函数

    void cv::CascadeClassifier::detectMultiScale ( InputArray image,std::vector< Rect > & objects,double scaleFactor = 1.1,int minNeighbors = 3,int flags = 0,Size minSize = Size(),Size maxSize = Size())

    void cv::CascadeClassifier::detectMultiScale ( InputArray image,std::vector< Rect > & objects,std::vector< int > & numDetections,double scaleFactor = 1.1,int minNeighbors = 3,int flags = 0,Size minSize = Size(),Size maxSize = Size())

    void cv::CascadeClassifier::detectMultiScale ( InputArray image,std::vector< Rect > & objects,std::vector< int > & rejectLevels,std::vector< double > & levelWeights,double scaleFactor = 1.1,int minNeighbors = 3,int flags = 0,Size minSize = Size(),Size maxSize = Size(),bool outputRejectLevels = false)

但是机器上打出来是这样的:
4092596-66a5ad84ac47d372.png
重载函数

又一点点不一样,就按照机器打出来的说吧。

    Parameters

    image: Matrix of the type CV_8U containing an image where objects are detected.

    objects: Vector of rectangles where each rectangle contains the detected object, the rectangles may be partially outside the original image.

    numDetections: Vector of detection numbers for the corresponding objects. An object's number of detections is the number of neighboring positively classified rectangles that were joined together to form the object.

对于这个rejectleves、levelweights 文档给出的解释是:

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. if outputRejectLevels is true returns rejectLevels and levelWeights
返回列表