DetectRectangles
DetectRectangles(OcrInput)
检测图像上的文本区域。支持 GIF、PNG、JPEG、BMP、TIFF、JFIF、流、文件夹、数组、压缩包。
public List<RectangleOutput> DetectRectangles(OcrInput images)
| Parameter | Type | 描述 |
|---|---|---|
| images | OcrInput | 包含源的容器OcrInput。 |
返回值
包含检测到的文本区域或行的 RectangleOutput 列表。
另请参见
- class RectangleOutput
- class OcrInput
- class AsposeOcr
- namespace Aspose.OCR
- assembly Aspose.OCR
DetectRectangles(OcrInput, AreasType, bool)
检测图像上的文本区域。支持 GIF、PNG、JPEG、BMP、TIFF、JFIF、流、文件夹、数组、压缩包。
public List<RectangleOutput> DetectRectangles(OcrInput images, AreasType areasType,
bool detectAreas = true)
| Parameter | Type | 描述 |
|---|---|---|
| images | OcrInput | 包含源的容器OcrInput。 |
| areasType | AreasType | 确定返回的矩形类型——行或段落。 |
| detectAreas | Boolean | 启用自动文本区域检测。 |
返回值
包含检测到的文本区域或行的 RectangleOutput 列表。
另请参见
- class RectangleOutput
- class OcrInput
- enum AreasType
- class AsposeOcr
- namespace Aspose.OCR
- assembly Aspose.OCR