com.huawei.hms.mlsdk.document.MLDocumentSetting.Factory 创建文档检测配置器的实例,用于设置文档检测的属性。 |
Qualifier and Type | Method Name and Description |
|---|---|
create() 创建文档检测配置器实例。 | |
enableFingerprintVerification() 设置强制校验证书指纹。 | |
setBorderType(String borderType) 设置文本边界返回形式。 | |
setLanguageList(List<String> languages) 设置预置语种。 | |
| 设置区域的全球路由信息。 |
Method |
|---|
public MLDocumentSetting create() 创建文档检测配置器实例。 |
Type | Description |
|---|---|
返回文本检测配置器MLDocumentSetting的实例。 |
Method |
|---|
public MLDocumentSetting.Factory enableFingerprintVerification() 设置强制校验证书指纹,只允许能通过证书指纹校验的已注册应用访问文档检测的云端API接口,在应用调试阶段不需要设置该参数。 |
Type | Description |
|---|---|
Method |
|---|
public MLDocumentSetting.Factory setBorderType(String borderType) 设置文本边界返回形式。 |
Name | Description |
|---|---|
borderType |
|
Type | Description |
|---|---|
Method |
|---|
public MLDocumentSetting.Factory setLanguageList(List<String> languages) 设置预置语种,正确地预置检测器语种,可以使检测更快速更准确,但错误的设置会导致错误的检测结果;在不确定语种的情况下,可以不设置,服务会自动识别语种;当前检测器可支持中、日、韩、英、法、德、俄、意大利、葡萄牙、西班牙、波兰、挪威、瑞典、丹麦、土耳其、芬兰、泰语、阿拉伯语和印地语等19国语言。 |
Name | Description |
|---|---|
languages | 语种列表,语种使用语言代码表示:“en”(英),“zh”(中),“ja”(日),“ko”(韩),“ru”(俄),“de”(德),“fr”(法),“it”(意大利),“pt”(葡萄牙),“es”(西班牙),“pl”(波兰),“no”(挪威),“sv”(瑞典),“da”(丹麦),“tr”(土耳其),“fi”(芬兰),“th”(泰语),“ar”(阿拉伯语),“hi”(印地语) |
Type | Description |
|---|---|
Method |
|---|
public MLDocumentSetting.Factory setRegion(GrsRegion region) 设置云测服务器访问站点。 |
Name | Description |
|---|---|
region | 站点区域,目前支持的站点区域有:
注意: 站点区域需要和配置AppGallery Connect时选择的服务接入站点保持一致。 |
Type | Description |
|---|---|