Board logo

标题: CascadeClassifier-对象检测(2) [打印本页]

作者: look_w    时间: 2019-2-19 17:03     标题: 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




欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0