韩语识别

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String 是 RecognizeKorean

系统规定参数。取值:RecognizeKorean。

Url String 否 https://img.alicdn.com/tfs/TB1Wo7eXAvoK1RjSZFDXXXY3pXa-2512-3509.jpg

图片链接(长度不超 2048,不支持 base64)

String 否 图片二进制文件

图片二进制文件,最大10MB,与URL二选一。 使用HTTP方式调用,把图片二进制文件放到HTTP body 中上传即可。 使用SDK的方式调用,把图片放到SDK的body中即可。

OutputCharInfo Boolean 否 false

是否输出单字识别结果

NeedRotate Boolean 否 false

是否需要自动旋转功能(结构化检测、混贴场景、教育相关场景会自动做旋转,无需设置),返回角度信息

OutputTable Boolean 否 false

是否输出表格识别结果,包含单元格信息

返回数据

名称 类型 示例值 描述
RequestId String 43A29C77-405E-4CC0-BC55-EE694AD00655

请求唯一 ID

Data String {"content":"위 기자재는 [전파법] 제58조의2 제3항에 따라 등록되었음을 증명합니다. Itis verified thatforegoing equipment has bee en registered underthe Clause 3, Article 58-2 of Radio Waves Act. y0 13년(Year)_08월(Month) 16일(Date) 국립전 파연구 국립전파연7 구원장 인 Dlrector General ofNatlonal Radio Research Agency 적합등록 방송통신기자재는 반드시\"적합성평가표: .시\"를 부착하여 유통하여야 합니다. 위반시 과태료 처분 및등록이 취소될 수 있습니다. ","height":499,"orgHeight":499,"orgWidth":1153,"prism_version":"1.0.9","prism_wnum":19,"prism_wordsInfo":[{"angle":-90,"direction":0,"height":587,"pos":[{"x":61,"y":18},{"x":647,"y":16},{"x":647,"y":43},{"x":61,"y":45}],"prob":98,"width":27,"word":"위 기자재는 [전파법] 제58조의2 제3항에 따라","x":341,"y":-263}],"width":1153}

返回数据

Code String 200

状态码

Message String message

详细信息

示例

请求示例

