RecognizeUsedCarInvoice
Recognizes key fields from used car unified sales invoices, including invoice code, invoice number, invoice date, invoice amount, purchaser name, and purchaser ID number, and returns structured output.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ocr:RecognizeUsedCarInvoice |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Url |
string |
No |
The URL of the image. The URL is up to 2048 bytes in length. Base64 encoding is not supported. |
https://img.alicdn.com/imgextra/i4/O1CN01NiY6e220zrtvT6dFJ_!!6000000006921-0-tps-3468-4624.jpg |
| body |
string |
No |
The binary byte stream of the image. Maximum size: 10 MB. |
Image binary. |
Supported image formats
PNG, JPG, JPEG, BMP, GIF, TIFF, WebP, PDF, and OFD.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| Code |
string |
The error code. This field is not returned if the recognition is successful. |
noPermission |
| Data |
string |
The returned data. |
{"angle":270,"data":{"title":"二手车销售统一发票","formType":"发票联","invoiceDate":"2021-03-19","invoiceCode":"021002000117","invoiceNumber":"00713899","printedInvoiceCode":"021002000117","printedInvoiceNumber":"00713899","taxCode":"03300173880207579449","purchaserName":"李壮","purchaserCode":"210105198712104354","purchaserAddress":"沈阳市皇姑区泰山路69-50号3-1-3","purchaserPhoneNumber":"18947857689","sellerName":"张鹏","sellerCode":"210105197807263716","sellerAddress":"沈阳市皇姑区宁山东路甲2号3-5-2","sellerPhoneNumber":"17641587456","licensePlateNumber":"辽A6L136","certificateNumber":"210008639051","vehicleType":"小型轿车","vinCode":"WAUYGB4H3FN031973","brandMode":"奥迪WAUYGB4H","vehicleAdministrationName":"沈阳市车管所","totalAmountInWords":"壹万圆整","totalAmount":"10000.00","marketName":"沈阳车顶尚二手车交易市场有限公司","marketTaxNumber":"91210106MA0TURHE35","marketAddress":"沈阳市铁西区北二西路29甲4号(9门)","marketBankAccountInfo":"葫芦岛银行股份有限公司沈阳分行20008411159000000025","marketPhoneNumber":"15940287043","remarks":"","drawer":"张丽"},"ftype":0,"height":4624,"orgHeight":4624,"orgWidth":3468,"prism_keyValueInfo":[{"key":"title","keyProb":100,"value":"二手车销售统一发票","valuePos":[{"x":2715,"y":228},{"x":2715,"y":347},{"x":1283,"y":352},{"x":1282,"y":233}],"valueProb":100},{"key":"formType","keyProb":85,"value":"发票联","valuePos":[{"x":2289,"y":401},{"x":2290,"y":510},{"x":1701,"y":512},{"x":1701,"y":403}],"valueProb":85},{"key":"invoiceDate","keyProb":100,"value":"2021-03-19","valuePos":[{"x":728,"y":568},{"x":729,"y":504},{"x":1142,"y":509},{"x":1141,"y":573}],"valueProb":100},{"key":"invoiceCode","keyProb":100,"value":"021002000117","valuePos":[{"x":3090,"y":376},{"x":3676,"y":359},{"x":3678,"y":432},{"x":3093,"y":450}],"valueProb":100},{"key":"invoiceNumber","keyProb":100,"value":"00713899","valuePos":[{"x":3099,"y":457},{"x":3470,"y":449},{"x":3472,"y":523},{"x":3100,"y":530}],"valueProb":100},{"key":"printedInvoiceCode","keyProb":100,"value":"021002000117","valuePos":[{"x":1307,"y":621},{"x":1308,"y":683},{"x":812,"y":688},{"x":812,"y":626}],"valueProb":100},{"key":"printedInvoiceNumber","keyProb":100,"value":"00713899","valuePos":[{"x":811,"y":797},{"x":812,"y":731},{"x":1155,"y":738},{"x":1153,"y":803}],"valueProb":100},{"key":"taxCode","keyProb":100,"value":"03300173880207579449","valuePos":[{"x":3005,"y":755},{"x":3005,"y":818},{"x":2184,"y":825},{"x":2183,"y":761}],"valueProb":100},{"key":"purchaserName","keyProb":100,"value":"李壮","valuePos":[{"x":1139,"y":977},{"x":1260,"y":977},{"x":1260,"y":1044},{"x":1139,"y":1044}],"valueProb":100},{"key":"purchaserCode","keyProb":100,"value":"210105198712104354","valuePos":[{"x":3502,"y":992},{"x":3502,"y":1054},{"x":2802,"y":1054},{"x":2802,"y":992}],"valueProb":100},{"key":"purchaserAddress","keyProb":100,"value":"沈阳市皇姑区泰山路69-50号3-1-3","valuePos":[{"x":1138,"y":1105},{"x":1988,"y":1105},{"x":1988,"y":1176},{"x":1138,"y":1176}],"valueProb":100},{"key":"purchaserPhoneNumber","keyProb":100,"value":"18947857689","valuePos":[{"x":2996,"y":1115},{"x":3466,"y":1115},{"x":3466,"y":1181},{"x":2996,"y":1181}],"valueProb":100},{"key":"sellerName","keyProb":100,"value":"张鹏","valuePos":[{"x":1137,"y":1227},{"x":1259,"y":1227},{"x":1259,"y":1296},{"x":1137,"y":1296}],"valueProb":100},{"key":"sellerCode","keyProb":100,"value":"210105197807263716","valuePos":[{"x":3501,"y":1245},{"x":3501,"y":1305},{"x":2807,"y":1307},{"x":2806,"y":1247}],"valueProb":100},{"key":"sellerAddress","keyProb":100,"value":"沈阳市皇姑区宁山东路甲2号3-5-2","valuePos":[{"x":1991,"y":1353},{"x":1991,"y":1422},{"x":1137,"y":1426},{"x":1136,"y":1356}],"valueProb":100},{"key":"sellerPhoneNumber","keyProb":100,"value":"17641587456","valuePos":[{"x":3460,"y":1372},{"x":3461,"y":1433},{"x":2996,"y":1435},{"x":2996,"y":1373}],"valueProb":100},{"key":"licensePlateNumber","keyProb":100,"value":"辽A6L136","valuePos":[{"x":1470,"y":1471},{"x":1471,"y":1541},{"x":1140,"y":1544},{"x":1139,"y":1474}],"valueProb":100},{"key":"certificateNumber","keyProb":100,"value":"210008639051","valuePos":[{"x":2433,"y":1489},{"x":2433,"y":1549},{"x":1981,"y":1553},{"x":1981,"y":1493}],"valueProb":100},{"key":"vehicleType","keyProb":100,"value":"小型轿车","valuePos":[{"x":2994,"y":1498},{"x":3229,"y":1498},{"x":3229,"y":1562},{"x":2994,"y":1562}],"valueProb":100},{"key":"vinCode","keyProb":100,"value":"WAUYGB4H3FN031973","valuePos":[{"x":1601,"y":1587},{"x":1601,"y":1633},{"x":1138,"y":1638},{"x":1137,"y":1591}],"valueProb":100},{"key":"brandMode","keyProb":100,"value":"奥迪WAUYGB4H","valuePos":[{"x":2330,"y":1616},{"x":2330,"y":1677},{"x":1986,"y":1677},{"x":1986,"y":1616}],"valueProb":100},{"key":"vehicleAdministrationName","keyProb":100,"value":"沈阳市车管所","valuePos":[{"x":3347,"y":1621},{"x":3347,"y":1690},{"x":2989,"y":1693},{"x":2989,"y":1624}],"valueProb":100},{"key":"totalAmountInWords","keyProb":100,"value":"壹万圆整","valuePos":[{"x":1528,"y":1730},{"x":1529,"y":1799},{"x":1292,"y":1801},{"x":1291,"y":1732}],"valueProb":100},{"key":"totalAmount","keyProb":100,"value":"10000.00","valuePos":[{"x":3479,"y":1746},{"x":3479,"y":1816},{"x":3048,"y":1820},{"x":3047,"y":1749}],"valueProb":100},{"key":"marketName","keyProb":100,"value":"沈阳车顶尚二手车交易市场有限公司","valuePos":[{"x":2037,"y":2282},{"x":2037,"y":2354},{"x":1124,"y":2362},{"x":1124,"y":2290}],"valueProb":100},{"key":"marketTaxNumber","keyProb":96,"value":"91210106MA0TURHE35","valuePos":[{"x":3079,"y":2255},{"x":3079,"y":2314},{"x":2397,"y":2321},{"x":2396,"y":2261}],"valueProb":96},{"key":"marketAddress","keyProb":100,"value":"沈阳市铁西区北二西路29甲4号(9门)","valuePos":[{"x":3306,"y":2378},{"x":3307,"y":2445},{"x":2399,"y":2453},{"x":2399,"y":2387}],"valueProb":100},{"key":"marketBankAccountInfo","keyProb":100,"value":"葫芦岛银行股份有限公司沈阳分行20008411159000000025","valuePos":[{"x":2522,"y":2480},{"x":2523,"y":2554},{"x":1109,"y":2567},{"x":1109,"y":2494}],"valueProb":100},{"key":"marketPhoneNumber","keyProb":100,"value":"15940287043","valuePos":[{"x":3172,"y":2579},{"x":3173,"y":2518},{"x":3603,"y":2530},{"x":3601,"y":2590}],"valueProb":100},{"key":"remarks","keyProb":100,"value":"","valueProb":100},{"key":"drawer","keyProb":100,"value":"张丽","valuePos":[{"x":2787,"y":2819},{"x":2789,"y":2756},{"x":2914,"y":2761},{"x":2911,"y":2823}],"valueProb":100}],"sliceRect":{"x0":103,"y0":372,"x1":3174,"y1":428,"x2":3041,"y2":4364,"x3":161,"y3":4360},"width":3468} |
| Message |
string |
The error message. This field is not returned if the recognition is successful. |
You are not authorized to perform this operation. |
| RequestId |
string |
The unique request ID. |
43A29C77-405E-4CC0-BC55-EE694AD00655 |
Response data description.
title Title
formType Copy type
invoiceDate Invoice date
invoiceCode Invoice code
invoiceNumber Invoice number
printedInvoiceCode Printed invoice code
printedInvoiceNumber Printed invoice number
taxCode Tax control code
purchaserName Purchaser name (organization/individual)
purchaserCode Purchaser organization code/ID number
purchaserAddress Purchaser address
purchaserPhoneNumber Purchaser phone number
sellerName Seller name (organization/individual)
sellerCode Seller organization code/ID number
sellerAddress Seller address
sellerPhoneNumber Seller phone number
licensePlateNumber License plate number
certificateNumber Registration certificate number
vehicleType Vehicle type
vinCode VIN/Vehicle identification number
brandMode Brand and model
vehicleAdministrationName Name of the destination vehicle administration office
totalAmountInWords Total vehicle price (in words)
totalAmount Total vehicle price (in figures)
marketName Used car market name
marketTaxNumber Used car market taxpayer identification number
marketAddress Used car market address
marketBankAccountInfo Used car market bank and account information
marketPhoneNumber Used car market phone number
remarks Remarks
drawer Invoice issuer
angle Angle: 0-360. 0 indicates upward, 90 indicates rightward, 180 indicates downward, and 270 indicates leftward.</br>
height Height of the image after algorithm correction
width Width of the image after algorithm correction
orgHeight Height of the original image
orgWidth Width of the original image
----------------------------------------Field descriptions in the prism_keyValueInfo text block array---------------------------------------
valuePos Coordinates of the four points of the bounding rectangle arranged clockwise: top-left, top-right, bottom-right, bottom-left
Examples
Success response
JSON format
{
"Code": "noPermission",
"Data": "{\"angle\":270,\"data\":{\"title\":\"二手车销售统一发票\",\"formType\":\"发票联\",\"invoiceDate\":\"2021-03-19\",\"invoiceCode\":\"021002000117\",\"invoiceNumber\":\"00713899\",\"printedInvoiceCode\":\"021002000117\",\"printedInvoiceNumber\":\"00713899\",\"taxCode\":\"03300173880207579449\",\"purchaserName\":\"李壮\",\"purchaserCode\":\"210105198712104354\",\"purchaserAddress\":\"沈阳市皇姑区泰山路69-50号3-1-3\",\"purchaserPhoneNumber\":\"18947857689\",\"sellerName\":\"张鹏\",\"sellerCode\":\"210105197807263716\",\"sellerAddress\":\"沈阳市皇姑区宁山东路甲2号3-5-2\",\"sellerPhoneNumber\":\"17641587456\",\"licensePlateNumber\":\"辽A6L136\",\"certificateNumber\":\"210008639051\",\"vehicleType\":\"小型轿车\",\"vinCode\":\"WAUYGB4H3FN031973\",\"brandMode\":\"奥迪WAUYGB4H\",\"vehicleAdministrationName\":\"沈阳市车管所\",\"totalAmountInWords\":\"壹万圆整\",\"totalAmount\":\"10000.00\",\"marketName\":\"沈阳车顶尚二手车交易市场有限公司\",\"marketTaxNumber\":\"91210106MA0TURHE35\",\"marketAddress\":\"沈阳市铁西区北二西路29甲4号(9门)\",\"marketBankAccountInfo\":\"葫芦岛银行股份有限公司沈阳分行20008411159000000025\",\"marketPhoneNumber\":\"15940287043\",\"remarks\":\"\",\"drawer\":\"张丽\"},\"ftype\":0,\"height\":4624,\"orgHeight\":4624,\"orgWidth\":3468,\"prism_keyValueInfo\":[{\"key\":\"title\",\"keyProb\":100,\"value\":\"二手车销售统一发票\",\"valuePos\":[{\"x\":2715,\"y\":228},{\"x\":2715,\"y\":347},{\"x\":1283,\"y\":352},{\"x\":1282,\"y\":233}],\"valueProb\":100},{\"key\":\"formType\",\"keyProb\":85,\"value\":\"发票联\",\"valuePos\":[{\"x\":2289,\"y\":401},{\"x\":2290,\"y\":510},{\"x\":1701,\"y\":512},{\"x\":1701,\"y\":403}],\"valueProb\":85},{\"key\":\"invoiceDate\",\"keyProb\":100,\"value\":\"2021-03-19\",\"valuePos\":[{\"x\":728,\"y\":568},{\"x\":729,\"y\":504},{\"x\":1142,\"y\":509},{\"x\":1141,\"y\":573}],\"valueProb\":100},{\"key\":\"invoiceCode\",\"keyProb\":100,\"value\":\"021002000117\",\"valuePos\":[{\"x\":3090,\"y\":376},{\"x\":3676,\"y\":359},{\"x\":3678,\"y\":432},{\"x\":3093,\"y\":450}],\"valueProb\":100},{\"key\":\"invoiceNumber\",\"keyProb\":100,\"value\":\"00713899\",\"valuePos\":[{\"x\":3099,\"y\":457},{\"x\":3470,\"y\":449},{\"x\":3472,\"y\":523},{\"x\":3100,\"y\":530}],\"valueProb\":100},{\"key\":\"printedInvoiceCode\",\"keyProb\":100,\"value\":\"021002000117\",\"valuePos\":[{\"x\":1307,\"y\":621},{\"x\":1308,\"y\":683},{\"x\":812,\"y\":688},{\"x\":812,\"y\":626}],\"valueProb\":100},{\"key\":\"printedInvoiceNumber\",\"keyProb\":100,\"value\":\"00713899\",\"valuePos\":[{\"x\":811,\"y\":797},{\"x\":812,\"y\":731},{\"x\":1155,\"y\":738},{\"x\":1153,\"y\":803}],\"valueProb\":100},{\"key\":\"taxCode\",\"keyProb\":100,\"value\":\"03300173880207579449\",\"valuePos\":[{\"x\":3005,\"y\":755},{\"x\":3005,\"y\":818},{\"x\":2184,\"y\":825},{\"x\":2183,\"y\":761}],\"valueProb\":100},{\"key\":\"purchaserName\",\"keyProb\":100,\"value\":\"李壮\",\"valuePos\":[{\"x\":1139,\"y\":977},{\"x\":1260,\"y\":977},{\"x\":1260,\"y\":1044},{\"x\":1139,\"y\":1044}],\"valueProb\":100},{\"key\":\"purchaserCode\",\"keyProb\":100,\"value\":\"210105198712104354\",\"valuePos\":[{\"x\":3502,\"y\":992},{\"x\":3502,\"y\":1054},{\"x\":2802,\"y\":1054},{\"x\":2802,\"y\":992}],\"valueProb\":100},{\"key\":\"purchaserAddress\",\"keyProb\":100,\"value\":\"沈阳市皇姑区泰山路69-50号3-1-3\",\"valuePos\":[{\"x\":1138,\"y\":1105},{\"x\":1988,\"y\":1105},{\"x\":1988,\"y\":1176},{\"x\":1138,\"y\":1176}],\"valueProb\":100},{\"key\":\"purchaserPhoneNumber\",\"keyProb\":100,\"value\":\"18947857689\",\"valuePos\":[{\"x\":2996,\"y\":1115},{\"x\":3466,\"y\":1115},{\"x\":3466,\"y\":1181},{\"x\":2996,\"y\":1181}],\"valueProb\":100},{\"key\":\"sellerName\",\"keyProb\":100,\"value\":\"张鹏\",\"valuePos\":[{\"x\":1137,\"y\":1227},{\"x\":1259,\"y\":1227},{\"x\":1259,\"y\":1296},{\"x\":1137,\"y\":1296}],\"valueProb\":100},{\"key\":\"sellerCode\",\"keyProb\":100,\"value\":\"210105197807263716\",\"valuePos\":[{\"x\":3501,\"y\":1245},{\"x\":3501,\"y\":1305},{\"x\":2807,\"y\":1307},{\"x\":2806,\"y\":1247}],\"valueProb\":100},{\"key\":\"sellerAddress\",\"keyProb\":100,\"value\":\"沈阳市皇姑区宁山东路甲2号3-5-2\",\"valuePos\":[{\"x\":1991,\"y\":1353},{\"x\":1991,\"y\":1422},{\"x\":1137,\"y\":1426},{\"x\":1136,\"y\":1356}],\"valueProb\":100},{\"key\":\"sellerPhoneNumber\",\"keyProb\":100,\"value\":\"17641587456\",\"valuePos\":[{\"x\":3460,\"y\":1372},{\"x\":3461,\"y\":1433},{\"x\":2996,\"y\":1435},{\"x\":2996,\"y\":1373}],\"valueProb\":100},{\"key\":\"licensePlateNumber\",\"keyProb\":100,\"value\":\"辽A6L136\",\"valuePos\":[{\"x\":1470,\"y\":1471},{\"x\":1471,\"y\":1541},{\"x\":1140,\"y\":1544},{\"x\":1139,\"y\":1474}],\"valueProb\":100},{\"key\":\"certificateNumber\",\"keyProb\":100,\"value\":\"210008639051\",\"valuePos\":[{\"x\":2433,\"y\":1489},{\"x\":2433,\"y\":1549},{\"x\":1981,\"y\":1553},{\"x\":1981,\"y\":1493}],\"valueProb\":100},{\"key\":\"vehicleType\",\"keyProb\":100,\"value\":\"小型轿车\",\"valuePos\":[{\"x\":2994,\"y\":1498},{\"x\":3229,\"y\":1498},{\"x\":3229,\"y\":1562},{\"x\":2994,\"y\":1562}],\"valueProb\":100},{\"key\":\"vinCode\",\"keyProb\":100,\"value\":\"WAUYGB4H3FN031973\",\"valuePos\":[{\"x\":1601,\"y\":1587},{\"x\":1601,\"y\":1633},{\"x\":1138,\"y\":1638},{\"x\":1137,\"y\":1591}],\"valueProb\":100},{\"key\":\"brandMode\",\"keyProb\":100,\"value\":\"奥迪WAUYGB4H\",\"valuePos\":[{\"x\":2330,\"y\":1616},{\"x\":2330,\"y\":1677},{\"x\":1986,\"y\":1677},{\"x\":1986,\"y\":1616}],\"valueProb\":100},{\"key\":\"vehicleAdministrationName\",\"keyProb\":100,\"value\":\"沈阳市车管所\",\"valuePos\":[{\"x\":3347,\"y\":1621},{\"x\":3347,\"y\":1690},{\"x\":2989,\"y\":1693},{\"x\":2989,\"y\":1624}],\"valueProb\":100},{\"key\":\"totalAmountInWords\",\"keyProb\":100,\"value\":\"壹万圆整\",\"valuePos\":[{\"x\":1528,\"y\":1730},{\"x\":1529,\"y\":1799},{\"x\":1292,\"y\":1801},{\"x\":1291,\"y\":1732}],\"valueProb\":100},{\"key\":\"totalAmount\",\"keyProb\":100,\"value\":\"10000.00\",\"valuePos\":[{\"x\":3479,\"y\":1746},{\"x\":3479,\"y\":1816},{\"x\":3048,\"y\":1820},{\"x\":3047,\"y\":1749}],\"valueProb\":100},{\"key\":\"marketName\",\"keyProb\":100,\"value\":\"沈阳车顶尚二手车交易市场有限公司\",\"valuePos\":[{\"x\":2037,\"y\":2282},{\"x\":2037,\"y\":2354},{\"x\":1124,\"y\":2362},{\"x\":1124,\"y\":2290}],\"valueProb\":100},{\"key\":\"marketTaxNumber\",\"keyProb\":96,\"value\":\"91210106MA0TURHE35\",\"valuePos\":[{\"x\":3079,\"y\":2255},{\"x\":3079,\"y\":2314},{\"x\":2397,\"y\":2321},{\"x\":2396,\"y\":2261}],\"valueProb\":96},{\"key\":\"marketAddress\",\"keyProb\":100,\"value\":\"沈阳市铁西区北二西路29甲4号(9门)\",\"valuePos\":[{\"x\":3306,\"y\":2378},{\"x\":3307,\"y\":2445},{\"x\":2399,\"y\":2453},{\"x\":2399,\"y\":2387}],\"valueProb\":100},{\"key\":\"marketBankAccountInfo\",\"keyProb\":100,\"value\":\"葫芦岛银行股份有限公司沈阳分行20008411159000000025\",\"valuePos\":[{\"x\":2522,\"y\":2480},{\"x\":2523,\"y\":2554},{\"x\":1109,\"y\":2567},{\"x\":1109,\"y\":2494}],\"valueProb\":100},{\"key\":\"marketPhoneNumber\",\"keyProb\":100,\"value\":\"15940287043\",\"valuePos\":[{\"x\":3172,\"y\":2579},{\"x\":3173,\"y\":2518},{\"x\":3603,\"y\":2530},{\"x\":3601,\"y\":2590}],\"valueProb\":100},{\"key\":\"remarks\",\"keyProb\":100,\"value\":\"\",\"valueProb\":100},{\"key\":\"drawer\",\"keyProb\":100,\"value\":\"张丽\",\"valuePos\":[{\"x\":2787,\"y\":2819},{\"x\":2789,\"y\":2756},{\"x\":2914,\"y\":2761},{\"x\":2911,\"y\":2823}],\"valueProb\":100}],\"sliceRect\":{\"x0\":103,\"y0\":372,\"x1\":3174,\"y1\":428,\"x2\":3041,\"y2\":4364,\"x3\":161,\"y3\":4360},\"width\":3468}",
"Message": "You are not authorized to perform this operation.",
"RequestId": "43A29C77-405E-4CC0-BC55-EE694AD00655"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.