OpenCV 4.5.3(日本語機械翻訳)
textDetector.hpp
1 // This file is part of OpenCV project.
2 // It is subject to the license terms in the LICENSE file found in the top-level directory
3 // of this distribution and at http://opencv.org/license.html.
4
5 #ifndef __OPENCV_TEXT_TEXTDETECTOR_HPP__
6 #define __OPENCV_TEXT_TEXTDETECTOR_HPP__
7
8 #include "ocr.hpp"
9
10 namespace cv
11{
12 namespace text
13{
14
17
20 class CV_EXPORTS_W TextDetector
21{
22 public:
30 CV_WRAP virtual void detect(InputArray inputImage, CV_OUT std::vector<Rect>& Bbox, CV_OUT std::vector<float>& confidence) = 0;
31 virtual ~TextDetector() {}
32};
33
41 class CV_EXPORTS_W TextDetectorCNN : public TextDetector
42{
43 public:
51 CV_WRAP virtual void detect(InputArray inputImage, CV_OUT std::vector<Rect>& Bbox, CV_OUT std::vector<float>& confidence) CV_OVERRIDE = 0;
52
60 static Ptr<TextDetectorCNN> create(const String& modelArchFilename, const String& modelWeightsFilename,
61 std::vector<Size> detectionSizes);
65 CV_WRAP static Ptr<TextDetectorCNN> create(const String& modelArchFilename, const String& modelWeightsFilename);
66};
67
69}//namespace text
70}//namespace cv
71
72
73 #endif // _OPENCV_TEXT_OCR_HPP_
TextDetectorCNN class provides the functionallity of text bounding box detection. This class is repre...
Definition: textDetector.hpp:42
static Ptr< TextDetectorCNN > create(const String &modelArchFilename, const String &modelWeightsFilename, std::vector< Size > detectionSizes)
Creates an instance of the TextDetectorCNN class using the provided parameters.
An abstract class providing interface for text detection algorithms
Definition: textDetector.hpp:21
cv
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75
Definition: cvstd_wrapper.hpp:74