1 CUDA version of Soft Cascade Classifier
2 ========================================
5 -----------------------------------------------
6 .. ocv:class:: softcascade::SCascade : public Algorithm
8 Implementation of soft (stageless) cascaded detector. ::
10 class CV_EXPORTS SCascade : public Algorithm
12 struct CV_EXPORTS Detection
21 enum {PEDESTRIAN = 0};
24 SCascade(const double minScale = 0.4, const double maxScale = 5., const int scales = 55, const int rejfactor = 1);
26 virtual bool load(const FileNode& fn);
27 virtual void detect(InputArray image, InputArray rois, OutputArray objects, Stream& stream = Stream::Null()) const;
28 virtual void genRoi(InputArray roi, OutputArray mask, Stream& stream = Stream::Null()) const;
32 softcascade::SCascade::~SCascade
33 ---------------------------------
34 Destructor for SCascade.
36 .. ocv:function:: softcascade::SCascade::~SCascade()
40 softcascade::SCascade::load
41 ----------------------------
42 Load cascade from FileNode.
44 .. ocv:function:: bool softcascade::SCascade::load(const FileNode& fn)
46 :param fn: File node from which the soft cascade are read.
50 softcascade::SCascade::detect
51 ------------------------------
52 Apply cascade to an input frame and return the vector of Decection objcts.
54 .. ocv:function:: void softcascade::SCascade::detect(InputArray image, InputArray rois, OutputArray objects, cv::cuda::Stream& stream = cv::cuda::Stream::Null()) const
56 :param image: a frame on which detector will be applied.
58 :param rois: a regions of interests mask generated by genRoi. Only the objects that fall into one of the regions will be returned.
60 :param objects: an output array of Detections represented as GpuMat of detections (SCascade::Detection). The first element of the matrix is actually a count of detections.
62 :param stream: a high-level CUDA stream abstraction used for asynchronous execution.