Class OcrInput
名称: Aspose.OCR 集合: Aspose.OCR.dll (25.4.0)
容器收集所有图像 / 文件预处理 / 识别。
public class OcrInput : IEnumerable<imagedata>, IEnumerable, IDisposable
Inheritance
Implements
IEnumerable
继承人
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
OcrInput(InputType, Preprocessing 过滤器)
创建容器并设置图像/文档和过滤器的类型,以便进一步提前处理/识别。
public OcrInput(InputType type, PreprocessingFilter filters = null)
Parameters
type
InputType
设置图像/文档类型将添加到容器。
filters
PreprocessingFilter
设置预处理过滤器将用于进一步处理或识别。
Properties
这个[因特]
返回处理 / 识别图像的信息。
public ImageData this[int index] { get; set; }
财产价值
Methods
Add(线条)
添加包含图像的路径或 URI 用于识别 / 处理。图像的类型必须符合建筑师所规定的类型。
public void Add(string fullPath)
Parameters
fullPath
string
到图像 / 文档 / 文件夹 / 档案。
Add(MemoryStream)
添加包含图像的内存流,以便识别 / 处理。图像的类型必须符合建筑师所规定的类型。
public void Add(MemoryStream stream)
Parameters
stream
MemoryStream
包含图像或文档的记忆流。
Add(字体, int, int)
添加多页图像 / 文件识别 / 处理。图像的类型必须符合建筑师所规定的类型。
public void Add(string fullPath, int startPage, int pagesCount)
Parameters
fullPath
string
到图像 / 文档 / 文件夹 / 档案。
startPage
int
第一页 / 图像处理 / 识别. 使用文件, zip, 文件夹。
pagesCount
int
处理 / 识别的页面 / 图像的总数量. 使用文件, zip, 文件夹. 默认 = 1.
Add(記憶體, int, int)
添加包含多页图像的内存流,以便识别/处理。图像的类型必须符合建筑师所规定的类型。
public void Add(MemoryStream stream, int startPage, int pagesCount)
Parameters
stream
MemoryStream
包含多页文档的内存流。
startPage
int
首页 / 图像处理 / 识别. 使用文件。
pagesCount
int
处理 / 识别的页面 / 图像的总数. 使用文件. 默认 = 1。
Add(比特( ), int , int , PixelType)
将解码图像添加到识别 / 处理列表中。图像的类型必须符合构建器中指定的类型(SingleImage)。
public void Add(byte[] arr, int width, int height, PixelType pixelFormat)
Parameters
arr
byte
( )
在 Aspose.Drawing.Color 中的解码图像。
width
int
图像宽度
height
int
图像高度。
pixelFormat
PixelType
支持 byte、rgb、bgr、rgba。
Add(Color( ), int , int)
将解码图像添加到识别 / 处理列表中。图像的类型必须符合构建器中指定的类型(SingleImage)。
public void Add(Color[] imageData, int width, int height)
Parameters
imageData
色彩( )
在 Aspose.Drawing.Color 中的解码图像。
width
int
图像宽度
height
int
图像高度。
AddBase64(线条)
添加包含图像的 base64 行,以便识别 / 处理。图像的类型必须符合建筑师所规定的类型。
public void AddBase64(string base64)
Parameters
base64
string
Base64 带单一图像。
Clear()
将处理 / 识别的项目数量设置为 0.清理收藏。
public void Clear()
ClearFilters()
删除所有过滤器。
public void ClearFilters()
Count()
处理 / 识别的物品数量。
public int Count()
Returns
大量的物品。
Dispose()
将处理 / 识别的项目数量设置为 0.清理收藏。
public void Dispose()
GetEnumerator()
返回收集列表。
public IEnumerator<imagedata> GetEnumerator()
Returns
IEnumerator < ImageData >
收藏 Aspose.OCR.ImageData。
GetInputType()
允许的图像类型为识别。
public InputType GetInputType()
Returns
输入类型
ReplaceFilters(PreprocessingFilter)
删除旧过滤器并设置新。
public void ReplaceFilters(PreprocessingFilter filters)
Parameters
filters
PreprocessingFilter
设置预处理过滤器将用于进一步处理或识别。