Table Recognition

Capability Introduction

Table structure, text recognition

Based on snapshot OCR technology, this API implements structured recognition of tables in images, including the location of a cell, the quantity of rows and columns, and text information. It is particularly efficient in office software to restore tables in images to excel sheets.
Scenarios

Table restoration, content recognition

This API extracts table text and structure information, and can be applied in content recognition scenarios. For example, a third-party app can use the results returned by the engine to generate excel sheets, reducing the cost of manual typing.

Restoring table image content to excel

The table structure information returned by the API, is used to identify the table in the original image, and for generating an easy-to-edit excel file.

Restoring spreadsheet information

With the text box information returned, the table structure, color, font, and content of the original table can be completely restored.

Description

Request
Copy

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

{"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 Staff 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\":[\"Speaker\"]},{\"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\":[\"Venue\"]},

{\"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\":

[\"Director\"]},{\"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\":[\"Yes or No\",\"Sign in\"]},{\"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\":[\"Note\"]},

{\"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 1st\"]},{\"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\":[\"AM\"]},{\"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\":[\"Safety Training\"]},

{\"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 Staff\"]},

{\"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\":[\"Bring a notebook,\",\"and a 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\":[\"PM\"]},

{\"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\":[\"Safety Training\"]},{\"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 Staff\"]},{\"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\":

[\"Bring a notebook,\",\"and a 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 2nd\"]},

{\"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\":

[\"AM\"]},{\"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\":[\"Saftety Training\"]},

{\"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 Staff\"]},{\"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\":[\"Bring a notebook,\",\"and a 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\":

[\"PM\"]},{\"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\":

[\"Safety Training\"]},{\"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 Staff\"]},

{\"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\":[\"Bring a notebook,\",\"and a 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 3rd\"]},

{\"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\":

[\"上午\"]},{\"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\":[\"Safety Training\"]},{\"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 Staff\"]},{\"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\":[\"Bring a notebook,\",

\"and a 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\":[\"PM\"]},

{\"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\":[\"Safety Training\"]},{\"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 Staff\"]},{\"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\":[\"Bring a notebook,\",

\"and a 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 4th\"]},{\"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\":[\"AM\"]},{\"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\":[\"Safety Training\"]},{\"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 Staff\"]},

{\"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\":[\"Bring a notebook,\",\"and a 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\":

[\"下午\"]},{\"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\":

[\"Safety Training\"]},{\"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 Staff\"]},{\"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\":

[\"Bring a notebook,\",\"and a pen\"]}],\"footer\":\"\",\"header

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

Start development here with Huawei

Service introduction

Service overview, application scenarios, and functions
Learn more

Access preparation

Preparation for access, such as registration, authentication, and agreement signing
Learn more

Sample code

Demonstration of sample code
Learn more

API description

Interface parameter definition, description, restrictions, and constraints
Learn more
FAQ
1Can prepare() method directly use detect() method without calling the API?

Yes. In detect() method engine startup is in default. The engine will not start up again if started, please use with confidence.

2Does it need to configure the table recognition function in the same way as the snapshot OCR function is configured?

No, not for the time being. As of now, the table recognition function is relatively simple, and no additional configuration is required.

3When should I call the release() method?

The release() method will uninstall a model that has been loaded to the NPU chip. If the app is no longer using face detection, uninstall the model in a timely manner to free up resources.