OcrResults

interface OcrResults

OCR 识别结果容器接口。 表示一次 OCR 操作中识别到的多个文本元素的集合,可用于遍历、提取或批量处理识别内容。

See also

表示单个文本块的识别结果。

Functions

Link copied to clipboard
abstract fun forEach(action: (OcrResult) -> Unit)

遍历每一个 OCR 识别结果。

Link copied to clipboard
abstract fun getAll(): List<OcrResult>

获取所有识别到的文本结果。

Link copied to clipboard
abstract fun getText(separator: String): String

获取所有识别文本的拼接结果。