What's Optical Character Recognition (OCR)?

  • High Accuracy

    Adopt deep learning algorithms for each service scenario to recognize characters with high accuracy.

    Adopt deep learning algorithms for each service scenario to recognize characters with high accuracy.

  • Increased Reliability

    Free yourself to confidently put your energy into other avenues with OCR, which has been tried and tested in various complex enterprise scenarios.

    Free yourself to confidently put your energy into other avenues with OCR, which has been tried and tested in various complex enterprise scenarios.

  • Enhanced Capabilities

    Make the most of cutting-edge capabilities to easily extract characters from distorted or tilted certificates with complex backgrounds, as well as from sealed and interlaced forms.

    Make the most of cutting-edge capabilities to easily extract characters from distorted or tilted certificates with complex backgrounds, as well as from sealed and interlaced forms.

  • Improved Convenience

    Quickly and easily get started with OCR, which offers standard RESTful APIs and high compatibility.

    Quickly and easily get started with OCR, which offers standard RESTful APIs and high compatibility.

OCR Activities & Promotions Activities

Free Packages

Detect and extract text from images and convert it into an editable JSON format.

Hot
Try Free
Huawei Cloud Blossom Program

Help your business bloom with cloud resource discounts, free trainings, and collaborative marketing opportunities

Hot
Try Now

OCR Web Image API

Function:

This API identifies and extracts text from web images and converts the text into a structured JSON format.

For details about the constraints on using this API, see Constraints. For details about how to use this API, see Introduction to OCR.

Constraints:

English and Chinese are supported but support for traditional Chinese characters is limited.

Only images in JPG, JPEG, PNG, BMP, TIFF, TGA, or WebP format can be recognized.

Common image types are supported, such as mobile phone or desktop screenshots, e-commerce product images, and advertisement design drawings.

No side of the image can be smaller than 15 or larger than 8,192 pixels.

The characters to be recognized must occupy more than 60% of the image.

The web image to be recognized can be rotated to any angle (direction detection must be enabled).

Debugging:

You can debug this API through automatic authentication in API Explorer. API Explorer can automatically generate and debug sample SDK code.

NOTE: API Explorer can be called in ap-southeast-2.

Prerequisites

Before you use this API, apply for the service and complete authentication. For details, see Subscribing to an OCR Service and Authentication.

NOTE: Before you use the service for the first time, enable the service by clicking Subscribe. You only need to subscribe to the service once. If the service is not enabled, an error message with error code "ModelArts.4204" will be displayed when you call the service. Before calling the service, log in to the OCR console and enable the service. Ensure that the region where the service is enabled is the same as that where the service is called.

URI:

POST https://{endpoint}/v2/{project_id}/ocr/web-image

Table Path parameters

Request Parameters

Request header parameters


OCR FAQs

Billing & Subscription

  • How Do I Unsubscribe from an OCR Service?

    If you no longer need to use an OCR service after you subscribe to it, you can unsubscribe it from the OCR console.

  • What Do I Do If the Subscribe Button Is Dimmed?

    Symptom

    After logging in to the OCR console, I cannot subscribe to an OCR service because the Subscribe button is dimmed.

    Possible Causes

    The possible cause is that the current user is an IAM user who does not have the permission to subscribe to the service. An account pays for and owns the resources and has full access permissions for the resources.

    Solution

    Log in to the OCR console using an account and subscribe to OCR.

  • How Do I Select a Region for an OCR Package?

    Resource packages in different regions are isolated. Select a region according to your business requirements. For details about the regions where services are deployed, see Endpoints.

    Determine the service region before purchasing a service package.

  • Can a Package Be Refunded After Being Purchased?

    The package cannot be refunded after being purchased.

  • How Does a Member Account Use a Package Purchased by an Enterprise Master Account?

    The enterprise master account and its member accounts are accurately named the account and the IAM users. The account pays for and owns the resources and has full access permissions for these resources. IAM users are created by the account, and only have the permissions granted by the account. The account can modify or cancel the IAM users' permissions at any time. Fees generated by IAM users are paid by the account. An account can be used to create IAM users and assign permissions to the IAM users. IAM users can view and use the resources authorized by the account after logging in to the system.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more