DetectRectangles

DetectRectangles(OcrInput)

检测图像上的文本区域。支持 GIF、PNG、JPEG、BMP、TIFF、JFIF、流、文件夹、数组、压缩包。

public List<RectangleOutput> DetectRectangles(OcrInput images)
ParameterType描述
imagesOcrInput包含源的容器OcrInput

返回值

包含检测到的文本区域或行的 RectangleOutput 列表。

另请参见


DetectRectangles(OcrInput, AreasType, bool)

检测图像上的文本区域。支持 GIF、PNG、JPEG、BMP、TIFF、JFIF、流、文件夹、数组、压缩包。

public List<RectangleOutput> DetectRectangles(OcrInput images, AreasType areasType, 
    bool detectAreas = true)
ParameterType描述
imagesOcrInput包含源的容器OcrInput
areasTypeAreasType确定返回的矩形类型——行或段落。
detectAreasBoolean启用自动文本区域检测。

返回值

包含检测到的文本区域或行的 RectangleOutput 列表。

另请参见