3-layer Open Capabilities
HiAI Foundation
Open chip capability: Accelerates NPUs to optimize device performance.
HiAI Engine
Open app capability: Enables more intelligent and powerful apps.
HiAI Service
Open service capability better connects users and services.
  • HiAI Foundation
  • HiAI Engine
  • HiAI Service
A developer tool that enables quick integration of HiAI capabilities.
HiAI IDE
Supports HiAI Engine and HiAI Foundation, and provides remote phones at no cost.
Download HiAI IDE View user guide
Our Strengths
Real-time and Stable Services
The NPU's powerful computing ability allows for services to be accessed offline.
Free of Charge
Access and invocation are completely free of charge.
Abundant Promotion Resources
A wide range of promotional resources, including those in the HUAWEI AppGallery and Shining Star Program.
Privacy & Security
AI functions on mobile devices do not require data to be uploaded to the network, thereby safeguarding user privacy and security.
HiAI Foundation
Accelerates the transformation and migration of existing models, and optimizes chipset performance through heterogeneous scheduling and NPU acceleration.
User Guide
Introduction
Service Overview >

HiAI Engine

Open app capabilities for developing apps able to connect various services and usage scenarios,
and integrating various AI capabilities into apps to make them more intelligent and powerful.

Diversified AI capabilities ready for use

Text detection and calibration
Detects and automatically adjusts text orientation in an image.
Super-Resolution (SR)
Upscales an image or reduces image noise and improves image details without changing resolution.
Text recognition
Quickly extracts text from a screenshot taken by a phone.
Table recognition
Table identification
Code detection
Detects QR and bar codes and provides related services.
Text detection and calibration
Detects and automatically adjusts text orientation in an image.
Scenario 1: hardcopy photo and letter capture and calibration
Captures hardcopy photos and letters and adjusts their positions.
Scenario 2: photography at museums and art galleries
Records selected works regardless of their positions, surroundings, and other impediments.
Request
Copy code

Document detection request parameters:

DocRefine docRefine = new DocRefine (this);

Frame frame = new Frame();

frame.setBitmap(bitmap);

JSONObject obj2 = docRefine.docDetect(frame, null);

 

 

 

Document correction request parameters:

ds = docRefine.convertResult(obj2);

newbmp = docRefine.docRefine(frame, ds, null);

Response
Copy code

Document detection return result:

 

