AsposeOcr.GetRectangles
GetRectangles(string, AreasType, bool)
检测图像上的文本区域。 不应用自动图像倾斜校正。 支持 GIF、PNG、JPEG、BMP、TIFF、JFIF。
public List<Rectangle> GetRectangles(string fullPath, AreasType areasType = AreasType.PARAGRAPHS,
bool detectAreas = true)
范围 | 类型 | 描述 |
---|---|---|
fullPath | String | 图片的路径。 |
areasType | AreasType | 确定要返回的矩形 - 行或段落。 |
detectAreas | Boolean | 启用自动文本区域检测。 |
返回值
检测到的文本区域或行的列表。
也可以看看
- enum AreasType
- class AsposeOcr
- 命名空间 Aspose.OCR
- 部件 Aspose.OCR
GetRectangles(MemoryStream, AreasType, bool)
检测图像上的文本区域。 不应用自动图像倾斜校正。 支持 GIF、PNG、JPEG、BMP、TIFF、JFIF。
public List<Rectangle> GetRectangles(MemoryStream image,
AreasType areasType = AreasType.PARAGRAPHS, bool detectAreas = true)
范围 | 类型 | 描述 |
---|---|---|
image | MemoryStream | 包含图像的内存流。 |
areasType | AreasType | 确定要返回的矩形 - 行或段落。 |
detectAreas | Boolean | 启用自动文本区域检测。 |
返回值
检测到的文本区域或行的列表。
也可以看看
- enum AreasType
- class AsposeOcr
- 命名空间 Aspose.OCR
- 部件 Aspose.OCR