能力描述

表格结构 文本识别

表格识别API是基于聚焦拍照OCR的识别技术,可以实现对图像表格的结构化识别, 包括单元格的位置信息,单元格的占用行列数,以及每个单元格内的文本信息。 本API可应用于办公类软件,将图像中的表格完美还原为excel文件。
应用场景

表格还原 内容识别

提取表格文本、结构信息, 适用于基于各种表格内容识别的业务场景,如三方APP可以利用引擎返回的结果生成excel文件,减少人工录入的成本。

表格图像恢复为excel文件

利用API的返回的表格结构信息,可将原图像中的表格识别出来生成excel文件,用于对表格的再编辑。

完全还原电子表格信息

利用API的返回的文本框信息,在恢复表格结构的基础上,结合原图,可以完全还原原图中表格内文字的字号、颜色和字体等信息。

功能演示

Request
复制代码

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
复制代码

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

[\"新员工培训旧程安排\"]},{\"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\":[\"日期\"]},{\"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\":[\"时间\"]},{\"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\":[\"培训内容\"]},{\"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\":[\"主讲人\"]},{\"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\":[\"参训人\",\"员\"]},{\"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\":[\"培训场地\"]},

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

[\"负责人\"]},{\"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\":[\"是否\",\"签到\"]},{\"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\":[\"备注\"]},

{\"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\":[\"3月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\":[\"上午\"]},{\"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\":[\"安全知识\"]},

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

[\"黄华\"]},{\"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\":[\"新员工\"]},

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

[\"会议室\",\"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\":[\"张伟\"]},{\"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\":[\"是\"]},{\"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\":[\"带笔记本,\",\"签字笔\"]},{\"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\":[\"下午\"]},

{\"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\":[\"安全知识\"]},{\"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\":[\"黄华\"]},{\"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\":[\"新员工\"]},{\"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\":[\"会议室\",\"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\":[\"张伟\"]},

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

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

[\"带笔记本,\",\"签字笔\"]},{\"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\":[\"3月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\":

[\"上午\"]},{\"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\":[\"安全知识\"]},

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

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

[\"新员工\"]},{\"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\":[\"会议室\",\"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\":[\"张伟\"]},

{\"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\":[\"是\"]},{\"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\":[\"带笔记本,\",\"签字笔\"]},

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

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

[\"安全知识\"]},{\"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\":[\"胡虎\"]},{\"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\":[\"新员工\"]},

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

[\"会议室\",\"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\":[\"张伟\"]},{\"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\":[\"是\"]},{\"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\":[\"带笔记本,\",\"签字笔\"]},{\"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\":[\"3月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\":

[\"上午\"]},{\"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\":[\"安全知识\"]},{\"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\":[\"李元\"]},

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

[\"新员工\"]},{\"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\":[\"会议室\",\"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\":

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

[\"是\"]},{\"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\":[\"带笔记本,\",

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

{\"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\":[\"安全知识\"]},{\"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\":[\"李元\"]},

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

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

[\"会议室\",\"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\":[\"张伟\"]},{\"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\":[\"是\"]},{\"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\":[\"带笔记本,

\",\"签字笔\"]},{\"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\":[\"3月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\":[\"上午\"]},{\"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\":[\"安全知识\"]},{\"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\":

[\"张峰\"]},{\"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\":[\"新员工\"]},

{\"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\":[\"会议室\",

\"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\":[\"张伟\"]},

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

{\"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\":[\"带笔记本,\",\"签字笔\"]},

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

[\"安全知识\"]},{\"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\":[\"张峰\"]},{\"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\":[\"新员工\"]},{\"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\":

[\"会议室\",\"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\":[\"张伟\"]},{\"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\":[\"是\"]},

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

[\"带笔记本,\",\"签字笔\"]}],\"footer\":\"\",\"header

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

与华为一同开发从这里开始

业务介绍

业务概述、应用场景及功能特点等详情。
了解详情 >

接入准备

注册认证、协议签署等接入前准备工作。
了解流程 >

示例代码

业务示例代码展示。
查看代码 >

API说明

接口参数定义及相关说明、限制与约束等详情。
查看文档 >
FAQ
1没有调用接口的prepare()方法可以直接使用faceCompare()方法吗?

可以的,在faceCompare()方法中会默认启动引擎,如果引擎已经启动则不会再次启动,开发者可以放心使用。

2表格识别需要像聚焦拍照OCR那样配置configuation吗?

暂时不需要。目前表格识别功能相对单一,不需要额外配置信息。

3release()方法是什么时候调用?

release()方法会卸载在NPU芯片中已经加载的模型,请在应用不再使用表格识别时及时卸载模型,释放资源。