{"resultCode":0,"doc":"{\"bottom_left\":

 

{\"x\":4,\"y\":426},\"bottom_right\":

 

{\"x\":588,\"y\":592},\"top_left\":

 

{\"x\":227,\"y\":26},\"top_right\":{\"x\":586,\"y\":218}}"}

 

 

 

Document correction return result:

 

Corrected image

Super-Resolution (SR)
Upscales an image or reduces image noise and improves image details without changing resolution.
Scenario 1: faster transmission
Compress images at high ratios to reduce storage and network traffic. Enhances image quality in termianl after data transmitted.
Scenario 2: better zoom-in experience
Displays better image details, suppresses JPEG compression noise, and improves the experience of zoom-in and browsing thumbnails.
Request
Copy code

ImageSuperResolution superResolution = new ImageSuperResolution(mContext);
Frame frame = new Frame();
frame.setBitmap(bitmap);
ImageResult result = superResolution.doSuperResolution(frame, null);
Bitmap resultBitmap = result.getBitmap();

Response
Copy code

Processed image

Text recognition
Quickly extracts text from a screenshot taken by a phone.
Scenario 1: text information processing
Extracts texts from phone screenshots for processing, including copying, editing, word segmentation, and semantic analysis.
Scenario 2: image search by keyword
Enables phone screenshot search by keyword.
Request
Copy code

TextDetector textDetector = new TextDetector(this);

Frame frame = new Frame();

frame.setBitmap(bitmap);

JSONObject jsonResult = textDetector.detect(frame,null);

Response
Copy code

{

"resultCode": 0,

"common_text": "{\"blocks\":

 

 

 

[{\"boundingBox\":{\"height\":

 

 

 

33,\"left\":592,\"top\":857,\"width\":140},

 

 

 

\"cornerPoints\":[{\"x\":592,\"y\":857},

 

 

 

{\"x\":732,\"y\":857},{\"x\":592,\"y\":890},

 

 

 

{\"x\":732,\"y\":890}],

 

 

 

\"probability\":0.77,\"value\":\"Return date\"},

 

 

 

{\"boundingBox\":

 

 

 

{\"height\":33,\"left\":650,\"top\":924,\"width\":141},

 

 

 

\"cornerPoints\":[{\"x\":650,\"y\":924},

 

 

 

{\"x\":791,\"y\":924},{\"x\":650,

 

 

 

\"y\":957},{\"x\":791,\"y\":957}],

 

 

 

\"probability\":0.75,\"value\":\"Add return\"},

 

 

 

{\"boundingBox\":

 

 

 

{\"height\":45,\"left\":430,\"top\":1938,\"width\":232},

 

 

 

\"cornerPoints\":

 

 

 

[{\"x\":430,\"y\":1938},{\"x\":662,\"y\":1938},

 

 

 

{\"x\":430,\"y\":1983},{\"x\":662,\"y\":1983}],

 

 

 

\"probability\":0.7,\"value\":\"Country My Order\"},

 

 

 

{\"boundingBox\":

 

 

 

{\"height\":46,\"left\":757,\"top\":2077,\"width\":46},

 

 

 

\"cornerPoints\":

 

 

 

[{\"x\":757,\"y\":2077},{\"x\":803,\"y\":2077},

 

 

 

{\"x\":757,\"y\":2123},{\"x\":803,\"y\":2123}],

 

 

 

\"probability\":0.72,\"value\":\"Port\"}],

 

 

 

\"cornerPoints\":[{\"x\":430,\"y\":857},

 

 

 

{\"x\":803,\"y\":857},{\"x\":430,\"y\":2123},

 

 

 

{\"x\":803,\"y\":2123}],\"probability\":0.735,

 

 

 

\"textRect\":{\"height\":1266,\"left\":430,

 

 

 

\"top\":857,\"width\":373},\"value\":

 

 

 

\"Return date\\n Add return\\n Country My Order\\n Port\"}"

}

Table recognition
Table identification
Scenario 1: image of a table being converted to an Excel file
Uses the table structure returned by the API to identify the table in the original image and generate a usable Excel file.
Scenario 2: full restoration of the information in electronic forms
Leverages the text box information returned by the API and the table structure identified to restore the font sizes, colors, and fonts in table cells.
Request
Copy code

TableDetector mTableDetector = new TableDetector(mContext);

 

 

 

Frame frame = new Frame();

 

frame.setBitmap(mBitmap);

 

 

 

JSONObject jsonObject = mTableDetector.detect(frame, null);

 

 

 

Table table = mTableDetector.convertResult(jsonObject);

 

 

Response

Response
Copy code

{"resultCode":0,"table_content":"{\"table\":[{\"body\":[

 

 

{\"end_col\":10,\"end_row\":1,\"start_col\":1,

 

 

\"start_row\":1,\"box_coordinate\":[{\"bl_x\":290,

 

 

\"bl_y\":95,\"br_x\":667,\"br_y\":92,\"tl_x\":289,

 

 

\"tl_y\":35,\"tr_x\":667,\"tr_y\":33}],\"word\":

 

 

[\"New employee training schedule\"]},{\"end_col\":2,\"end_row\":2,

 

 

\"start_col\":1,\"start_row\":2,\"box_coordinate\":

 

 

[{\"bl_x\":61,\"bl_y\":181,\"br_x\":107,\"br_y\":181,

 

 

\"tl_x\":61,\"tl_y\":151,\"tr_x\":108,\"tr_y\":150}],

 

 

\"word\":[\"Date\"]},{\"end_col\":3,\"end_row\":2,

 

 

\"start_col\":3,\"start_row\":2,\"box_coordinate\":

 

 

[{\"bl_x\":176,\"bl_y\":179,\"br_x\":225,\"br_y\":179,

 

 

\"tl_x\":176,\"tl_y\":148,\"tr_x\":225,\"tr_y\":148}],

 

 

\"word\":[\"Time\"]},{\"end_col\":4,\"end_row\":2,

 

 

\"start_col\":4,\"start_row\":2,\"box_coordinate\":

 

 

[{\"bl_x\":260,\"bl_y\":178,\"br_x\":352,\"br_y\":178,

 

 

\"tl_x\":260,\"tl_y\":143,\"tr_x\":352,\"tr_y\":142}],

 

 

\"word\":[\"Training content\"]},{\"end_col\":5,\"end_row\":2,

 

 

\"start_col\":5,\"start_row\":2,\"box_coordinate\":

 

 

[{\"bl_x\":373,\"bl_y\":177,\"br_x\":443,\"br_y\":177,

 

 

\"tl_x\":373,\"tl_y\":144,\"tr_x\":443,\"tr_y\":144}],

 

 

\"word\":[\"Presenter\"]},{\"end_col\":6,\"end_row\":2,

 

 

\"start_col\":6,\"start_row\":2,\"box_coordinate\":

 

 

[{\"bl_x\":459,\"bl_y\":154,\"br_x\":530,\"br_y\":154,

 

 

\"tl_x\":459,\"tl_y\":117,\"tr_x\":530,\"tr_y\":117},

 

 

{\"bl_x\":482,\"bl_y\":198,\"br_x\":507,\"br_y\":198,

 

 

\"tl_x\":482,\"tl_y\":169,\"tr_x\":507,\"tr_y\":169}],

 

 

\"word\":[\"Trainee\",\" \"]},{\"end_col\":7,

 

 

\"end_row\":2,\"start_col\":7,\"start_row\":2,

 

 

\"box_coordinate\":[{\"bl_x\":545,\"bl_y\":177,

 

 

\"br_x\":640,\"br_y\":177,\"tl_x\":545,\"tl_y\":141,

 

 

\"tr_x\":640,\"tr_y\":141}],\"word\":[\"Training site\"]},

 

 

{\"end_col\":8,\"end_row\":2,\"start_col\":8,

 

 

\"start_row\":2,\"box_coordinate\":[{\"bl_x\":656,

 

 

\"bl_y\":178,\"br_x\":728,\"br_y\":178,\"tl_x\":656,

 

 

\"tl_y\":140,\"tr_x\":728,\"tr_y\":140}],\"word\":

 

 

[\"Person responsible\"]},{\"end_col\":9,\"end_row\":2,

 

 

\"start_col\":9,\"start_row\":2,\"box_coordinate\":

 

 

[{\"bl_x\":751,\"bl_y\":153,\"br_x\":798,\"br_y\":

 

 

153,\"tl_x\":751,\"tl_y\":119,\"tr_x\":798,\"tr_y\":119},

 

 

{\"bl_x\":751,\"bl_y\":201,\"br_x\":799,\"br_y\":201,

 

 

\"tl_x\":751,\"tl_y\":168,\"tr_x\":799,\"tr_y\":168}],

 

 

\"word\":[\"Whether\",\"Sign-in Is Required\"]},{\"end_col\":10,

 

 

\"end_row\":2,\"start_col\":10,\"start_row\":2,

 

 

\"box_coordinate\":[{\"bl_x\":856,\"bl_y\":178,

 

 

\"br_x\":902,\"br_y\":178,\"tl_x\":856,\"tl_y\":

 

 

143,\"tr_x\":902,\"tr_y\":143}],\"word\":[\"Remarks\"]},

 

 

{\"end_col\":1,\"end_row\":4,\"start_col\":1,

 

 

\"start_row\":3,\"box_coordinate\":[{\"bl_x\":

 

 

19,\"bl_y\":324,\"br_x\":87,\"br_y\":322,

 

 

\"tl_x\":18,\"tl_y\":292,\"tr_x\":87,\"tr_y\":291}],

 

 

\"word\":[\"March 1\"]},{\"end_col\":2,\"end_row\":

 

 

3,\"start_col\":2,\"start_row\":3,\"box_coordinate\":

 

 

[{\"bl_x\":105,\"bl_y\":277,\"br_x\":150,\"br_y\":277,

 

 

\"tl_x\":105,\"tl_y\":243,\"tr_x\":150,\"tr_y\":243}],

 

 

\"word\":[\"Morning\"]},{\"end_col\":3,\"end_row\":3,

 

 

\"start_col\":3,\"start_row\":3,\"box_coordinate\":

 

 

[{\"bl_x\":171,\"bl_y\":250,\"br_x\":226,\"br_y\":249,

 

 

\"tl_x\":171,\"tl_y\":218,\"tr_x\":226,\"tr_y\":217},

 

 

{\"bl_x\":170,\"bl_y\":300,\"br_x\":231,\"br_y\":299,

 

 

\"tl_x\":170,\"tl_y\":271,\"tr_x\":231,\"tr_y\":270}],

 

 

\"word\":[\"9:00-\",\"11:00\"]},{\"end_col\":4,

 

 

\"end_row\":3,\"start_col\":4,\"start_row\":3,

 

 

\"box_coordinate\":[{\"bl_x\":259,\"bl_y\":275,

 

 

\"br_x\":354,\"br_y\":274,\"tl_x\":259,\"tl_y\":241,

 

 

\"tr_x\":354,\"tr_y\":240}],\"word\":[\"Security knowledge\"]},

 

 

{\"end_col\":5,\"end_row\":3,\"start_col\":5,

 

 

\"start_row\":3,\"box_coordinate\":[{\"bl_x\":383,

 

 

\"bl_y\":274,\"br_x\":435,\"br_y\":274,\"tl_x\":383,

 

 

\"tl_y\":240,\"tr_x\":436,\"tr_y\":240}],\"word\":

 

 

[\"Huang Hua\"]},{\"end_col\":6,\"end_row\":3,

 

 

\"start_col\":6,\"start_row\":3,\"box_coordinate\":

 

 

[{\"bl_x\":458,\"bl_y\":273,\"br_x\":530,

 

 

\"br_y\":274,\"tl_x\":458,\"tl_y\":241,\"tr_x\":

 

 

531,\"tr_y\":241}],\"word\":[\"New employee\"]},

 

 

{\"end_col\":7,\"end_row\":3,\"start_col\":7,

 

 

\"start_row\":3,\"box_coordinate\":[{\"bl_x\":556,

 

 

\"bl_y\":248,\"br_x\":626,\"br_y\":248,\"tl_x\":556,

 

 

\"tl_y\":213,\"tr_x\":627,\"tr_y\":213},{\"bl_x\":570,

 

 

\"bl_y\":297,\"br_x\":613,\"br_y\":297,\"tl_x\":570,

 

 

\"tl_y\":265,\"tr_x\":614,\"tr_y\":265}],\"word\":

 

 

[\"Meeting room\",\"001\"]},{\"end_col\":8,\"end_row\":3,

 

 

\"start_col\":8,\"start_row\":3,\"box_coordinate\":

 

 

[{\"bl_x\":666,\"bl_y\":274,\"br_x\":718,\"br_y\":274,

 

 

\"tl_x\":666,\"tl_y\":240,\"tr_x\":719,\"tr_y\":240}],

 

 

\"word\":[\"Zhang Wei\"]},{\"end_col\":9,\"end_row\":3,

 

 

\"start_col\":9,\"start_row\":3,\"box_coordinate\":

 

 

[{\"bl_x\":762,\"bl_y\":275,\"br_x\":788,\"br_y\":275,

 

 

\"tl_x\":762,\"tl_y\":239,\"tr_x\":788,\"tr_y\":239}],

 

 

\"word\":[\"Yes\"]},{\"end_col\":10,\"end_row\":3,

 

 

\"start_col\":10,\"start_row\":3,\"box_coordinate\":

 

 

[{\"bl_x\":824,\"bl_y\":249,\"br_x\":930,\"br_y\":249,

 

 

\"tl_x\":824,\"tl_y\":213,\"tr_x\":930,\"tr_y\":213},

 

 

{\"bl_x\":846,\"bl_y\":299,\"br_x\":916,\"br_y\":299,

 

 

\"tl_x\":846,\"tl_y\":265,\"tr_x\":916,\"tr_y\":265}],

 

 

\"word\":[\"Notebook,\",\"Pen\"]},{\"end_col\":2,

 

 

\"end_row\":4,\"start_col\":2,\"start_row\":4,

 

 

\"box_coordinate\":[{\"bl_x\":104,\"bl_y\":372,

 

 

\"br_x\":150,\"br_y\":372,\"tl_x\":104,\"tl_y\":337,

 

 

\"tr_x\":150,\"tr_y\":337}],\"word\":[\"Afternoon\"]},

 

 

{\"end_col\":3,\"end_row\":4,\"start_col\":3,

 

 

\"start_row\":4,\"box_coordinate\":[{\"bl_x\":168,

 

 

\"bl_y\":347,\"br_x\":233,\"br_y\":347,\"tl_x\":168,

 

 

\"tl_y\":315,\"tr_x\":233,\"tr_y\":315},{\"bl_x\":171,

 

 

\"bl_y\":394,\"br_x\":232,\"br_y\":394,\"tl_x\":171,

 

 

\"tl_y\":364,\"tr_x\":233,\"tr_y\":364}],\"word\":

 

 

[\"14:00-\",\"16:00\"]},{\"end_col\":4,\"end_row\":4,

 

 

\"start_col\":4,\"start_row\":4,\"box_coordinate\":

 

 

[{\"bl_x\":260,\"bl_y\":370,\"br_x\":355,\"br_y\":370,

 

 

\"tl_x\":260,\"tl_y\":336,\"tr_x\":355,\"tr_y\":336}],

 

 

\"word\":[\"Security knowledge\"]},{\"end_col\":5,\"end_row\":4,

 

 

\"start_col\":5,\"start_row\":4,\"box_coordinate\":

 

 

[{\"bl_x\":383,\"bl_y\":370,\"br_x\":436,\"br_y\":370,

 

 

\"tl_x\":383,\"tl_y\":337,\"tr_x\":436,\"tr_y\":337}],

 

 

\"word\":[\"Huang Hua\"]},{\"end_col\":6,\"end_row\":4,

 

 

\"start_col\":6,\"start_row\":4,\"box_coordinate\":

 

 

[{\"bl_x\":457,\"bl_y\":369,\"br_x\":532,\"br_y\":369,

 

 

\"tl_x\":457,\"tl_y\":338,\"tr_x\":533,\"tr_y\":338}],

 

 

\"word\":[\"New employee\"]},{\"end_col\":7,\"end_row\":4,

 

 

\"start_col\":7,\"start_row\":4,\"box_coordinate\":

 

 

[{\"bl_x\":556,\"bl_y\":347,\"br_x\":628,\"br_y\":346,

 

 

\"tl_x\":556,\"tl_y\":311,\"tr_x\":628,\"tr_y\":310},

 

 

{\"bl_x\":570,\"bl_y\":393,\"br_x\":614,\"br_y\":393,

 

 

\"tl_x\":570,\"tl_y\":361,\"tr_x\":614,\"tr_y\":361}],

 

 

\"word\":[\"Meeting room\",\"001\"]},{\"end_col\":8,

 

 

\"end_row\":4,\"start_col\":8,\"start_row\":4,

 

 

\"box_coordinate\":[{\"bl_x\":665,\"bl_y\":368,

 

 

\"br_x\":725,\"br_y\":368,\"tl_x\":666,\"tl_y\":336,

 

 

\"tr_x\":726,\"tr_y\":336}],\"word\":[\"Zhang Wei\"]},

 

 

{\"end_col\":9,\"end_row\":4,\"start_col\":9,

 

 

\"start_row\":4,\"box_coordinate\":[{\"bl_x\":763,

 

 

\"bl_y\":370,\"br_x\":788,\"br_y\":370,\"tl_x\":763,

 

 

\"tl_y\":335,\"tr_x\":788,\"tr_y\":335}],\"word\":

 

 

[\"Yes\"]},{\"end_col\":10,\"end_row\":4,\"start_col\":

 

 

10,\"start_row\":4,\"box_coordinate\":[{\"bl_x\":824,

 

 

\"bl_y\":346,\"br_x\":930,\"br_y\":346,\"tl_x\":824,

 

 

\"tl_y\":310,\"tr_x\":930,\"tr_y\":310},{\"bl_x\":847,

 

 

\"bl_y\":393,\"br_x\":916,\"br_y\":393,\"tl_x\":847,

 

 

\"tl_y\":361,\"tr_x\":916,\"tr_y\":361}],\"word\":

 

 

[\"Notebook,\",\"Pen\"]},{\"end_col\":1,

 

 

\"end_row\":6,\"start_col\":1,\"start_row\":5,

 

 

\"box_coordinate\":[{\"bl_x\":18,\"bl_y\":510,

 

 

\"br_x\":88,\"br_y\":511,\"tl_x\":18,\"tl_y\":476,

 

 

\"tr_x\":89,\"tr_y\":476}],\"word\":[\"March 2\"]},

 

 

{\"end_col\":2,\"end_row\":5,\"start_col\":2,

 

 

\"start_row\":5,\"box_coordinate\":[{\"bl_x\":103,

 

 

\"bl_y\":466,\"br_x\":153,\"br_y\":467,\"tl_x\":103,

 

 

\"tl_y\":431,\"tr_x\":153,\"tr_y\":432}],\"word\":

 

 

[\"Morning\"]},{\"end_col\":3,\"end_row\":5,

 

 

\"start_col\":3,\"start_row\":5,\"box_coordinate\":

 

 

[{\"bl_x\":171,\"bl_y\":443,\"br_x\":228,\"br_y

 

 

\":443,\"tl_x\":171,\"tl_y\":408,\"tr_x\":228,\"tr_y\":408},

 

 

{\"bl_x\":170,\"bl_y\":487,\"br_x\":232,\"br_y\":487,

 

 

\"tl_x\":171,\"tl_y\":456,\"tr_x\":232,\"tr_y\":456}],

 

 

\"word\":[\"9:00-\",\"11:00\"]},{\"end_col\":4,

 

 

\"end_row\":5,\"start_col\":4,\"start_row\":5,

 

 

\"box_coordinate\":[{\"bl_x\":257,\"bl_y\":462,

 

 

\"br_x\":353,\"br_y\":462,\"tl_x\":257,\"tl_y\":428,

 

 

\"tr_x\":353,\"tr_y\":428}],\"word\":[\"Security knowledge\"]},

 

 

{\"end_col\":5,\"end_row\":5,\"start_col\":5,

 

 

\"start_row\":5,\"box_coordinate\":[{\"bl_x\":382,

 

 

\"bl_y\":461,\"br_x\":435,\"br_y\":461,\"tl_x\":382,

 

 

\"tl_y\":430,\"tr_x\":435,\"tr_y\":430}],\"word\":

 

 

[\"Hu Hu\"]},{\"end_col\":6,\"end_row\":5,\"start_col\":6,

 

 

\"start_row\":5,\"box_coordinate\":[{\"bl_x\":458,

 

 

\"bl_y\":460,\"br_x\":531,\"br_y\":461,\"tl_x\":458,

 

 

\"tl_y\":429,\"tr_x\":532,\"tr_y\":430}],\"word\":

 

 

[\"New employee\"]},{\"end_col\":7,\"end_row\":5,

 

 

\"start_col\":7,\"start_row\":5,\"box_coordinate\":

 

 

[{\"bl_x\":557,\"bl_y\":443,\"br_x\":628,\"br_y\":442,

 

 

\"tl_x\":557,\"tl_y\":407,\"tr_x\":628,\"tr_y\":406},

 

 

{\"bl_x\":569,\"bl_y\":487,\"br_x\":615,\"br_y\":488,

 

 

\"tl_x\":569,\"tl_y\":454,\"tr_x\":616,\"tr_y\":454}],

 

 

\"word\":[\"Meeting room\",\"001\"]},{\"end_col\":8,

 

 

\"end_row\":5,\"start_col\":8,\"start_row\":5,

 

 

\"box_coordinate\":[{\"bl_x\":667,\"bl_y\":459,

 

 

\"br_x\":720,\"br_y\":459,\"tl_x\":667,\"tl_y\":429,

 

 

\"tr_x\":720,\"tr_y\":429}],\"word\":[\"Zhang Wei\"]},

 

 

{\"end_col\":9,\"end_row\":5,\"start_col\":9,

 

 

\"start_row\":5,\"box_coordinate\":[{\"bl_x

 

 

\":763,\"bl_y\":461,\"br_x\":788,\"br_y\":461,

 

 

\"tl_x\":763,\"tl_y\":426,\"tr_x\":788,\"tr_y\":426}],

 

 

\"word\":[\"Yes\"]},{\"end_col\":10,\"end_row\":5,

 

 

\"start_col\":10,\"start_row\":5,\"box_coordinate

 

 

\":[{\"bl_x\":825,\"bl_y\":441,\"br_x\":929,

 

 

\"br_y\":441,\"tl_x\":825,\"tl_y\":406,\"tr_x\":929,

 

 

\"tr_y\":406},{\"bl_x\":847,\"bl_y\":481,\"br_x\":916,

 

 

\"br_y\":481,\"tl_x\":847,\"tl_y\":452,\"tr_x\":916,

 

 

\"tr_y\":452}],\"word\":[\"Notebook,\",\"Pen\"]},

 

 

{\"end_col\":2,\"end_row\":6,\"start_col\":2,

 

 

\"start_row\":6,\"box_coordinate\":[{\"bl_x\":105,

 

 

\"bl_y\":552,\"br_x\":149,\"br_y\":552,\"tl_x\":105,

 

 

\"tl_y\":518,\"tr_x\":149,\"tr_y\":518}],\"word\":

 

 

[\"Afternoon\"]},{\"end_col\":3,\"end_row\":6,

 

 

\"start_col\":3,\"start_row\":6,\"box_coordinate

 

 

\":[{\"bl_x\":167,\"bl_y\":526,\"br_x\":232,\"br_y

 

 

\":526,\"tl_x\":167,\"tl_y\":494,\"tr_x\":233,\"tr_y

 

 

\":494},{\"bl_x\":171,\"bl_y\":576,\"br_x\":232,

 

 

\"br_y\":576,\"tl_x\":171,\"tl_y\":547,\"tr_x\":233,

 

 

\"tr_y\":546}],\"word\":[\"14:00-\",\"16:00\"]},

 

 

{\"end_col\":4,\"end_row\":6,\"start_col\":4,

 

 

\"start_row\":6,\"box_coordinate\":[{\"bl_x\":258,

 

 

\"bl_y\":552,\"br_x\":355,\"br_y\":553,\"tl_x\":258,

 

 

\"tl_y\":520,\"tr_x\":355,\"tr_y\":520}],\"word\":

 

 

[\"Security knowledge\"]},{\"end_col\":5,\"end_row\":6,

 

 

\"start_col\":5,\"start_row\":6,\"box_coordinate\":

 

 

[{\"bl_x\":383,\"bl_y\":553,\"br_x\":436,\"br_y

 

 

\":554,\"tl_x\":383,\"tl_y\":520,\"tr_x\":437,

 

 

\"tr_y\":520}],\"word\":[\"Hu Hu\"]},{\"end_col\":6,

 

 

\"end_row\":6,\"start_col\":6,\"start_row\":6,

 

 

\"box_coordinate\":[{\"bl_x\":458,\"bl_y\":551,

 

 

\"br_x\":530,\"br_y\":552,\"tl_x\":458,\"tl_y\":519,

 

 

\"tr_x\":531,\"tr_y\":520}],\"word\":[\"New employee\"]},

 

 

{\"end_col\":7,\"end_row\":6,\"start_col\":7,

 

 

\"start_row\":6,\"box_coordinate\":[{\"bl_x\":556,

 

 

\"bl_y\":527,\"br_x\":630,\"br_y\":526,\"tl_x\":556,

 

 

\"tl_y\":494,\"tr_x\":630,\"tr_y\":494},{\"bl_x\":570

 

 

,\"bl_y\":577,\"br_x\":615,\"br_y\":577,\"tl_x\":570,

 

 

\"tl_y\":544,\"tr_x\":616,\"tr_y\":543}],\"word\":

 

 

[\"Meeting room\",\"001\"]},{\"end_col\":8,\"end_row\":6,

 

 

\"start_col\":8,\"start_row\":6,\"box_coordinate\":

 

 

[{\"bl_x\":667,\"bl_y\":552,\"br_x\":720,\"br_y\":552,

 

 

\"tl_x\":667,\"tl_y\":520,\"tr_x\":721,\"tr_y\":520}],

 

 

\"word\":[\"Zhang Wei\"]},{\"end_col\":9,\"end_row\":6,

 

 

\"start_col\":9,\"start_row\":6,\"box_coordinate\":

 

 

[{\"bl_x\":763,\"bl_y\":553,\"br_x\":788,\"br_y\":553,

 

 

\"tl_x\":763,\"tl_y\":517,\"tr_x\":788,\"tr_y\":517}],

 

 

\"word\":[\"Yes\"]},{\"end_col\":10,\"end_row\":6,

 

 

\"start_col\":10,\"start_row\":6,\"box_coordinate\":

 

 

[{\"bl_x\":824,\"bl_y\":527,\"br_x\":930,\"br_y\":527,

 

 

\"tl_x\":824,\"tl_y\":492,\"tr_x\":930,\"tr_y\":492},

 

 

{\"bl_x\":847,\"bl_y\":574,\"br_x\":915,\"br_y\":574,

 

 

\"tl_x\":847,\"tl_y\":543,\"tr_x\":915,\"tr_y\":543}],

 

 

\"word\":[\"Notebook,\",\"Pen\"]},{\"end_col\":1,

 

 

\"end_row\":8,\"start_col\":1,\"start_row\":7,

 

 

\"box_coordinate\":[{\"bl_x\":21,\"bl_y\":690,

 

 

\"br_x\":89,\"br_y\":691,\"tl_x\":21,\"tl_y\":657,

 

 

\"tr_x\":90,\"tr_y\":657}],\"word\":[\"March 3\"]},

 

 

{\"end_col\":2,\"end_row\":7,\"start_col\":2,

 

 

\"start_row\":7,\"box_coordinate\":[{\"bl_x\":106,

 

 

\"bl_y\":647,\"br_x\":151,\"br_y\":647,\"tl_x\":106,

 

 

\"tl_y\":612,\"tr_x\":151,\"tr_y\":612}],\"word\":

 

 

[\"Morning\"]},{\"end_col\":3,\"end_row\":7,\"start_col\":3,

 

 

\"start_row\":7,\"box_coordinate\":[{\"bl_x\":173,

 

 

\"bl_y\":621,\"br_x\":228,\"br_y\":621,\"tl_x\":173,

 

 

\"tl_y\":591,\"tr_x\":228,\"tr_y\":590},{\"bl_x\":172,

 

 

\"bl_y\":668,\"br_x\":232,\"br_y\":668,\"tl_x\":172,

 

 

\"tl_y\":640,\"tr_x\":233,\"tr_y\":639}],\"word\":

 

 

[\"9:00-\",\"11:00\"]},{\"end_col\":4,\"end_row\":7,

 

 

\"start_col\":4,\"start_row\":7,\"box_coordinate\":

 

 

[{\"bl_x\":260,\"bl_y\":648,\"br_x\":355,\"br_y

 

 

\":648,\"tl_x\":260,\"tl_y\":615,\"tr_x\":355,

 

 

\"tr_y\":615}],\"word\":[\"Security knowledge\"]},{\"end_col

 

 

\":5,\"end_row\":7,\"start_col\":5,\"start_row\":7,

 

 

\"box_coordinate\":[{\"bl_x\":386,\"bl_y\":649,

 

 

\"br_x\":435,\"br_y\":650,\"tl_x\":386,\"tl_y\":616,

 

 

\"tr_x\":436,\"tr_y\":616}],\"word\":[\"Li Yuan\"]},

 

 

{\"end_col\":6,\"end_row\":7,\"start_col\":6,

 

 

\"start_row\":7,\"box_coordinate\":[{\"bl_x\":457,

 

 

\"bl_y\":647,\"br_x\":529,\"br_y\":647,\"tl_x\":457,

 

 

\"tl_y\":616,\"tr_x\":530,\"tr_y\":616}],\"word\":

 

 

[\"New employee\"]},{\"end_col\":7,\"end_row\":7,

 

 

\"start_col\":7,\"start_row\":7,\"box_coordinate

 

 

\":[{\"bl_x\":557,\"bl_y\":624,\"br_x\":627,\"br_y

 

 

\":624,\"tl_x\":557,\"tl_y\":591,\"tr_x\":628,\"tr_y

 

 

\":591},{\"bl_x\":568,\"bl_y\":670,\"br_x\":615,

 

 

\"br_y\":670,\"tl_x\":568,\"tl_y\":639,\"tr_x\":615,

 

 

\"tr_y\":639}],\"word\":[\"Meeting room\",\"001\"]},

 

 

{\"end_col\":8,\"end_row\":7,\"start_col\":8,

 

 

\"start_row\":7,\"box_coordinate\":[{\"bl_x\":667,

 

 

\"bl_y\":647,\"br_x\":720,\"br_y\":648,\"tl_x\":667,

 

 

\"tl_y\":615,\"tr_x\":721,\"tr_y\":615}],\"word\":

 

 

[\"Zhang Wei\"]},{\"end_col\":9,\"end_row\":7,\"start_col

 

 

\":9,\"start_row\":7,\"box_coordinate\":[{\"bl_x\":762,

 

 

\"bl_y\":648,\"br_x\":787,\"br_y\":648,\"tl_x\":762,

 

 

\"tl_y\":613,\"tr_x\":787,\"tr_y\":613}],\"word\":

 

 

[\"Yes\"]},{\"end_col\":10,\"end_row\":7,\"start_col

 

 

\":10,\"start_row\":7,\"box_coordinate\":

 

 

[{\"bl_x\":825,\"bl_y\":623,\"br_x\":929,

 

 

\"br_y\":623,\"tl_x\":825,\"tl_y\":589,

 

 

\"tr_x\":929,\"tr_y\":589},{\"bl_x\":846,

 

 

\"bl_y\":668,\"br_x\":914,\"br_y\":668,

 

 

\"tl_x\":846,\"tl_y\":635,\"tr_x\":914,

 

 

\"tr_y\":635}],\"word\":[\"Notebook,\",

 

 

\"Pen\"]},{\"end_col\":2,\"end_row\":8,

 

 

\"start_col\":2,\"start_row\":8,\"box_coordinate\":

 

 

[{\"bl_x\":106,\"bl_y\":737,\"br_x\":151,

 

 

\"br_y\":737,\"tl_x\":106,\"tl_y\":703,

 

 

\"tr_x\":151,\"tr_y\":703}],\"word\":[\"Afternoon\"]},

 

 

{\"end_col\":3,\"end_row\":8,\"start_col\":3,

 

 

\"start_row\":8,\"box_coordinate\":

 

 

[{\"bl_x\":169,\"bl_y\":715,\"br_x\":233,

 

 

\"br_y\":716,\"tl_x\":169,\"tl_y\":682,

 

 

\"tr_x\":234,\"tr_y\":682},{\"bl_x\":173,

 

 

\"bl_y\":761,\"br_x\":233,\"br_y\":761,

 

 

\"tl_x\":173,\"tl_y\":729,\"tr_x\":234,

 

 

\"tr_y\":729}],\"word\":[\"14:00-\",\"16:00\"]},

 

 

{\"end_col\":4,\"end_row\":8,\"start_col\":4,

 

 

\"start_row\":8,\"box_coordinate\":

 

 

[{\"bl_x\":261,\"bl_y\":742,\"br_x\":354,\"br_y

 

 

\":742,\"tl_x\":261,\"tl_y\":705,\"tr_x\":354,\"tr_y

 

 

\":705}],\"word\":[\"Security knowledge\"]},{\"end_col\":5,

 

 

\"end_row\":8,\"start_col\":5,\"start_row\":8,

 

 

\"box_coordinate\":[{\"bl_x\":385,\"bl_y\":744,

 

 

\"br_x\":434,\"br_y\":744,\"tl_x\":385,\"tl_y\":708,

 

 

\"tr_x\":434,\"tr_y\":708}],\"word\":[\"Li Yuan\"]},

 

 

{\"end_col\":6,\"end_row\":8,\"start_col\":6,

 

 

\"start_row\":8,\"box_coordinate\":[{\"bl_x\":457,

 

 

\"bl_y\":741,\"br_x\":531,\"br_y\":742,\"tl_x\":457,

 

 

\"tl_y\":709,\"tr_x\":532,\"tr_y\":710}],\"word\":

 

 

[\"New employee\"]},{\"end_col\":7,\"end_row\":8,

 

 

\"start_col\":7,\"start_row\":8,\"box_coordinate\":

 

 

[{\"bl_x\":557,\"bl_y\":718,\"br_x\":626,\"br_y

 

 

\":718,\"tl_x\":557,\"tl_y\":685,\"tr_x\":627,

 

 

\"tr_y\":685},{\"bl_x\":569,\"bl_y\":763,

 

 

\"br_x\":614,\"br_y\":763,\"tl_x\":569,\"tl_y

 

 

\":733,\"tr_x\":614,\"tr_y\":733}],\"word\":

 

 

[\"Meeting room\",\"001\"]},{\"end_col\":8,\"end_row

 

 

\":8,\"start_col\":8,\"start_row\":8,\"box_coordinate\":

 

 

[{\"bl_x\":666,\"bl_y\":741,\"br_x\":716,\"br_y\":741,

 

 

\"tl_x\":666,\"tl_y\":709,\"tr_x\":717,\"tr_y\":709}],

 

 

\"word\":[\"Zhang Wei\"]},{\"end_col\":9,\"end_row\":8,

 

 

\"start_col\":9,\"start_row\":8,\"box_coordinate\":

 

 

[{\"bl_x\":762,\"bl_y\":740,\"br_x\":786,\"br_y\":740,

 

 

\"tl_x\":762,\"tl_y\":705,\"tr_x\":786,\"tr_y\":705}],

 

 

\"word\":[\"Yes\"]},{\"end_col\":10,\"end_row\":8,

 

 

\"start_col\":10,\"start_row\":8,\"box_coordinate\":

 

 

[{\"bl_x\":824,\"bl_y\":716,\"br_x\":928,\"br_y

 

 

\":716,\"tl_x\":824,\"tl_y\":682,\"tr_x\":928,

 

 

\"tr_y\":682},{\"bl_x\":846,\"bl_y\":761,\"br_x

 

 

\":914,\"br_y\":761,\"tl_x\":846,\"tl_y\":729,

 

 

\"tr_x\":914,\"tr_y\":729}],\"word\":[\"Notebook,

 

 

\",\"Pen\"]},{\"end_col\":1,\"end_row\":10,

 

 

\"start_col\":1,\"start_row\":9,\"box_coordinate\":

 

 

[{\"bl_x\":20,\"bl_y\":869,\"br_x\":91,\"br_y\":869,

 

 

\"tl_x\":21,\"tl_y\":836,\"tr_x\":91,\"tr_y\":837}],

 

 

\"word\":[\"March 4\"]},{\"end_col\":2,\"end_row

 

 

\":9,\"start_col\":2,\"start_row\":9,\"box_coordinate\":

 

 

[{\"bl_x\":103,\"bl_y\":844,\"br_x\":154,\"br_y\":844,

 

 

\"tl_x\":103,\"tl_y\":793,\"tr_x\":153,\"tr_y\":794}],

 

 

\"word\":[\"Morning\"]},{\"end_col\":3,\"end_row\":9,

 

 

\"start_col\":3,\"start_row\":9,\"box_coordinate\":

 

 

[{\"bl_x\":174,\"bl_y\":806,\"br_x\":228,\"br_y

 

 

\":806,\"tl_x\":174,\"tl_y\":774,\"tr_x\":228,

 

 

\"tr_y\":773},{\"bl_x\":173,\"bl_y\":850,\"br_x

 

 

\":231,\"br_y\":850,\"tl_x\":173,\"tl_y\":821,

 

 

\"tr_x\":232,\"tr_y\":820}],\"word\":[\"9:00-\",

 

 

\"11:00\"]},{\"end_col\":4,\"end_row\":9,

 

 

\"start_col\":4,\"start_row\":9,\"box_coordinate\":

 

 

[{\"bl_x\":262,\"bl_y\":831,\"br_x\":352,\"br_y

 

 

\":831,\"tl_x\":262,\"tl_y\":797,\"tr_x\":353,\"tr_y

 

 

\":797}],\"word\":[\"Security knowledge\"]},{\"end_col\":5,

 

 

\"end_row\":9,\"start_col\":5,\"start_row\":9,

 

 

\"box_coordinate\":[{\"bl_x\":385,\"bl_y\":831,

 

 

\"br_x\":434,\"br_y\":831,\"tl_x\":385,\"tl_y

 

 

\":799,\"tr_x\":435,\"tr_y\":799}],\"word\":

 

 

[\"Zhang Feng\"]},{\"end_col\":6,\"end_row\":9,

 

 

\"start_col\":6,\"start_row\":9,\"box_coordinate\":

 

 

[{\"bl_x\":459,\"bl_y\":831,\"br_x\":530,

 

 

\"br_y\":831,\"tl_x\":459,\"tl_y\":800,\"tr_x

 

 

\":531,\"tr_y\":800}],\"word\":[\"New employee\"]},

 

 

{\"end_col\":7,\"end_row\":9,\"start_col\":7,

 

 

\"start_row\":9,\"box_coordinate\":

 

 

[{\"bl_x\":558,\"bl_y\":811,\"br_x\":626,

 

 

\"br_y\":811,\"tl_x\":558,\"tl_y\":778,\"tr_x

 

 

\":626,\"tr_y\":778},{\"bl_x\":568,\"bl_y\":853,

 

 

\"br_x\":612,\"br_y\":853,\"tl_x\":568,\"tl_y\":822,

 

 

\"tr_x\":613,\"tr_y\":822}],\"word\":[\"Meeting room\",

 

 

\"001\"]},{\"end_col\":8,\"end_row\":9,

 

 

\"start_col\":8,\"start_row\":9,\"box_coordinate\":

 

 

[{\"bl_x\":666,\"bl_y\":829,\"br_x\":726,

 

 

\"br_y\":829,\"tl_x\":666,\"tl_y\":799,\"tr_x

 

 

\":727,\"tr_y\":798}],\"word\":[\"Zhang Wei\"]},

 

 

{\"end_col\":9,\"end_row\":9,\"start_col\":9,

 

 

\"start_row\":9,\"box_coordinate\":

 

 

[{\"bl_x\":761,\"bl_y\":831,\"br_x\":785,

 

 

\"br_y\":831,\"tl_x\":761,\"tl_y\":796,

 

 

\"tr_x\":785,\"tr_y\":796}],\"word\":[\"Yes\"]},

 

 

{\"end_col\":10,\"end_row\":9,\"start_col\":10,

 

 

\"start_row\":9,\"box_coordinate\":

 

 

[{\"bl_x\":823,\"bl_y\":807,\"br_x\":926,

 

 

\"br_y\":807,\"tl_x\":823,\"tl_y\":773,

 

 

\"tr_x\":926,\"tr_y\":773},{\"bl_x\":847,

 

 

\"bl_y\":852,\"br_x\":914,\"br_y\":852,

 

 

\"tl_x\":847,\"tl_y\":819,\"tr_x\":914

 

 

,\"tr_y\":819}],\"word\":[\"Notebook,\",\"Pen\"]},

 

 

{\"end_col\":2,\"end_row\":10,\"start_col\":2,

 

 

\"start_row\":10,\"box_coordinate\":[{\"bl_x\":108,

 

 

\"bl_y\":914,\"br_x\":153,\"br_y\":914,\"tl_x\":108,

 

 

\"tl_y\":882,\"tr_x\":153,\"tr_y\":882}],\"word\":

 

 

[\"Afternoon\"]},{\"end_col\":3,\"end_row\":10,

 

 

\"start_col\":3,\"start_row\":10,\"box_coordinate\":

 

 

[{\"bl_x\":173,\"bl_y\":895,\"br_x\":236,\"br_y\":894,

 

 

\"tl_x\":173,\"tl_y\":865,\"tr_x\":236,\"tr_y\":863},

 

 

{\"bl_x\":177,\"bl_y\":938,\"br_x\":236,\"br_y\":937,

 

 

\"tl_x\":177,\"tl_y\":909,\"tr_x\":236,\"tr_y\":909}],

 

 

\"word\":[\"14:00-\",\"16:00\"]},{\"end_col\":4,

 

 

\"end_row\":10,\"start_col\":4,\"start_row\":10,

 

 

\"box_coordinate\":[{\"bl_x\":262,\"bl_y\":919,

 

 

\"br_x\":355,\"br_y\":919,\"tl_x\":262,\"tl_y

 

 

\":885,\"tr_x\":355,\"tr_y\":885}],\"word\":

 

 

[\"Security knowledge\"]},{\"end_col\":5,\"end_row\":10,

 

 

\"start_col\":5,\"start_row\":10,\"box_coordinate\":

 

 

[{\"bl_x\":385,\"bl_y\":920,\"br_x\":433,\"br_y\":920,

 

 

\"tl_x\":385,\"tl_y\":887,\"tr_x\":433,\"tr_y\":887}],

 

 

\"word\":[\"Zhang Feng\"]},{\"end_col\":6,\"end_row\":10,

 

 

\"start_col\":6,\"start_row\":10,\"box_coordinate\":

 

 

[{\"bl_x\":459,\"bl_y\":920,\"br_x\":530,\"br_y

 

 

\":921,\"tl_x\":459,\"tl_y\":888,\"tr_x\":530,\"tr_y

 

 

\":889}],\"word\":[\"New employee\"]},{\"end_col\":7,

 

 

\"end_row\":10,\"start_col\":7,\"start_row\":10,

 

 

\"box_coordinate\":[{\"bl_x\":556,\"bl_y\":900,

 

 

\"br_x\":626,\"br_y\":900,\"tl_x\":556,\"tl_y

 

 

\":868,\"tr_x\":627,\"tr_y\":867},{\"bl_x\":568,

 

 

\"bl_y\":943,\"br_x\":614,\"br_y\":943,\"tl_x\":568,

 

 

\"tl_y\":911,\"tr_x\":614,\"tr_y\":911}],\"word\":

 

 

[\"Meeting room\",\"001\"]},{\"end_col\":8,\"end_row

 

 

\":10,\"start_col\":8,\"start_row\":10,\"box_coordinate\":

 

 

[{\"bl_x\":665,\"bl_y\":920,\"br_x\":713,

 

 

\"br_y\":920,\"tl_x\":665,\"tl_y\":889,\"tr_x\":713,

 

 

\"tr_y\":889}],\"word\":[\"Zhang Wei\"]},{\"end_col\":9,

 

 

\"end_row\":10,\"start_col\":9,\"start_row\":10,

 

 

\"box_coordinate\":[{\"bl_x\":761,\"bl_y\":920,

 

 

\"br_x\":784,\"br_y\":920,\"tl_x\":761,\"tl_y\":885,

 

 

\"tr_x\":784,\"tr_y\":885}],\"word\":[\"Yes\"]},

 

 

{\"end_col\":10,\"end_row\":10,\"start_col\":10,

 

 

\"start_row\":10,\"box_coordinate\":[{\"bl_x\":823,

 

 

\"bl_y\":897,\"br_x\":926,\"br_y\":897,\"tl_x\":823,

 

 

\"tl_y\":865,\"tr_x\":926,\"tr_y\":865},{\"bl_x\":846,

 

 

\"bl_y\":939,\"br_x\":914,\"br_y\":939,\"tl_x\":846,

 

 

\"tl_y\":909,\"tr_x\":914,\"tr_y\":909}],\"word\":

 

 

[\"Notebook,\",\"Pen\"]}],\"footer\":\"\",\"header

 

 

\":\"\",\"id\":1}],\"table_count\":1}"}

Code detection
Detects QR and bar codes and provides related services.
Scenario 1: payment by scanning QR code
Used for mobile services offered by software, such as payment by scanning a QR code
Scenario 2: information extraction by scanning QR code
Extracts the information contained in the code and provides services accordingly.
Request
Copy code

BarcodeDetector detector = new BarcodeDetector(getApplicationContext());
Frame frame = new Frame();
frame.setBitmap(bitmap);
JSONObject jsonObject = detector.detect(frame,null);

Response
Copy code

{"resultCode":0,"barcode":"[{\"contentTypes\":[11],

\"iSBN\":{\"isbn\":\"9787540746445\"}}]"}

Text detection and calibration
Detects and automatically adjusts text orientation in an image.
Super-Resolution (SR)
Upscales an image or reduces image noise and improves image details without changing resolution.
Text recognition
Quickly extracts text from a screenshot taken by a phone.
Table recognition
Table identification
Code detection
Detects QR and bar codes and provides related services.
HiAI Service
Open service capabilities better connect users and services
by pushing the right service to the right user at the right time.
HUAWEI Ability Gallery

Aggregates developer content and services to enable Huawei device users to instantly access them.

Learn more
Case Study
Contact Us
Contact HUAWEI Developer

Europe

developereu@huawei.com

APAC

developerapac@huawei.com

LATAM

developerla@huawei.com

MENA

developermea@huawei.com

SA

developersa@huawei.com