BaiduOcr

interface BaiduOcr : Ocr

百度 Ocr https://ai.baidu.com/ai-doc/OCR/Ikibizxql

See also

基础 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