This is a C++ abstract class, it provides external user API to work with DPM.
More...
#include <opencv2/dpm.hpp>
|
virtual | ~DPMDetector () |
|
virtual void | detect (cv::Mat &image, std::vector< ObjectDetection > &objects)=0 |
| Find rectangular regions in the given image that are likely to contain objects of loaded classes (models) and corresponding confidence levels.
|
|
virtual size_t | getClassCount () const =0 |
| Return a count of loaded models (classes).
|
|
virtual std::vector
< std::string > const & | getClassNames () const =0 |
| Return the class (model) names that were passed in constructor or method load or extracted from models filenames in those methods.
|
|
virtual bool | isEmpty () const =0 |
|
|
static cv::Ptr< DPMDetector > | create (std::vector< std::string > const &filenames, std::vector< std::string > const &classNames=std::vector< std::string >()) |
| Load the trained models from given .xml files and return cv::Ptr<DPMDetector>.
|
|
This is a C++ abstract class, it provides external user API to work with DPM.
virtual cv::dpm::DPMDetector::~DPMDetector |
( |
| ) |
|
|
inlinevirtual |
static cv::Ptr<DPMDetector> cv::dpm::DPMDetector::create |
( |
std::vector< std::string > const & |
filenames, |
|
|
std::vector< std::string > const & |
classNames = std::vector< std::string >() |
|
) |
| |
|
static |
Load the trained models from given .xml files and return cv::Ptr<DPMDetector>.
- Parameters
-
filenames | A set of filenames storing the trained detectors (models). Each file contains one model. See examples of such files here /opencv_extra/testdata/cv/dpm/VOC2007_Cascade/ . |
classNames | A set of trained models names. If it's empty then the name of each model will be constructed from the name of file containing the model. E.g. the model stored in "/home/user/cat.xml" will get the name "cat". |
Find rectangular regions in the given image that are likely to contain objects of loaded classes (models) and corresponding confidence levels.
- Parameters
-
image | An image. |
objects | The detections: rectangulars, scores and class IDs. |
virtual size_t cv::dpm::DPMDetector::getClassCount |
( |
| ) |
const |
|
pure virtual |
Return a count of loaded models (classes).
virtual std::vector<std::string> const& cv::dpm::DPMDetector::getClassNames |
( |
| ) |
const |
|
pure virtual |
Return the class (model) names that were passed in constructor or method load or extracted from models filenames in those methods.
virtual bool cv::dpm::DPMDetector::isEmpty |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: