OpenCV 4.12.0
开源计算机视觉
加载中...
搜索中...
无匹配项
cv::text::TextDetector 类参考抽象

为文本检测算法提供接口的抽象类。 更多...

#include <opencv2/text/textDetector.hpp>

cv::text::TextDetector 的协作图

公共成员函数

virtual ~TextDetector ()
 
virtual void detect (InputArray inputImage, std::vector< Rect > &Bbox, std::vector< float > &confidence)=0
 提供快速简单接口以检测图像内的文本的方法。
 

详细描述

为文本检测算法提供接口的抽象类。

构造函数 & 析构函数文档

◆ ~TextDetector()

virtual cv::text::TextDetector::~TextDetector ( )
内联虚函数

成员函数文档

◆ detect()

virtual void cv::text::TextDetector::detect ( InputArray inputImage,
std::vector< Rect > & Bbox,
std::vector< float > & confidence )
纯虚函数
Python
cv.text.TextDetector.detect(inputImage) -> Bbox, confidence

提供快速简单接口以检测图像内的文本的方法。

参数
inputImage要处理的图像
Bbox将存储检测到的单词边界框的 Rect 向量
confidence一个浮点向量,将使用分类器对所选边界框的置信度进行更新

cv::text::TextDetectorCNN 中实现。


此类的文档是从以下文件生成的