OpenCV 4.5.3(日本語機械翻訳)
xobjdetect.hpp
1 /*
2
3 By downloading, copying, installing or using the software you agree to this
4 license. If you do not agree to this license, do not download, install,
5 copy or use the software.
6
7
8 License Agreement
9 For Open Source Computer Vision Library
10 (3-clause BSD License)
11
12 Copyright (C) 2013, OpenCV Foundation, all rights reserved.
13 Third party copyrights are property of their respective owners.
14
15 Redistribution and use in source and binary forms, with or without modification,
16 are permitted provided that the following conditions are met:
17
18 * Redistributions of source code must retain the above copyright notice,
19 this list of conditions and the following disclaimer.
20
21 * Redistributions in binary form must reproduce the above copyright notice,
22 this list of conditions and the following disclaimer in the documentation
23 and/or other materials provided with the distribution.
24
25 * Neither the names of the copyright holders nor the names of the contributors
26 may be used to endorse or promote products derived from this software
27 without specific prior written permission.
28
29 This software is provided by the copyright holders and contributors "as is" and
30 any express or implied warranties, including, but not limited to, the implied
31 warranties of merchantability and fitness for a particular purpose are
32 disclaimed. In no event shall copyright holders or contributors be liable for
33 any direct, indirect, incidental, special, exemplary, or consequential damages
34 (including, but not limited to, procurement of substitute goods or services;
35 loss of use, data, or profits; or business interruption) however caused
36 and on any theory of liability, whether in contract, strict liability,
37 or tort (including negligence or otherwise) arising in any way out of
38 the use of this software, even if advised of the possibility of such damage.
39
40 */
41
42 #ifndef __OPENCV_XOBJDETECT_XOBJDETECT_HPP__
43 #define __OPENCV_XOBJDETECT_XOBJDETECT_HPP__
44
45 #include <opencv2/core.hpp>
46 #include <vector>
47 #include <string>
48
51 namespace cv
52{
53 namespace xobjdetect
54{
57
58
61 class CV_EXPORTS WBDetector {
62 public:
66 virtual void read(const FileNode &node) = 0;
67
71 virtual void write(FileStorage &fs) const = 0;
72
77 virtual void train(
78 const std::string& pos_samples,
79 const std::string& neg_imgs) = 0;
80
86 virtual void detect(
87 const Mat& img,
88 std::vector<Rect> &bboxes,
89 std::vector<double> &confidences) = 0;
90
94
95 virtual ~WBDetector(){}
96};
97
98
100
101} /* namespace xobjdetect */
102} /* namespace cv */
103
104 #endif /* __OPENCV_XOBJDETECT_XOBJDETECT_HPP__ */
File Storage Node class.
Definition: persistence.hpp:482
XML/YAML/JSON file storage class that encapsulates all the information necessary for writing or readi...
Definition: persistence.hpp:304
n-dimensional dense array class
Definition: mat.hpp:802
WaldBoost detector
Definition: xobjdetect.hpp:61
virtual void train(const std::string &pos_samples, const std::string &neg_imgs)=0
Train WaldBoost detector
static Ptr< WBDetector > create()
Create instance of WBDetector
virtual void write(FileStorage &fs) const =0
Write detector to FileStorage.
virtual void detect(const Mat &img, std::vector< Rect > &bboxes, std::vector< double > &confidences)=0
Detect objects on image using WaldBoost detector
virtual void read(const FileNode &node)=0
Read detector from FileNode.
cv
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75
Definition: cvstd_wrapper.hpp:74