PaddleOcr

interface PaddleOcr : Ocr

Paddle OCR 接口,继承自 Ocr 接口。

该接口定义了 Paddle OCR 的基本功能和操作,具体的实现类将实现这些功能以完成 OCR 识别任务。 Paddle OCR 是基于 PaddlePaddle 深度学习框架开发的 OCR 工具,具有较高的识别精度和性能。

See also

基础 OCR 接口,定义了 OCR 识别的通用方法和属性。

Functions

Link copied to clipboard
abstract fun analyzeImage(image: String, regionBuilder: Rect.() -> Unit?): OcrResults

对指定图像文件执行文本识别。

Link copied to clipboard
abstract fun analyzeImageText(image: String, regionBuilder: Rect.() -> Unit?): String

对指定图像文件执行文本识别。

Link copied to clipboard
abstract fun analyzeScreen(regionBuilder: Rect.() -> Unit?): OcrResults

对当前屏幕截图执行文本识别(自动申请必要的截图权限)。

Link copied to clipboard
abstract fun analyzeScreenText(regionBuilder: Rect.() -> Unit?): String

对当前屏幕截图执行文本识别(自动申请必要的截图权限)。

Link copied to clipboard
abstract override fun close()
Link copied to clipboard
abstract fun getContext(): ScriptContext
Link copied to clipboard
abstract fun isClosed(): Boolean