BaiduOcrConfig

百度 OCR 配置接口,用于动态设置 OCR 客户端和识别参数。 该接口主要用于初始化百度 OCR 客户端信息(AppId、ApiKey、SecretKey), 以及添加或移除识别参数选项。

文档参考:https://ai.baidu.com/ai-doc/OCR/Ikibizxql

See also

基础 OCR 配置接口

Functions

Link copied to clipboard
abstract fun addOption(key: String, value: String)

添加 OCR 请求参数选项,用于控制识别行为,例如语言、方向检测等。

Link copied to clipboard
abstract fun setCredential(appId: String, apiKey: String, secretKey: String)

设置百度 OCR 客户端凭证信息。