检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Can the Region Where OCR Is Called Be Different from the Region Where OBS Resources Are Located? OBS must be deployed in the same region where OCR is called.
Can the Region Where OCR Is Called Be Different from the Region Where OBS Resources Are Located? Can the Input Data of OCR Be Stored Locally? How Do I Improve the Recognition Speed? How Do I Convert a PDF to an Image? Can OCR Read Images from Non-Huawei Cloud Storage?
Enabling Authorization for OCR To use data in OBS, you need to enable OBS authorization. Go to the OCR console. Enable OBS Authorization. After the authorization is enabled, you can use the authorized URL to access the service.
If the path exists, ensure that the OBS bucket for storing images is a public bucket. Do not use an OBS path across regions. OBS and the region where the service to be called is deployed are not in the same region.
If you want to call data in OBS, authorize OCR to access OBS on the Overview page. Figure 2 Authorizing OCR to access OBS If you no longer need to use an OCR service, you can unsubscribe it from the OCR console.
If you want to use data stored on OBS, you can authorize OCR to access OBS. You only need to configure the authorization once. For details, see Configuring Access Permissions of OBS. Parent Topic: Calling APIs
ModelArts.4702 Query Obs agency failed. The OBS agency failed to be queried. Check whether the OBS agency has been enabled for the service. ModelArts.4703 The Obs URL is invalid. The OBS URL is invalid. Check the OBS URL. ModelArts.4704 Obtaining the file from the OBS failed.
OBS is recommended for storing image data. The URL cannot contain Chinese characters. If Chinese characters exist, they must be encoded using UTF-8.
You need to be authorized to use OBS data, including service authorization, temporary authorization, and anonymous public authorization. For details, see Configuring Access Permissions of OBS. NOTE: The API response time depends on the image download time.
Appendix Obtaining a Project ID Obtaining an Account ID Configuring Access Permissions of OBS
OBS is recommended for storing image data. Response Parameters Status code: 200 Table 4 Response body parameter Parameter Type Description result ChileIdCardResult object Calling result This parameter is not returned when the API fails to be called.
You need to be authorized to use OBS data, including service authorization, temporary authorization, and anonymous public authorization. For details, see Configuring Access Permissions of OBS NOTE: The API response time depends on the image download time.
If you use URLs, you can upload the images to OBS and use the URLs provided by OBS. For details about how to use OBS, see Configuring OBS Access Permissions.
Public services, such as Elastic Cloud Server (ECS), Elastic Volume Service (EVS), Object Storage Service (OBS), Virtual Private Cloud (VPC), Elastic IP (EIP), and Image Management Service (IMS), are accessible within the same region.
Upload the image to Huawei Cloud OBS and use the URL provided by OBS. To use OBS data, authorize OCR to access OBS, including service authorization, temporary authorization, and anonymous public authorization. For details, see Configuring the Access Permission of OBS.
Agency authorization To use data stored on OBS, you can authorize OCR to access OBS. Parent topic: Security
OBS Object Storage Service (OBS) is a stable, secure, efficient, and easy-to-use cloud storage service. OCR APIs involve a lot of data processing. You can use OBS to improve processing efficiency by batch processing data on the cloud.
Public services, such as Elastic Cloud Server (ECS), Elastic Volume Service (EVS), Object Storage Service (OBS), Virtual Private Cloud (VPC), Elastic IP (EIP), and Image Management Service (IMS), are shared within the same region.
You can also store input data in an OBS bucket and transfer the data to the API. Parent topic: API
Within the same region, there are shared public services such as Elastic Cloud Server (ECS), Elastic Volume Service (EVS), Object Storage Service (OBS), Virtual Private Cloud (VPC), Elastic IP, and Image Management Service (IMS).