http(s)://[Endpoint]/?Action=RecognizeKorean
&Url=https://img.alicdn.com/tfs/TB1Wo7eXAvoK1RjSZFDXXXY3pXa-2512-3509.jpg
&OutputCharInfo=false
&NeedRotate=false
&OutputTable=false
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<RecognizeKoreanResponse>
    <RequestId>98971BEA-0BCF-4BF3-9416-D7F4605AF58C</RequestId>
    <Data>{"content":"위 기자재는 [전파법] 제58조의2 제3항에 따라 등록되었음을 증명합니다.  Itis verified thatforegoing equipment has bee en registered underthe Clause 3, Article 58-2 of Radio Waves Act.  y0 13년(Year)_08월(Month) 16일(Date) 국립전 파연구 국립전파연7 구원장 인 Dlrector General ofNatlonal Radio Research Agency    적합등록 방송통신기자재는 반드시\"적합성평가표: .시\"를 부착하여 유통하여야 합니다.  위반시 과태료 처분 및등록이 취소될 수 있습니다.  ","height":499,"orgHeight":499,"orgWidth":1153,"prism_version":"1.0.9","prism_wnum":19,"prism_wordsInfo":[{"angle":-90,"direction":0,"height":587,"pos":[{"x":61,"y":18},{"x":647,"y":16},{"x":647,"y":43},{"x":61,"y":45}],"prob":98,"width":27,"word":"위 기자재는 [전파법] 제58조의2 제3항에 따라","x":341,"y":-263},{"angle":0,"direction":0,"height":31,"pos":[{"x":657,"y":15},{"x":973,"y":13},{"x":973,"y":43},{"x":657,"y":46}],"prob":97,"width":316,"word":"등록되었음을 증명합니다.","x":657,"y":14},{"angle":0,"direction":0,"height":27,"pos":[{"x":15,"y":58},{"x":663,"y":57},{"x":663,"y":85},{"x":15,"y":86}],"prob":98,"width":649,"word":" Itis verified thatforegoing equipment has bee","x":14,"y":57},{"angle":-90,"direction":0,"height":464,"pos":[{"x":656,"y":55},{"x":1121,"y":55},{"x":1121,"y":83},{"x":656,"y":83}],"prob":97,"width":27,"word":"en registered underthe Clause 3,","x":875,"y":-162},{"angle":-90,"direction":0,"height":455,"pos":[{"x":16,"y":96},{"x":470,"y":96},{"x":470,"y":121},{"x":16,"y":121}],"prob":98,"width":26,"word":"Article 58-2 of Radio Waves Act. ","x":230,"y":-119},{"angle":-90,"direction":0,"height":38,"pos":[{"x":621,"y":144},{"x":658,"y":144},{"x":658,"y":167},{"x":621,"y":167}],"prob":91,"width":24,"word":"y0","x":628,"y":137},{"angle":0,"direction":0,"height":27,"pos":[{"x":661,"y":141},{"x":1127,"y":140},{"x":1127,"y":168},{"x":661,"y":169}],"prob":98,"width":465,"word":"13년(Year)_08월(Month) 16일(Date)","x":661,"y":141},{"angle":0,"direction":0,"height":37,"pos":[{"x":776,"y":180},{"x":899,"y":179},{"x":899,"y":217},{"x":776,"y":218}],"prob":99,"width":122,"word":"국립전","x":776,"y":179},{"angle":0,"direction":0,"height":26,"pos":[{"x":776,"y":220},{"x":899,"y":220},{"x":899,"y":247},{"x":776,"y":247}],"prob":97,"width":122,"word":"파연구","x":776,"y":220},{"angle":0,"direction":0,"height":33,"pos":[{"x":463,"y":246},{"x":660,"y":246},{"x":660,"y":277},{"x":463,"y":277}],"prob":99,"width":198,"word":"국립전파연7","x":463,"y":245},{"angle":-90,"direction":0,"height":102,"pos":[{"x":658,"y":243},{"x":760,"y":243},{"x":760,"y":276},{"x":658,"y":276}],"prob":99,"width":33,"word":"구원장","x":692,"y":209},{"angle":-90,"direction":0,"height":59,"pos":[{"x":840,"y":258},{"x":899,"y":258},{"x":899,"y":301},{"x":840,"y":301}],"prob":99,"width":42,"word":"인","x":849,"y":250},{"angle":0,"direction":0,"height":27,"pos":[{"x":167,"y":332},{"x":648,"y":329},{"x":648,"y":358},{"x":167,"y":360}],"prob":95,"width":483,"word":"Dlrector General ofNatlonal","x":165,"y":330},{"angle":-89,"direction":0,"height":395,"pos":[{"x":660,"y":328},{"x":1056,"y":331},{"x":1056,"y":360},{"x":660,"y":357}],"prob":98,"width":29,"word":"Radio Research Agency","x":843,"y":146},{"angle":-90,"direction":0,"height":29,"pos":[{"x":143,"y":431},{"x":172,"y":431},{"x":172,"y":455},{"x":143,"y":455}],"prob":97,"width":24,"word":"  ","x":145,"y":428},{"angle":0,"direction":0,"height":24,"pos":[{"x":179,"y":432},{"x":661,"y":425},{"x":661,"y":451},{"x":180,"y":458}],"prob":98,"width":483,"word":"적합등록 방송통신기자재는 반드시\"적합성평가표:","x":178,"y":429},{"angle":-90,"direction":0,"height":339,"pos":[{"x":656,"y":426},{"x":996,"y":426},{"x":996,"y":453},{"x":656,"y":453}],"prob":99,"width":26,"word":".시\"를 부착하여 유통하여야 합니다. ","x":813,"y":270},{"angle":-89,"direction":0,"height":350,"pos":[{"x":313,"y":460},{"x":661,"y":460},{"x":661,"y":483},{"x":313,"y":483}],"prob":99,"width":23,"word":"위반시 과태료 처분 및등록이 취소될","x":475,"y":296},{"angle":0,"direction":0,"height":21,"pos":[{"x":666,"y":460},{"x":789,"y":460},{"x":789,"y":483},{"x":666,"y":483}],"prob":97,"width":121,"word":"수 있습니다. ","x":666,"y":461}],"width":1153}</Data>
</RecognizeKoreanResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "98971BEA-0BCF-4BF3-9416-D7F4605AF58C",
  "Data" : "{\"content\":\"위 기자재는 [전파법] 제58조의2 제3항에 따라 등록되었음을 증명합니다.  Itis verified thatforegoing equipment has bee en registered underthe Clause 3, Article 58-2 of Radio Waves Act.  y0 13년(Year)_08월(Month) 16일(Date) 국립전 파연구 국립전파연7 구원장 인 Dlrector General ofNatlonal Radio Research Agency    적합등록 방송통신기자재는 반드시\\\"적합성평가표: .시\\\"를 부착하여 유통하여야 합니다.  위반시 과태료 처분 및등록이 취소될 수 있습니다.  \",\"height\":499,\"orgHeight\":499,\"orgWidth\":1153,\"prism_version\":\"1.0.9\",\"prism_wnum\":19,\"prism_wordsInfo\":[{\"angle\":-90,\"direction\":0,\"height\":587,\"pos\":[{\"x\":61,\"y\":18},{\"x\":647,\"y\":16},{\"x\":647,\"y\":43},{\"x\":61,\"y\":45}],\"prob\":98,\"width\":27,\"word\":\"위 기자재는 [전파법] 제58조의2 제3항에 따라\",\"x\":341,\"y\":-263},{\"angle\":0,\"direction\":0,\"height\":31,\"pos\":[{\"x\":657,\"y\":15},{\"x\":973,\"y\":13},{\"x\":973,\"y\":43},{\"x\":657,\"y\":46}],\"prob\":97,\"width\":316,\"word\":\"등록되었음을 증명합니다.\",\"x\":657,\"y\":14},{\"angle\":0,\"direction\":0,\"height\":27,\"pos\":[{\"x\":15,\"y\":58},{\"x\":663,\"y\":57},{\"x\":663,\"y\":85},{\"x\":15,\"y\":86}],\"prob\":98,\"width\":649,\"word\":\" Itis verified thatforegoing equipment has bee\",\"x\":14,\"y\":57},{\"angle\":-90,\"direction\":0,\"height\":464,\"pos\":[{\"x\":656,\"y\":55},{\"x\":1121,\"y\":55},{\"x\":1121,\"y\":83},{\"x\":656,\"y\":83}],\"prob\":97,\"width\":27,\"word\":\"en registered underthe Clause 3,\",\"x\":875,\"y\":-162},{\"angle\":-90,\"direction\":0,\"height\":455,\"pos\":[{\"x\":16,\"y\":96},{\"x\":470,\"y\":96},{\"x\":470,\"y\":121},{\"x\":16,\"y\":121}],\"prob\":98,\"width\":26,\"word\":\"Article 58-2 of Radio Waves Act. \",\"x\":230,\"y\":-119},{\"angle\":-90,\"direction\":0,\"height\":38,\"pos\":[{\"x\":621,\"y\":144},{\"x\":658,\"y\":144},{\"x\":658,\"y\":167},{\"x\":621,\"y\":167}],\"prob\":91,\"width\":24,\"word\":\"y0\",\"x\":628,\"y\":137},{\"angle\":0,\"direction\":0,\"height\":27,\"pos\":[{\"x\":661,\"y\":141},{\"x\":1127,\"y\":140},{\"x\":1127,\"y\":168},{\"x\":661,\"y\":169}],\"prob\":98,\"width\":465,\"word\":\"13년(Year)_08월(Month) 16일(Date)\",\"x\":661,\"y\":141},{\"angle\":0,\"direction\":0,\"height\":37,\"pos\":[{\"x\":776,\"y\":180},{\"x\":899,\"y\":179},{\"x\":899,\"y\":217},{\"x\":776,\"y\":218}],\"prob\":99,\"width\":122,\"word\":\"국립전\",\"x\":776,\"y\":179},{\"angle\":0,\"direction\":0,\"height\":26,\"pos\":[{\"x\":776,\"y\":220},{\"x\":899,\"y\":220},{\"x\":899,\"y\":247},{\"x\":776,\"y\":247}],\"prob\":97,\"width\":122,\"word\":\"파연구\",\"x\":776,\"y\":220},{\"angle\":0,\"direction\":0,\"height\":33,\"pos\":[{\"x\":463,\"y\":246},{\"x\":660,\"y\":246},{\"x\":660,\"y\":277},{\"x\":463,\"y\":277}],\"prob\":99,\"width\":198,\"word\":\"국립전파연7\",\"x\":463,\"y\":245},{\"angle\":-90,\"direction\":0,\"height\":102,\"pos\":[{\"x\":658,\"y\":243},{\"x\":760,\"y\":243},{\"x\":760,\"y\":276},{\"x\":658,\"y\":276}],\"prob\":99,\"width\":33,\"word\":\"구원장\",\"x\":692,\"y\":209},{\"angle\":-90,\"direction\":0,\"height\":59,\"pos\":[{\"x\":840,\"y\":258},{\"x\":899,\"y\":258},{\"x\":899,\"y\":301},{\"x\":840,\"y\":301}],\"prob\":99,\"width\":42,\"word\":\"인\",\"x\":849,\"y\":250},{\"angle\":0,\"direction\":0,\"height\":27,\"pos\":[{\"x\":167,\"y\":332},{\"x\":648,\"y\":329},{\"x\":648,\"y\":358},{\"x\":167,\"y\":360}],\"prob\":95,\"width\":483,\"word\":\"Dlrector General ofNatlonal\",\"x\":165,\"y\":330},{\"angle\":-89,\"direction\":0,\"height\":395,\"pos\":[{\"x\":660,\"y\":328},{\"x\":1056,\"y\":331},{\"x\":1056,\"y\":360},{\"x\":660,\"y\":357}],\"prob\":98,\"width\":29,\"word\":\"Radio Research Agency\",\"x\":843,\"y\":146},{\"angle\":-90,\"direction\":0,\"height\":29,\"pos\":[{\"x\":143,\"y\":431},{\"x\":172,\"y\":431},{\"x\":172,\"y\":455},{\"x\":143,\"y\":455}],\"prob\":97,\"width\":24,\"word\":\"  \",\"x\":145,\"y\":428},{\"angle\":0,\"direction\":0,\"height\":24,\"pos\":[{\"x\":179,\"y\":432},{\"x\":661,\"y\":425},{\"x\":661,\"y\":451},{\"x\":180,\"y\":458}],\"prob\":98,\"width\":483,\"word\":\"적합등록 방송통신기자재는 반드시\\\"적합성평가표:\",\"x\":178,\"y\":429},{\"angle\":-90,\"direction\":0,\"height\":339,\"pos\":[{\"x\":656,\"y\":426},{\"x\":996,\"y\":426},{\"x\":996,\"y\":453},{\"x\":656,\"y\":453}],\"prob\":99,\"width\":26,\"word\":\".시\\\"를 부착하여 유통하여야 합니다. \",\"x\":813,\"y\":270},{\"angle\":-89,\"direction\":0,\"height\":350,\"pos\":[{\"x\":313,\"y\":460},{\"x\":661,\"y\":460},{\"x\":661,\"y\":483},{\"x\":313,\"y\":483}],\"prob\":99,\"width\":23,\"word\":\"위반시 과태료 처분 및등록이 취소될\",\"x\":475,\"y\":296},{\"angle\":0,\"direction\":0,\"height\":21,\"pos\":[{\"x\":666,\"y\":460},{\"x\":789,\"y\":460},{\"x\":789,\"y\":483},{\"x\":666,\"y\":483}],\"prob\":97,\"width\":121,\"word\":\"수 있습니다. \",\"x\":666,\"y\":461}],\"width\":1153}"
}

返回示例补充说明

返回数据说明</br>
angle                  图片的角度,0表示正向,90表示图片朝右,180朝下,270朝左</br>
content              识别出图片的文字块汇总</br>
height                算法矫正图片后的高度</br>
width                 算法矫正图片后的宽度</br>
orgHeight          原图的高度</br>
orgWidth           原图的宽度</br>
prism_wnum      识别的文字块的数量,prism_wordsInfo数组的大小</br>
-------------------------prism-wordsInfo文字块数组内的字段说明-------------------------</br>
angle                 文字块的角度,这个角度只影响width和height,当角度为-90、90、-270、270,width和height的值需要自行互换</br>
height                文字块的高度</br>
width                 文字块的宽度</br>
pos                    文字块的外矩形四个点的坐标按顺时针排列,左上、右上、右下、左下,当NeedRotate为true时,如果最外层的angle不为0,需要按照angle矫正图片后,坐标才准确</br>
word                  文字块的文字</br>
tableId               当OutputTable为true并且该文字块在表格内则存在该字段,tableId表示表格的id</br>
tableCellId         当OutputTable为true并且该文字块在表格内则存在该字段,表示表格中单元格的id</br>
----------------------------------------charInfo单字信息-----------------------------------------</br>
word                  单字文字</br>
x                        单字左上角横坐标</br>
y                        单字左上角纵坐标</br>
w                       单字宽度
<span>h                       单字高度</span></br>
--------------------------------------------------------------------------------------------------------</br>
--------------------------------------------------------------------------------------------------------</br>
---------------------------prism-tablesInfo表格数组内的字段说明--------------------------</br>
tableId               表格id,和prism_wordsInfo信息中的tableId对应</br>
xCellSize            表格中横坐标单元格的数量</br>
yCellSize            表格中纵坐标单元格的数量</br>
------------cellInfos单元格信息,包含单元格在整个表格中的空间拓扑关系---------</br>
tableCellId         表格中单元格id,和prism_wordsInfo信息中的tableCellId对应</br>
word                 单元格中的文字</br>
xsc                    xStartCell缩写,表示横轴方向该单元格起始在第几个单元格,第一个单元格值为0</br>
xec                    xEndCell缩写,表示横轴方向该单元格结束在第几个单元格,第一个单元格值为0,如果xsc和xec都为0说明该文字在横轴方向占据了一个单元格并且在第一个单元格内</br>
ysc                    yStartCell缩写,表示纵轴方向该单元格起始在第几个单元格,第一个单元格值为0</br>
yec                    yEndCell缩写,表示纵轴方向该单元格结束在第几个单元格,第一个单元格值为0</br>
pos                   单元格位置,按照单元格四个角的坐标顺时针排列,分别为左上XY坐标、右上XY坐标、右下XY坐标、左下XY坐标</br>
--------------------------------------------------------------------------------------------------------</br>
--------------------------------------------------------------------------------------------------------</br>

错误码

访问错误中心查看更多错误码。