1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
|
<?php return [
'version' => '1.0',
'info' => ['style' => 'RPC', 'product' => 'ocr', 'version' => '2019-12-30'],
'directories' => [
[
'children' => ['GetAsyncJobResult'],
'type' => 'directory',
'title' => 'Asynchronous Result',
],
[
'children' => ['RecognizeBankCard', 'RecognizeBusinessLicense', 'RecognizeCharacter', 'RecognizeDriverLicense', 'RecognizeDrivingLicense', 'RecognizeIdentityCard', 'RecognizeLicensePlate', 'RecognizeQrCode', 'RecognizeTable', 'RecognizeTaxiInvoice', 'RecognizeTrainTicket', 'RecognizeVATInvoice', 'RecognizeVINCode'],
'type' => 'directory',
'title' => 'Detect',
],
[
'children' => ['RecognizePdf', 'RecognizeQuotaInvoice', 'RecognizeTicketInvoice'],
'title' => 'Others',
'type' => 'directory',
],
],
'components' => [
'schemas' => [],
],
'apis' => [
'GetAsyncJobResult' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'JobId',
'in' => 'formData',
'schema' => ['description' => 'The RequestId returned by the asynchronous operation. You can use this ID to query the actual result of the asynchronous operation.', 'type' => 'string', 'required' => true, 'example' => 'E75FE679-0303-4DD1-8252-1143B4FA8A27', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '1',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'A1F44EC4-118D-4A03-B213-F908F36F7DAA', 'title' => ''],
'Data' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The status of the asynchronous task. Valid values:'."\n"
."\n"
.'- QUEUING: The task is queuing.'."\n"
."\n"
.'- PROCESSING: The task is being processed.'."\n"
."\n"
.'- PROCESS_SUCCESS: The task is processed.'."\n"
."\n"
.'- PROCESS_FAILED: The task failed to be processed.'."\n"
."\n"
.'- TIMEOUT_FAILED: The task timed out.'."\n"
."\n"
.'- LIMIT_RETRY_FAILED: The maximum number of retries is exceeded.', 'type' => 'string', 'example' => 'PROCESS_SUCCESS', 'title' => ''],
'ErrorMessage' => ['description' => 'The error message of the asynchronous task.', 'type' => 'string', 'example' => 'paramsIllegal', 'title' => ''],
'Result' => ['description' => 'The actual result of the asynchronous task.', 'type' => 'string', 'example' => '{\\"Content\\":\\"<div > <h2 > 2017 年 3 月 40 多家陶企上榜失信被执行人名单 </h2><div > 1 月 7 日,陶卫网记者根据最高人民法院及各地法院发布的失信被执行人信息统计,2019 年 12 月全国各地有 112 家陶瓷企业被列入“失信被执行人”名单,名单涉及 21 个省(市)。此次名单中,广东省的失信陶企多达 28 家。 </div><div > 据统计,这些“失信被执行人”的上榜原因主要为债务纠纷,欠款不还,大部分为拖欠供应商货款、工资、员工赔偿、银行贷款以及融资租赁租金等,也有涉及运输、燃气等费用,小部分企业涉及承担债务连带清偿责任。 </div><table border=1> <tr><td > 公司名称 </td><td > 最新失信发布时间 </td><td > 累计失信次数 </td> </tr> <tr><td > 潮州市澳士通陶瓷实业有限公司 </td><td > 3 月 15 日 </td><td > 1 次 </td> </tr> <tr><td > 肇庆市德圣陶瓷有限公司 </td><td > 3 月 14 日 </td><td > 6 次 </td> </tr> <tr><td > 清远市港龙陶瓷有限公司 </td><td > 3 月 10 日 </td><td > 28 次 </td> </tr> <tr><td > 广西金沙江陶瓷有限公司 </td><td > 3 月 14 日 </td><td > 3 次 </td> </tr> <tr><td > 宜丰县凯扬陶瓷发展有限公司 </td><td > 3 月 29 日 </td><td > 11 次 </td> </tr> <tr><td > 江西领先精工陶瓷发展有限公司 </td><td > 3 月 29 日 </td><td > 23 次 </td> </tr> <tr><td > 高安弘建陶瓷有限公司 </td><td > 3 月 28 日 </td><td > 5 次 </td> </tr></table>\\"}', 'title' => ''],
'ErrorCode' => ['description' => 'The error code of the asynchronous task.', 'type' => 'string', 'example' => 'InvalidParameter', 'title' => ''],
'JobId' => ['description' => 'The asynchronous task ID.', 'type' => 'string', 'example' => '49E2CC28-ED1D-4CC5-854D-7D0AE2B20976', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => 'The parameter is invalid. Please check again.'],
],
403 => [
['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => 'An error occurred while performing authorization. Please check your RAM configuration.'],
],
408 => [
['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"A1F44EC4-118D-4A03-B213-F908F36F7DAA\\",\\n \\"Data\\": {\\n \\"Status\\": \\"PROCESS_SUCCESS\\",\\n \\"ErrorMessage\\": \\"paramsIllegal\\",\\n \\"Result\\": \\"{\\\\\\\\\\\\\\"Content\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"<div > <h2 > 2017 年 3 月 40 多家陶企上榜失信被执行人名单 </h2><div > 1 月 7 日,陶卫网记者根据最高人民法院及各地法院发布的失信被执行人信息统计,2019 年 12 月全国各地有 112 家陶瓷企业被列入“失信被执行人”名单,名单涉及 21 个省(市)。此次名单中,广东省的失信陶企多达 28 家。 </div><div > 据统计,这些“失信被执行人”的上榜原因主要为债务纠纷,欠款不还,大部分为拖欠供应商货款、工资、员工赔偿、银行贷款以及融资租赁租金等,也有涉及运输、燃气等费用,小部分企业涉及承担债务连带清偿责任。 </div><table border=1> <tr><td > 公司名称 </td><td > 最新失信发布时间 </td><td > 累计失信次数 </td> </tr> <tr><td > 潮州市澳士通陶瓷实业有限公司 </td><td > 3 月 15 日 </td><td > 1 次 </td> </tr> <tr><td > 肇庆市德圣陶瓷有限公司 </td><td > 3 月 14 日 </td><td > 6 次 </td> </tr> <tr><td > 清远市港龙陶瓷有限公司 </td><td > 3 月 10 日 </td><td > 28 次 </td> </tr> <tr><td > 广西金沙江陶瓷有限公司 </td><td > 3 月 14 日 </td><td > 3 次 </td> </tr> <tr><td > 宜丰县凯扬陶瓷发展有限公司 </td><td > 3 月 29 日 </td><td > 11 次 </td> </tr> <tr><td > 江西领先精工陶瓷发展有限公司 </td><td > 3 月 29 日 </td><td > 23 次 </td> </tr> <tr><td > 高安弘建陶瓷有限公司 </td><td > 3 月 28 日 </td><td > 5 次 </td> </tr></table>\\\\\\\\\\\\\\"}\\",\\n \\"ErrorCode\\": \\"InvalidParameter\\",\\n \\"JobId\\": \\"49E2CC28-ED1D-4CC5-854D-7D0AE2B20976\\"\\n }\\n}","type":"json"}]',
'title' => 'Query asynchronous task results',
'summary' => 'This topic describes the syntax and examples of the GetAsyncJobResult operation for querying asynchronous task results.',
'description' => '## Feature description'."\n"
.'After you invoke an asynchronous API operation, the response does not contain the actual result. Save the RequestId from the response, and then invoke GetAsyncJobResult to obtain the actual result.'."\n"
."\n"
.'> - Files generated by asynchronous tasks expire after 30 minutes. To retain the files for a longer period, download them to a local service or store them in Object Storage Service (OSS) promptly. For more information about OSS operations, see [Upload objects](~~31886~~).'."\n"
.'> - To request access to Alibaba Cloud Vision Intelligence Open Platform visual AI capabilities, learn about API usage, or consult on related issues, join the DingTalk group (23109592) to contact us.'."\n"
."\n\n"
.'Currently, RecognizeVideoCharacter in the OCR category is an asynchronous operation. You must invoke GetAsyncJobResult to obtain the actual result.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '## SDK reference'."\n"
.'We recommend that you use SDKs to call Alibaba Cloud Vision AI operations. SDKs support multiple programming languages and allow you to use local files or URLs as file parameters. For more information, see [SDK overview](~~145033~~).',
'extraInfo' => '## Deserialization of Result'."\n"
.'The deserialized Result is shown as follows.'."\n"
.'```'."\n"
.'{'."\n"
.' "Content": "<div > <h2 > 2017 年 3 月 40 多家陶企上榜失信被执行人名单 </h2><div > 1 月 7 日,陶卫网记者根据最高人民法院及各地法院发布的失信被执行人信息统计,2019 年 12 月全国各地有 112 家陶瓷企业被列入"失信被执行人"名单,名单涉及 21 个省(市)。此次名单中,广东省的失信陶企多达 28 家。 </div><div > 据统计,这些"失信被执行人"的上榜原因主要为债务纠纷,欠款不还,大部分为拖欠供应商货款、工资、员工赔偿、银行贷款以及融资租赁租金等,也有涉及运输、燃气等费用,小部分企业涉及承担债务连带清偿责任。 </div><table border=1> <tr><td > 公司名称 </td><td > 最新失信发布时间 </td><td > 累计失信次数 </td> </tr> <tr><td > 潮州市澳士通陶瓷实业有限公司 </td><td > 3 月 15 日 </td><td > 1 次 </td> </tr> <tr><td > 肇庆市德圣陶瓷有限公司 </td><td > 3 月 14 日 </td><td > 6 次 </td> </tr> <tr><td > 清远市港龙陶瓷有限公司 </td><td > 3 月 10 日 </td><td > 28 次 </td> </tr> <tr><td > 广西金沙江陶瓷有限公司 </td><td > 3 月 14 日 </td><td > 3 次 </td> </tr> <tr><td > 宜丰县凯扬陶瓷发展有限公司 </td><td > 3 月 29 日 </td><td > 11 次 </td> </tr> <tr><td > 江西领先精工陶瓷发展有限公司 </td><td > 3 月 29 日 </td><td > 23 次 </td> </tr> <tr><td > 高安弘建陶瓷有限公司 </td><td > 3 月 28 日 </td><td > 5 次 </td> </tr></table>"'."\n"
.'}'."\n"
.'```.'."\n"
."\n"
.'## Error codes'."\n"
.'For error codes related to querying asynchronous task results, see [Common error codes](~~146772~~).'."\n"
."\n"
.'## Security notice'."\n"
.'- Ensure that the uploaded images or files comply with applicable laws and regulations.'."\n"
.'- Temporary files uploaded through the debugging console are valid for 1 hour and are automatically deleted by the system after 24 hours.',
'changeSet' => [
['createdAt' => '2022-04-24T08:10:35.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAsyncJobResult'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'viapi-ocr:GetAsyncJobResult',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'RecognizeBankCard' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'ImageURL',
'in' => 'formData',
'schema' => ['description' => 'The URL of the image. We recommend that you use an Object Storage Service (OSS) link in the Shanghai region. If the file is stored locally or in an OSS bucket outside the Shanghai region, see [File URL processing](~~155645~~).', 'type' => 'string', 'required' => true, 'isFileTransferUrl' => true, 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeBankCard/yhk3.jpg', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '1',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D9C7521-0367-42EE-9646-FD066CCADB26', 'title' => ''],
'Data' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'CardNumber' => ['description' => 'The bank card number.', 'type' => 'string', 'example' => '6212262315007683105', 'title' => ''],
'ValidDate' => ['description' => 'The expiration date. An empty string is returned if recognition fails. If multiple dates exist, they are separated by commas, for example, `03/17,04/05`.', 'type' => 'string', 'example' => '07/26', 'title' => ''],
'BankName' => ['description' => 'The bank name. An empty string is returned if recognition fails.', 'type' => 'string', 'example' => '中国工商银行', 'title' => ''],
'CardType' => ['description' => 'The bank card type. Valid values:'."\n"
.'- CC: credit card'."\n"
.'- SCC: semi-credit card'."\n"
.'- DCC: debit-credit card'."\n"
.'- DC: debit card'."\n"
.'- PC: prepaid card.', 'type' => 'string', 'example' => 'CC', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => 'The parameter is invalid. Please check again.'],
],
403 => [
['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => 'An error occurred while performing authorization. Please check your RAM configuration.'],
],
408 => [
['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9C7521-0367-42EE-9646-FD066CCADB26\\",\\n \\"Data\\": {\\n \\"CardNumber\\": \\"6212262315007683105\\",\\n \\"ValidDate\\": \\"07/26\\",\\n \\"BankName\\": \\"中国工商银行\\",\\n \\"CardType\\": \\"CC\\"\\n }\\n}","type":"json"}]',
'title' => 'Bank card recognition',
'summary' => 'This topic describes the syntax and examples of the RecognizeBankCard operation for bank card recognition.',
'description' => '## Feature description'."\n"
.'The bank card recognition feature detects mainstream bank card images and returns three pieces of information: the issuing bank, bank card number, and expiration date.'."\n"
."\n"
.'> - You can visit [Online Consultation](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2) for online assistance.'."\n"
.'- You can try this feature for free on the Vision Intelligence Open Platform. Click [Try Now](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeBankCard) to experience this feature or purchase it online.'."\n"
.'- For questions about API integration and usage of Alibaba Cloud Vision Intelligence Open Platform, join the DingTalk group (23109592) to contact us.'."\n"
."\n"
.'## Integration guide'."\n"
.'1. Register an Alibaba Cloud account: Go to the [Alibaba Cloud official website](https://www.aliyun.com), click **Register Now** in the upper-right corner, and follow the instructions to complete the registration.'."\n"
.'2. Activate the service: Make sure you have activated the [OCR service](https://vision.aliyun.com/ocr). If you have not activated the service, [activate it now](https://common-buy.aliyun.com/?commodityCode=viapi_ocr_public_cn#/open).'."\n"
.'3. Create an AccessKey: Make sure you have [created an AccessKey](~~175144~~). If you are using a RAM user AccessKey, grant the AliyunVIAPIFullAccess permission to the RAM user. For more information, see [RAM authorization](~~145025~~).'."\n"
.'4. Online debugging (optional): You can use [OpenAPI Explorer](https://next.api.aliyun.com/api/ocr/2019-12-30/RecognizeBankCard?lang=JAVA&sdkStyle=dara¶ms=%7B%22ImageURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Focr%2FRecognizeBankCard%2Fyhk1.jpg%22%7D&tab=DEMO) to debug this feature online, view complete sample code and SDK dependency information, or download the complete project.'."\n"
.'5. Development integration steps:'."\n"
.'- Select the SDK language you want to use from the [SDK overview](~~145033~~).'."\n"
.'- Find the SDK package for the OCR (ocr) category in the corresponding SDK documentation and install it.'."\n"
.'- Modify the sample code provided in the References as needed and invoke the operation.'."\n"
."\n"
.'6. Direct client calls: Common client call methods for this feature include the following.'."\n"
.'- [Direct call from web frontend](~~467779~~)'."\n"
.'- [Direct call from mini programs](~~467780~~)'."\n"
.'- [Direct call from Android](~~467781~~)'."\n"
.'- [Direct call from iOS](~~467782~~).'."\n"
."\n"
.'## Input limits'."\n"
.'- Image format: JPEG, JPG, PNG, BMP, or GIF.'."\n"
.'- Image size: up to 3 MB.'."\n"
.'- Image resolution: No resolution limit is imposed. However, excessively high resolutions may cause the API to time out. The timeout period is 5 seconds.'."\n"
.'- The URL cannot contain Chinese characters.'."\n"
."\n"
.'## Billing description'."\n"
.'For information about the billable methods and pricing of bank card recognition, see [Billing overview](~~202631~~).'."\n"
."\n"
.'> The debugging operation below is a paid operation. For a free trial, go to the [Experience Center](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeBankCard).',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '## SDK reference'."\n"
.'For the bank card recognition feature under the Alibaba Cloud Vision AI OCR category, we recommend that you use the SDK. The SDK supports multiple programming languages. When calling this operation, select the SDK package for the OCR (ocr) category. File parameters can be passed as local files or arbitrary URLs through the SDK. For more information, see [SDK overview](~~145033~~).',
'extraInfo' => '## Error codes'."\n"
.'For error codes of bank card recognition, see [Common error codes](~~146772~~).'."\n"
."\n"
.'## Security notice'."\n"
.'- Make sure that the uploaded images or files comply with applicable laws and regulations.'."\n"
.'- Temporary files uploaded through the debugging experience are valid for 1 hour and are automatically deleted by the system after 24 hours.',
'changeSet' => [
['createdAt' => '2023-12-19T09:06:31.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeBankCard'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeBankCard',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'RecognizeBusinessLicense' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'ImageURL',
'in' => 'formData',
'schema' => ['description' => 'The URL of the image. We recommend that you use an Object Storage Service (OSS) link in the Shanghai region. If the file is stored locally or in an OSS bucket outside the Shanghai region, see [File URL processing](~~155645~~).', 'type' => 'string', 'required' => true, 'isFileTransferUrl' => true, 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeBusinessLicense/RecognizeBusinessLicense1.jpg', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'F34D031B-02BD-4A59-BA35-EE068DD6F6E6', 'title' => ''],
'Data' => [
'description' => 'The returned result data.',
'type' => 'object',
'properties' => [
'Type' => ['description' => 'The company type. `FailInRecognition` is returned if recognition fails.', 'type' => 'string', 'example' => '有限责任公司', 'title' => ''],
'Stamp' => [
'description' => 'The stamp position. `FailInDetection` is returned if detection fails.',
'type' => 'object',
'properties' => [
'Top' => ['description' => 'The y-coordinate of the upper-left corner of the region.', 'type' => 'integer', 'format' => 'int32', 'example' => '1030', 'title' => ''],
'Width' => ['description' => 'The width of the region.', 'type' => 'integer', 'format' => 'int32', 'example' => '154', 'title' => ''],
'Height' => ['description' => 'The height of the region.', 'type' => 'integer', 'format' => 'int32', 'example' => '154', 'title' => ''],
'Left' => ['description' => 'The x-coordinate of the upper-left corner of the region.', 'type' => 'integer', 'format' => 'int32', 'example' => '650', 'title' => ''],
],
'title' => '',
'example' => '',
],
'EstablishDate' => ['description' => 'The company registration date. For example, if the certificate shows "2014年04月16日", the API returns "20140416".', 'type' => 'string', 'example' => '20150504', 'title' => ''],
'ValidPeriod' => ['description' => 'The end date of the business license validity period. For example, if the certificate shows "2014年04月16日至2034年04月15日", the API returns "20340415".'."\n"
."\n"
.'> The current algorithm outputs dates in the "YYYYMMDD" format (for example, "20391130") and uses "29991231" to represent "long-term".', 'type' => 'string', 'example' => '29991231', 'title' => ''],
'Business' => ['description' => 'The business scope. `FailInRecognition` is returned if recognition fails.', 'type' => 'string', 'example' => '网络技术服务;网站建设;销售:I类医疗器械、保健用品(不含保健食品)等', 'title' => ''],
'Angle' => ['description' => 'The angle of the input image (clockwise rotation). Valid values: 0, 90, 180, and 270.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''],
'RegisterNumber' => ['description' => 'The unified social credit code. `FailInRecognition` is returned if recognition fails.', 'type' => 'string', 'example' => '91500108320423****', 'title' => ''],
'Address' => ['description' => 'The company address. `FailInRecognition` is returned if recognition fails.', 'type' => 'string', 'example' => '浙江省杭州市西湖区转塘科技经济区块888号888幢', 'title' => ''],
'Capital' => ['description' => 'The registered capital. `FailInRecognition` is returned if recognition fails.', 'type' => 'string', 'example' => '壹百万元整', 'title' => ''],
'Title' => [
'description' => 'The title position. `FailInDetection` is returned if detection fails.',
'type' => 'object',
'properties' => [
'Top' => ['description' => 'The y-coordinate of the upper-left corner of the region.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''],
'Width' => ['description' => 'The width of the region.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''],
'Height' => ['description' => 'The height of the region.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''],
'Left' => ['description' => 'The x-coordinate of the upper-left corner of the region.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Emblem' => [
'description' => 'The national emblem position. `FailInDetection` is returned if detection fails.',
'type' => 'object',
'properties' => [
'Top' => ['description' => 'The y-coordinate of the upper-left corner of the region.', 'type' => 'integer', 'format' => 'int32', 'example' => '8', 'title' => ''],
'Width' => ['description' => 'The width of the region.', 'type' => 'integer', 'format' => 'int32', 'example' => '162', 'title' => ''],
'Height' => ['description' => 'The height of the region.', 'type' => 'integer', 'format' => 'int32', 'example' => '163', 'title' => ''],
'Left' => ['description' => 'The x-coordinate of the upper-left corner of the region.', 'type' => 'integer', 'format' => 'int32', 'example' => '366', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Name' => ['description' => 'The company name. `FailInRecognition` is returned if recognition fails.', 'type' => 'string', 'example' => '某某电子商务有限公司', 'title' => ''],
'QRCode' => [
'description' => 'The QR code position. `FailInDetection` is returned if detection fails.',
'type' => 'object',
'properties' => [
'Top' => ['description' => 'The y-coordinate of the upper-left corner of the region.', 'type' => 'integer', 'format' => 'int32', 'example' => '914', 'title' => ''],
'Width' => ['description' => 'The width of the region.', 'type' => 'integer', 'format' => 'int32', 'example' => '126', 'title' => ''],
'Height' => ['description' => 'The height of the region.', 'type' => 'integer', 'format' => 'int32', 'example' => '132', 'title' => ''],
'Left' => ['description' => 'The x-coordinate of the upper-left corner of the region.', 'type' => 'integer', 'format' => 'int32', 'example' => '156', 'title' => ''],
],
'title' => '',
'example' => '',
],
'LegalPerson' => ['description' => 'The legal representative. `FailInRecognition` is returned if recognition fails.', 'type' => 'string', 'example' => '李四', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => 'The parameter is invalid. Please check again.'],
],
403 => [
['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => 'An error occurred while performing authorization. Please check your RAM configuration.'],
],
408 => [
['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F34D031B-02BD-4A59-BA35-EE068DD6F6E6\\",\\n \\"Data\\": {\\n \\"Type\\": \\"有限责任公司\\",\\n \\"Stamp\\": {\\n \\"Top\\": 1030,\\n \\"Width\\": 154,\\n \\"Height\\": 154,\\n \\"Left\\": 650\\n },\\n \\"EstablishDate\\": \\"20150504\\",\\n \\"ValidPeriod\\": \\"29991231\\",\\n \\"Business\\": \\"网络技术服务;网站建设;销售:I类医疗器械、保健用品(不含保健食品)等\\",\\n \\"Angle\\": 0,\\n \\"RegisterNumber\\": \\"91500108320423****\\",\\n \\"Address\\": \\"浙江省杭州市西湖区转塘科技经济区块888号888幢\\",\\n \\"Capital\\": \\"壹百万元整\\",\\n \\"Title\\": {\\n \\"Top\\": 10,\\n \\"Width\\": 10,\\n \\"Height\\": 10,\\n \\"Left\\": 10\\n },\\n \\"Emblem\\": {\\n \\"Top\\": 8,\\n \\"Width\\": 162,\\n \\"Height\\": 163,\\n \\"Left\\": 366\\n },\\n \\"Name\\": \\"某某电子商务有限公司\\",\\n \\"QRCode\\": {\\n \\"Top\\": 914,\\n \\"Width\\": 126,\\n \\"Height\\": 132,\\n \\"Left\\": 156\\n },\\n \\"LegalPerson\\": \\"李四\\"\\n }\\n}","type":"json"}]',
'title' => 'Business license recognition',
'summary' => 'This topic describes the syntax and examples of the business license recognition feature (RecognizeBusinessLicense).',
'description' => '## Feature description'."\n"
.'The business license recognition feature identifies key fields on a business license, including: company address, business scope, registered capital, registration date, legal representative, company name, unified social credit code, company type, and business license validity period. It can also detect the positions of QR codes and stamps on the business license.'."\n"
."\n"
.'> - You can go to [Online Consultation](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2) for online assistance.'."\n"
.'- You can try this feature for free on the Visual Intelligence Open Platform. Click [Try Now](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeBusinessLicense) to experience the feature or purchase it online.'."\n"
.'- For questions about API integration, usage, or consultation regarding the Alibaba Cloud Visual Intelligence Open Platform, join the DingTalk group (23109592) to contact us.'."\n"
."\n"
.'## Integration guide'."\n"
.'1. Register an Alibaba Cloud account: Go to the [Alibaba Cloud official website](https://www.aliyun.com), click **Register Now** in the upper-right corner, and follow the instructions to complete registration.'."\n"
.'2. Activate the service: Make sure you have activated the [OCR service](https://vision.aliyun.com/ocr). If you have not activated the service, [activate it now](https://common-buy.aliyun.com/?commodityCode=viapi_ocr_public_cn#/open).'."\n"
.'3. Create an AccessKey: Make sure you have [created an AccessKey](~~175144~~). If you are using a RAM user AccessKey, grant the AliyunVIAPIFullAccess permission to the RAM user. For more information, see [RAM authorization](~~145025~~).'."\n"
.'4. Online debugging (optional): You can use [OpenAPI Explorer](https://next.api.aliyun.com/api/ocr/2019-12-30/RecognizeBusinessLicense?lang=JAVA&sdkStyle=dara¶ms=%7B%22ImageURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Focr%2FRecognizeBusinessLicense%2FRecognizeBusinessLicense1.jpg%22%7D&tab=DEMO) to debug the feature online, view complete sample code and SDK dependency information, or download the complete project.'."\n"
.'5. Development integration steps:'."\n"
.'- Select the SDK language you want to use from the [SDK overview](~~145033~~).'."\n"
.'- Find the SDK package for the OCR (ocr) category in the corresponding SDK documentation and install it.'."\n"
.'- Modify the sample code provided in the references as needed and invoke the API.'."\n"
."\n"
.'6. Sample code: For sample code in commonly used languages, see [Business license recognition sample code](~~600232~~).'."\n"
."\n"
.'7. Direct client calls: Common client call methods for this feature include the following.'."\n"
.'- [Direct call from web frontend](~~467779~~)'."\n"
.'- [Direct call from mini programs](~~467780~~)'."\n"
.'- [Direct call from Android](~~467781~~)'."\n"
.'- [Direct call from iOS](~~467782~~).'."\n"
."\n"
.'## Input limits'."\n"
.'- Image format: JPEG, JPG, PNG, BMP, or GIF.'."\n"
.'- Image size: up to 3 MB.'."\n"
.'- Image resolution: No resolution limit. However, excessively high resolution may cause the API to time out. The timeout period is 5 seconds.'."\n"
.'- Request format: JPEG, JPG, PNG, BMP, or GIF.'."\n"
."\n"
.'## Billing description'."\n"
.'For information about the billable methods and pricing of business license recognition, see [Billing overview](~~202631~~).'."\n"
."\n"
.'> The API debugging interface below is a paid interface. For a free trial, go to the [Experience Center](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeBusinessLicense).',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '## SDK reference'."\n"
.'For the business license recognition feature under the Alibaba Cloud Visual AI OCR category, we recommend that you use the SDK. The SDK supports multiple programming languages. When calling the SDK, select the SDK package for the OCR (ocr) category. File parameters support local files and arbitrary URLs through SDK calls. For more information, see [SDK overview](~~145033~~).'."\n"
."\n"
.'## Sample code'."\n"
.'For sample code in commonly used languages, see [Business license recognition sample code](~~600232~~).',
'extraInfo' => '## Error codes'."\n"
.'For error codes of business license recognition, see [Common error codes](~~146772~~).'."\n"
."\n"
.'## Security notice'."\n"
.'- Make sure that the uploaded images or files comply with applicable laws and regulations.'."\n"
.'- Temporary files uploaded through the debugging interface are valid for 1 hour and are automatically deleted by the system after 24 hours.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeBusinessLicense'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeBusinessLicense',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'RecognizeCharacter' => [
'summary' => 'This topic describes the syntax and examples of the RecognizeCharacter operation for general text recognition.',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'],
'parameters' => [
[
'name' => 'ImageURL',
'in' => 'formData',
'schema' => ['description' => 'The URL of the image. We recommend that you use an Object Storage Service (OSS) link in the Shanghai region. If the file is stored locally or the OSS link is not in the Shanghai region, see [File URL processing](~~155645~~).', 'type' => 'string', 'required' => true, 'isFileTransferUrl' => true, 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeCharacter/RecognizeCharacter5.jpg', 'title' => ''],
],
[
'name' => 'MinHeight',
'in' => 'formData',
'schema' => ['description' => 'The minimum height of text in the image, in pixels.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'minimum' => '5', 'example' => '10', 'title' => ''],
],
[
'name' => 'OutputProbability',
'in' => 'formData',
'schema' => ['description' => 'Specifies whether to output the probability of text boxes. Valid values:'."\n"
."\n"
.'- true: Output the probability of text boxes.'."\n"
.'- false: Do not output the probability of text boxes.', 'type' => 'boolean', 'required' => true, 'example' => 'true', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '1',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '7A9BC7FE-2D42-57AF-93BC-09A229DD2F1D', 'title' => ''],
'Data' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'Results' => [
'description' => 'The recognition results.',
'type' => 'array',
'items' => [
'description' => '1',
'type' => 'object',
'properties' => [
'TextRectangles' => [
'description' => 'The position of the text box region.',
'type' => 'object',
'properties' => [
'Top' => ['description' => 'The y-coordinate of the upper-left corner of the text region.'."\n"
.'> Do not use this field to calculate the text region. For text region coordinate information, refer to the Pos field.', 'type' => 'integer', 'format' => 'int32', 'example' => '150', 'title' => ''],
'Width' => ['description' => 'The width of the text region.', 'type' => 'integer', 'format' => 'int32', 'example' => '77', 'title' => ''],
'Height' => ['description' => 'The height of the text region.', 'type' => 'integer', 'format' => 'int32', 'example' => '409', 'title' => ''],
'Angle' => ['description' => 'The angle of the text region. The angle range is `[-180, 180]`.'."\n"
."\n"
.'> The center of the text region is used as the rotation point. Clockwise rotation is positive, and counterclockwise rotation is negative.', 'type' => 'integer', 'format' => 'int32', 'example' => '-65', 'title' => ''],
'Left' => ['description' => 'The x-coordinate of the upper-left corner of the text region.'."\n"
.'> Do not use this field to calculate the text region. For text region coordinate information, refer to the Pos field.', 'type' => 'integer', 'format' => 'int32', 'example' => '511', 'title' => ''],
'Pos' => [
'description' => 'The coordinates of the four vertices of the bounding rectangle of the text region, arranged clockwise (upper-left, upper-right, lower-right, lower-left).',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'x' => ['description' => 'The x-coordinate of the text region.', 'type' => 'integer', 'format' => 'int32', 'example' => '434', 'title' => ''],
'y' => ['description' => 'The y-coordinate of the text region.', 'type' => 'integer', 'format' => 'int32', 'example' => '70', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'Text' => ['description' => 'The text content.', 'type' => 'string', 'example' => '祝你生日快乐', 'title' => ''],
'Probability' => ['description' => 'The probability of the text content. Valid values: 0 to 1.', 'type' => 'number', 'format' => 'float', 'example' => '0.99', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => 'The parameter is invalid. Please check again.'],
],
403 => [
['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => 'An error occurred while performing authorization. Please check your RAM configuration.'],
],
408 => [
['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7A9BC7FE-2D42-57AF-93BC-09A229DD2F1D\\",\\n \\"Data\\": {\\n \\"Results\\": [\\n {\\n \\"TextRectangles\\": {\\n \\"Top\\": 150,\\n \\"Width\\": 77,\\n \\"Height\\": 409,\\n \\"Angle\\": -65,\\n \\"Left\\": 511,\\n \\"Pos\\": [\\n {\\n \\"x\\": 434,\\n \\"y\\": 70\\n }\\n ]\\n },\\n \\"Text\\": \\"祝你生日快乐\\",\\n \\"Probability\\": 0.99\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => 'General text recognition',
'description' => '## Feature description'."\n"
.'The general text recognition feature recognizes text content and text region coordinates in images. This feature is applicable to text recognition in various scenarios.'."\n"
."\n"
.'> - You can go to [Online Consultation](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2) for online assistance.'."\n"
.'- You can try this feature for free on the Vision Intelligence Open Platform. Click [Try Now](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeCharacter) to try this feature or purchase it online.'."\n"
.'- To learn more about how to use visual AI APIs on the Alibaba Cloud Vision Intelligence Open Platform, join the DingTalk group (23109592) to contact us.'."\n"
."\n"
.'## Integration guide'."\n"
.'1. Register an Alibaba Cloud account: Go to the [Alibaba Cloud official website](https://www.aliyun.com), click **Sign Up** in the upper-right corner, and follow the instructions to complete the registration.'."\n"
.'2. Activate the service: Make sure that you have activated the [OCR service](https://vision.aliyun.com/ocr). If you have not activated the service, [activate it now](https://common-buy.aliyun.com/?commodityCode=viapi_ocr_public_cn#/open).'."\n"
.'3. Create an AccessKey pair: Make sure that you have [created an AccessKey pair](~~175144~~). If you are using an AccessKey pair of a RAM user, grant the AliyunVIAPIFullAccess permission to the RAM user. For more information, see [RAM authorization](~~145025~~).'."\n"
.'4. Online debugging (optional): You can use [OpenAPI Explorer](https://next.api.aliyun.com/api/ocr/2019-12-30/RecognizeCharacter?lang=JAVA&sdkStyle=dara¶ms=%7B%22ImageURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Focr%2FRecognizeCharacter%2FRecognizeCharacter1.jpg%22%2C%22MinHeight%22%3A10%2C%22OutputProbability%22%3Atrue%7D&tab=DEMO) to debug this feature online, view complete sample code and SDK dependency information, or download the complete project.'."\n"
.'5. Development integration steps:'."\n"
.'- Select the SDK language that you want to use from the [SDK overview](~~145033~~).'."\n"
.'- Find the SDK package for the OCR (ocr) category in the corresponding SDK documentation and install it.'."\n"
.'- Modify the sample code provided in the References as needed and invoke the operation.'."\n"
."\n"
.'6. Sample code: For sample code in commonly used languages, see [General text recognition sample code](~~480535~~).'."\n"
."\n"
.'7. Direct client calls: The following common client call methods are supported.'."\n"
.'- [Direct call from web frontend](~~467779~~)'."\n"
.'- [Direct call from mini programs](~~467780~~)'."\n"
.'- [Direct call from Android](~~467781~~)'."\n"
.'- [Direct call from iOS](~~467782~~).'."\n"
."\n"
.'## Input limits'."\n"
.'- Image format: JPEG, JPG, PNG, BMP, or GIF.'."\n"
.'- Image size: up to 3 MB.'."\n"
.'- Image resolution: greater than 15 × 15 pixels and less than 4096 × 4096 pixels.'."\n"
.'- The URL cannot contain Chinese characters.'."\n"
."\n"
.'## Billing description'."\n"
.'For information about the billable methods and pricing of general text recognition, see [Billing overview](~~202631~~).'."\n"
."\n"
.'> The debugging operation below is a paid operation. To try it for free, go to the [Experience Center](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeCharacter).',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '## SDK reference'."\n"
.'For the general text recognition feature under the Alibaba Cloud Vision AI OCR category, we recommend that you use the SDK. The SDK supports multiple programming languages. When calling the SDK, select the SDK package for the OCR (ocr) category. File parameters support local files and arbitrary URLs through the SDK. For more information, see [SDK overview](~~145033~~).'."\n"
."\n"
.'## Sample code'."\n"
.'For sample code in commonly used languages, see [General text recognition sample code](~~480535~~).',
'extraInfo' => '## Error codes'."\n"
.'For error codes of general text recognition, see [Common error codes](~~146772~~).'."\n"
."\n"
.'## Security notice'."\n"
.'- Make sure that the uploaded images or files comply with applicable laws and regulations.'."\n"
.'- Temporary files uploaded through the debugging experience are valid for 1 hour and are automatically deleted by the system after 24 hours.',
'changeSet' => [
['createdAt' => '2025-12-22T05:58:48.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '200', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeCharacter'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeCharacter',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'RecognizeDriverLicense' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'ImageURL',
'in' => 'formData',
'schema' => ['description' => 'The URL of the image. We recommend that you use an Object Storage Service (OSS) link in the Shanghai region. If the file is stored locally or the OSS link is not in the Shanghai region, see [File URL processing](~~155645~~).', 'type' => 'string', 'required' => true, 'isFileTransferUrl' => true, 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeDriverLicense/jsz2.jpg', 'title' => ''],
],
[
'name' => 'Side',
'in' => 'formData',
'schema' => [
'description' => 'Specifies whether the uploaded photo is the main page or the supplementary page of the driver\'s license.'."\n"
."\n"
.'- face: main page'."\n"
."\n"
.'- back: supplementary page.',
'type' => 'string',
'required' => false,
'enum' => ['face', 'back'],
'example' => 'face',
'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '1',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '374D8C7E-9ECC-4750-A87F-50571702F175', 'title' => ''],
'Data' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'BackResult' => [
'description' => 'The recognition result of the supplementary page of the driver\'s license.',
'type' => 'object',
'properties' => [
'ArchiveNumber' => ['description' => 'The archive number.', 'type' => 'string', 'example' => '130601473955', 'title' => ''],
'Name' => ['description' => 'The name.', 'type' => 'string', 'example' => '张三', 'title' => ''],
'CardNumber' => ['description' => 'The card number.', 'type' => 'string', 'example' => '210288898898898888', 'title' => ''],
'Record' => ['description' => 'The record.', 'type' => 'string', 'example' => '实习期至2019年05月06日。', 'title' => ''],
],
'title' => '',
'example' => '',
],
'FaceResult' => [
'description' => 'The recognition result of the main page of the driver\'s license.',
'type' => 'object',
'properties' => [
'VehicleType' => ['description' => 'The permitted vehicle type on the driver\'s license.', 'type' => 'string', 'example' => 'C1', 'title' => ''],
'IssueDate' => ['description' => 'The initial issue date. Format: YYYYMMDD. Example: 19800101, which indicates January 01, 1980.', 'type' => 'string', 'example' => '20130208', 'title' => ''],
'EndDate' => ['description' => 'The validity period duration or expiration date of the driver\'s license. The value depends on the data format of the driver\'s license. Format: YYYYMMDD. Example: 19800101, which indicates January 01, 1980.', 'type' => 'string', 'example' => '20190201', 'title' => ''],
'Gender' => ['description' => 'The gender.', 'type' => 'string', 'example' => '男', 'title' => ''],
'Address' => ['description' => 'The address.', 'type' => 'string', 'example' => '江苏省徐州市铜山区棠张镇田河村1队129号', 'title' => ''],
'StartDate' => ['description' => 'The start date of the validity period of the driver\'s license. Format: YYYYMMDD. Example: 19800101, which indicates January 01, 1980.', 'type' => 'string', 'example' => '20130208', 'title' => ''],
'LicenseNumber' => ['description' => 'The card number.', 'type' => 'string', 'example' => '210288898898898888', 'title' => ''],
'Name' => ['description' => 'The name.', 'type' => 'string', 'example' => '张三', 'title' => ''],
'IssueUnit' => ['description' => 'The issuing authority.', 'type' => 'string', 'example' => '江苏省徐州市公安局交通巡逻警察支队', 'title' => ''],
'Nationality' => ['description' => 'The nationality.', 'type' => 'string', 'example' => '中国', 'title' => ''],
'BirthDate' => ['description' => 'The date of birth.', 'type' => 'string', 'example' => '1992-05-20', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => 'The parameter is invalid. Please check again.'],
],
403 => [
['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => 'An error occurred while performing authorization. Please check your RAM configuration.'],
],
408 => [
['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"374D8C7E-9ECC-4750-A87F-50571702F175\\",\\n \\"Data\\": {\\n \\"BackResult\\": {\\n \\"ArchiveNumber\\": \\"130601473955\\",\\n \\"Name\\": \\"张三\\",\\n \\"CardNumber\\": \\"210288898898898888\\",\\n \\"Record\\": \\"实习期至2019年05月06日。\\"\\n },\\n \\"FaceResult\\": {\\n \\"VehicleType\\": \\"C1\\",\\n \\"IssueDate\\": \\"20130208\\",\\n \\"EndDate\\": \\"20190201\\",\\n \\"Gender\\": \\"男\\",\\n \\"Address\\": \\"江苏省徐州市铜山区棠张镇田河村1队129号\\",\\n \\"StartDate\\": \\"20130208\\",\\n \\"LicenseNumber\\": \\"210288898898898888\\",\\n \\"Name\\": \\"张三\\",\\n \\"IssueUnit\\": \\"江苏省徐州市公安局交通巡逻警察支队\\",\\n \\"Nationality\\": \\"中国\\",\\n \\"BirthDate\\": \\"1992-05-20\\"\\n }\\n }\\n}","type":"json"}]',
'title' => 'Driver\'s license recognition',
'summary' => 'This topic describes the syntax and examples of the RecognizeDriverLicense operation for driver\'s license recognition.',
'description' => '## Feature description'."\n"
.'The driver\'s license recognition feature identifies key fields on both the main page and the supplementary page of a driver\'s license, including archive number, name, validity period duration, gender, issue date, driver\'s license number, permitted vehicle type, validity period start date, and address — a total of 9 key fields.'."\n"
."\n"
.'> - You can visit [Online Consultation](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2) for online assistance.'."\n"
.'- You can try this feature for free on the Vision Intelligence Open Platform. Click [Try Now](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeDriverLicense) to experience this feature or purchase it online.'."\n"
.'- For questions about API integration or usage of Alibaba Cloud Vision Intelligence Open Platform, join the DingTalk group (23109592) to contact us.'."\n"
."\n"
.'## Integration guide'."\n"
.'1. Register an Alibaba Cloud account: Go to the [Alibaba Cloud official website](https://www.aliyun.com), click **Register Now** in the upper-right corner, and follow the instructions to complete registration.'."\n"
.'2. Activate the service: Make sure you have activated the [OCR service](https://vision.aliyun.com/ocr). If you have not activated the service, [activate it now](https://common-buy.aliyun.com/?commodityCode=viapi_ocr_public_cn#/open).'."\n"
.'3. Create an AccessKey: Make sure you have [created an AccessKey](~~175144~~). If you are using a RAM user AccessKey, grant the AliyunVIAPIFullAccess permission to the RAM user. For more information, see [RAM authorization](~~145025~~).'."\n"
.'4. Online debugging (optional): You can use [OpenAPI Explorer](https://next.api.aliyun.com/api/ocr/2019-12-30/RecognizeDriverLicense?lang=JAVA&sdkStyle=dara¶ms=%7B%22ImageURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Focr%2FRecognizeDriverLicense%2Fjsz1.jpg%22%2C%22Side%22%3A%22face%22%7D&tab=DEMO) to debug this feature online, view complete sample code and SDK dependency information, or download the complete project.'."\n"
.'5. Development integration steps:'."\n"
.'- Select the SDK language you want to use from the [SDK overview](~~145033~~).'."\n"
.'- Find the SDK package for the OCR (ocr) category in the corresponding SDK documentation and install it.'."\n"
.'- Modify the sample code provided in the References as needed and invoke the operation.'."\n"
."\n"
.'6. Sample code: For sample code in commonly used languages, see [Driver\'s license recognition sample code](~~480750~~).'."\n"
."\n"
.'7. Direct client calls: Common client call methods for this feature include the following.'."\n"
.'- [Direct call from web frontend](~~467779~~)'."\n"
.'- [Direct call from mini programs](~~467780~~)'."\n"
.'- [Direct call from Android](~~467781~~)'."\n"
.'- [Direct call from iOS](~~467782~~).'."\n"
."\n"
.'## Input limits'."\n"
.'- Image format: JPEG, JPG, PNG, BMP, or GIF.'."\n"
.'- Image size: up to 4 MB.'."\n"
.'- Image resolution: greater than 15 × 15 pixels and less than 4096 × 4096 pixels.'."\n"
.'- The URL cannot contain Chinese characters.'."\n"
."\n"
.'## Billing description'."\n"
.'For the billable methods and pricing of driver\'s license recognition, see [Billing overview](~~202631~~).'."\n"
."\n"
.'> The debugging operation below is a paid operation. For a free trial, go to the [Experience Center](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeDriverLicense).',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '## SDK reference'."\n"
.'For the driver\'s license recognition feature under the Alibaba Cloud Vision AI OCR category, we recommend that you use the SDK. The SDK supports multiple programming languages. When calling the operation, select the SDK package for the OCR (ocr) category. File parameters can be passed as local files or arbitrary URLs through the SDK. For more information, see [SDK overview](~~145033~~).'."\n"
."\n"
.'## Sample code'."\n"
.'For sample code in commonly used languages, see [Driver\'s license recognition sample code](~~480750~~).',
'extraInfo' => '## Error codes'."\n"
.'For error codes of driver\'s license recognition, see [Common error codes](~~146772~~).'."\n"
."\n"
.'## Security notice'."\n"
.'- Make sure that the uploaded images or files comply with applicable laws and regulations.'."\n"
.'- Temporary files uploaded through the debugging experience are valid for 1 hour and are automatically deleted by the system after 24 hours.',
'changeSet' => [
['createdAt' => '2023-12-19T06:02:22.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2023-12-06T02:12:37.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2021-05-10T07:33:03.000Z', 'description' => 'OpenAPI offline'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeDriverLicense'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeDriverLicense',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'RecognizeDrivingLicense' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'ImageURL',
'in' => 'formData',
'schema' => ['description' => 'The URL of the image. We recommend that you use an Object Storage Service (OSS) link in the Shanghai region. If the file is stored locally or in an OSS bucket outside the Shanghai region, see [File URL processing](~~155645~~).', 'type' => 'string', 'required' => true, 'isFileTransferUrl' => true, 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeDrivingLicense/xsz2.jpg', 'title' => ''],
],
[
'name' => 'Side',
'in' => 'formData',
'schema' => [
'description' => 'Specifies whether the uploaded photo is the main page or the supplementary page of the vehicle license.'."\n"
."\n"
.'- face: main page'."\n"
."\n"
.'- back: supplementary page.',
'type' => 'string',
'required' => false,
'enum' => ['face', 'back'],
'example' => 'face',
'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '1DD989C1-4E08-4E04-9D5D-314901E91226', 'title' => ''],
'Data' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'BackResult' => [
'description' => 'The recognition result of the supplementary page of the vehicle license.',
'type' => 'object',
'properties' => [
'OverallDimension' => ['description' => 'The overall dimensions.', 'type' => 'string', 'example' => '4945x1845x1480', 'title' => ''],
'InspectionRecord' => ['description' => 'The inspection record.', 'type' => 'string', 'example' => '检验有效期至2014年09月云A(01)', 'title' => ''],
'UnladenMass' => ['description' => 'The unladen mass.', 'type' => 'string', 'example' => '2000', 'title' => ''],
'FileNumber' => ['description' => 'The file number.', 'type' => 'string', 'example' => '苏F123E9', 'title' => ''],
'TractionMass' => ['description' => 'The approved traction mass.', 'type' => 'string', 'example' => '100', 'title' => ''],
'GrossMass' => ['description' => 'The gross mass.', 'type' => 'string', 'example' => '2205', 'title' => ''],
'PlateNumber' => ['description' => 'The plate number.', 'type' => 'string', 'example' => '苏F123E9', 'title' => ''],
'ApprovedPassengerCapacity' => ['description' => 'The approved passenger capacity.', 'type' => 'string', 'example' => '5', 'title' => ''],
'EnergyType' => ['description' => 'The energy type.', 'type' => 'string', 'example' => '-', 'title' => ''],
'ApprovedLoad' => ['description' => 'The approved load capacity.', 'type' => 'string', 'example' => '300', 'title' => ''],
],
'title' => '',
'example' => '',
],
'FaceResult' => [
'description' => 'The recognition result of the main page of the vehicle license.',
'type' => 'object',
'properties' => [
'IssueDate' => ['description' => 'The issue date in the format of YYYYMMDD. For example, 19800101 indicates January 01, 1980.', 'type' => 'string', 'example' => '20180313', 'title' => ''],
'Model' => ['description' => 'The brand and model.', 'type' => 'string', 'example' => '大众汽车牌SVW6666DFD', 'title' => ''],
'VehicleType' => ['description' => 'The vehicle type.', 'type' => 'string', 'example' => '小型普通客车', 'title' => ''],
'Owner' => ['description' => 'The owner name.', 'type' => 'string', 'example' => '张三', 'title' => ''],
'EngineNumber' => ['description' => 'The engine number.', 'type' => 'string', 'example' => '111111', 'title' => ''],
'PlateNumber' => ['description' => 'The plate number.', 'type' => 'string', 'example' => '苏F123E9', 'title' => ''],
'Address' => ['description' => 'The address.', 'type' => 'string', 'example' => '中牟县三刘寨村', 'title' => ''],
'UseCharacter' => ['description' => 'The use character.', 'type' => 'string', 'example' => '非营运', 'title' => ''],
'Vin' => ['description' => 'The vehicle identification number (VIN).', 'type' => 'string', 'example' => 'SSVUDDTT2J2022555', 'title' => ''],
'RegisterDate' => ['description' => 'The registration date in the format of YYYYMMDD. For example, 19800101 indicates January 01, 1980.', 'type' => 'string', 'example' => '20180312', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => 'The parameter is invalid. Please check again.'],
],
403 => [
['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => 'An error occurred while performing authorization. Please check your RAM configuration.'],
],
408 => [
['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1DD989C1-4E08-4E04-9D5D-314901E91226\\",\\n \\"Data\\": {\\n \\"BackResult\\": {\\n \\"OverallDimension\\": \\"4945x1845x1480\\",\\n \\"InspectionRecord\\": \\"检验有效期至2014年09月云A(01)\\",\\n \\"UnladenMass\\": \\"2000\\",\\n \\"FileNumber\\": \\"苏F123E9\\",\\n \\"TractionMass\\": \\"100\\",\\n \\"GrossMass\\": \\"2205\\",\\n \\"PlateNumber\\": \\"苏F123E9\\",\\n \\"ApprovedPassengerCapacity\\": \\"5\\",\\n \\"EnergyType\\": \\"-\\",\\n \\"ApprovedLoad\\": \\"300\\"\\n },\\n \\"FaceResult\\": {\\n \\"IssueDate\\": \\"20180313\\",\\n \\"Model\\": \\"大众汽车牌SVW6666DFD\\",\\n \\"VehicleType\\": \\"小型普通客车\\",\\n \\"Owner\\": \\"张三\\",\\n \\"EngineNumber\\": \\"111111\\",\\n \\"PlateNumber\\": \\"苏F123E9\\",\\n \\"Address\\": \\"中牟县三刘寨村\\",\\n \\"UseCharacter\\": \\"非营运\\",\\n \\"Vin\\": \\"SSVUDDTT2J2022555\\",\\n \\"RegisterDate\\": \\"20180312\\"\\n }\\n }\\n}","type":"json"}]',
'title' => 'Vehicle license recognition',
'summary' => 'This topic describes the syntax and examples of the RecognizeDrivingLicense operation for vehicle license recognition.',
'description' => '## Feature description'."\n"
.'The vehicle license recognition feature identifies key fields on both the main page and the supplementary page of a vehicle license. It outputs 21 key fields, including brand and model, vehicle type, plate number, inspection record, approved load capacity, and approved passenger capacity.'."\n"
."\n"
.'> - You can access [online consultation](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2) for human assistance.'."\n"
.'- You can try this feature for free on the Vision Intelligence Open Platform. Click [Try Now](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeDrivingLicense) to experience this feature or purchase it online.'."\n"
.'- For questions about API integration or usage of visual AI features on the Alibaba Cloud Vision Intelligence Open Platform, join the DingTalk group (23109592) to contact us.'."\n"
."\n"
.'## Integration guide'."\n"
.'1. Register an Alibaba Cloud account: Go to the [Alibaba Cloud official website](https://www.aliyun.com), click **Register Now** in the upper-right corner, and follow the instructions to complete registration.'."\n"
.'2. Activate the service: Make sure you have activated the [OCR service](https://vision.aliyun.com/ocr). If you have not activated the service, [activate it now](https://common-buy.aliyun.com/?commodityCode=viapi_ocr_public_cn#/open).'."\n"
.'3. Create an AccessKey: Make sure you have [created an AccessKey](~~175144~~). If you are using a RAM user AccessKey, grant the AliyunVIAPIFullAccess permission to the RAM user. For more information, see [RAM authorization](~~145025~~).'."\n"
.'4. Online debugging (optional): You can use [OpenAPI Explorer](https://next.api.aliyun.com/api/ocr/2019-12-30/RecognizeDrivingLicense?lang=JAVA&sdkStyle=dara¶ms=%7B%22ImageURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Focr%2FRecognizeDrivingLicense%2Fxsz1.jpg%22%2C%22Side%22%3A%22face%22%7D&tab=DEMO) to debug this feature online, view complete sample code and SDK dependency information, or download the complete project.'."\n"
.'5. Development integration steps:'."\n"
.'- Select the SDK language you want to use from the [SDK overview](~~145033~~).'."\n"
.'- Find and install the SDK package for the OCR (ocr) category in the corresponding SDK documentation.'."\n"
.'- Modify the sample code provided in the References as needed and invoke the operation.'."\n"
."\n"
.'6. Sample code: For sample code in commonly used languages, see [Vehicle license recognition sample code](~~480762~~).'."\n"
."\n"
.'7. Direct client calls: Common client-side calling methods for this feature include the following.'."\n"
.'- [Direct call from web frontend](~~467779~~)'."\n"
.'- [Direct call from mini programs](~~467780~~)'."\n"
.'- [Direct call from Android](~~467781~~)'."\n"
.'- [Direct call from iOS](~~467782~~).'."\n"
."\n"
.'## Input limits'."\n"
.'- Image format: JPEG, JPG, PNG, BMP, or GIF.'."\n"
.'- Image size: up to 3 MB.'."\n"
.'- Image resolution: No resolution limit is imposed. However, excessively high resolution may cause the API to time out. The timeout period is 5 seconds.'."\n"
.'- The URL cannot contain Chinese characters.'."\n"
."\n"
.'## Billing description'."\n"
.'For information about the billable methods and pricing of vehicle license recognition, see [Billing overview](~~202631~~).'."\n"
."\n"
.'> The debugging operation below is a paid operation. For a free trial, go to the [Experience Center](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeDrivingLicense).',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '## SDK reference'."\n"
.'For the vehicle license recognition feature under the Alibaba Cloud Vision AI OCR category, we recommend that you use the SDK. The SDK supports multiple programming languages. When calling the operation, select the SDK package for the OCR (ocr) category. File parameters passed through the SDK support both local files and arbitrary URLs. For more information, see [SDK overview](~~145033~~).'."\n"
."\n"
.'## Sample code'."\n"
.'For sample code in commonly used languages, see [Vehicle license recognition sample code](~~480762~~).',
'extraInfo' => '## Error codes'."\n"
.'For error codes of vehicle license recognition, see [Common error codes](~~146772~~).'."\n"
."\n"
.'## Security notice'."\n"
.'- Make sure that the uploaded images or files comply with applicable laws and regulations.'."\n"
.'- Temporary files uploaded through the debugging experience are valid for 1 hour and are automatically deleted by the system after 24 hours.',
'changeSet' => [
['createdAt' => '2023-12-06T02:12:37.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeDrivingLicense'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeDrivingLicense',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'RecognizeIdentityCard' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'ImageURL',
'in' => 'formData',
'schema' => ['description' => 'The URL of the image. We recommend that you use an OSS URL in the Shanghai region. For local files or OSS URLs in other regions, see [File URL processing](~~155645~~).', 'type' => 'string', 'required' => true, 'isFileTransferUrl' => true, 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeIdentityCard/sfz1.jpg', 'title' => ''],
],
[
'name' => 'Side',
'in' => 'formData',
'schema' => [
'description' => 'The side of the ID card.'."\n"
."\n"
.'- face: the portrait side.'."\n"
."\n"
.'- back: the national emblem side.',
'type' => 'string',
'required' => false,
'enum' => ['face', 'back'],
'example' => 'face',
'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '1',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'A6175A03-624C-1976-908D-C8BE4C547C45', 'title' => ''],
'Data' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'BackResult' => [
'description' => 'The result of the national emblem side.',
'type' => 'object',
'properties' => [
'EndDate' => ['description' => 'The expiration date. Format: YYYYMMDD. Example: 19800101, which indicates January 01, 1980.', 'type' => 'string', 'example' => '19800101', 'title' => ''],
'Issue' => ['description' => 'The issuing authority.', 'type' => 'string', 'example' => '杭州市公安局', 'title' => ''],
'StartDate' => ['description' => 'The validity start date. Format: YYYYMMDD. Example: 19800101, which indicates January 01, 1980.', 'type' => 'string', 'example' => '19970101', 'title' => ''],
],
'title' => '',
'example' => '',
],
'FrontResult' => [
'description' => 'The result of the portrait side.',
'type' => 'object',
'properties' => [
'FaceRectangle' => [
'description' => 'The face position.',
'type' => 'object',
'properties' => [
'Size' => [
'description' => 'The size of the face rectangle.',
'type' => 'object',
'properties' => [
'Width' => ['description' => 'The width.', 'type' => 'number', 'format' => 'float', 'example' => '196', 'title' => ''],
'Height' => ['description' => 'The height.', 'type' => 'number', 'format' => 'float', 'example' => '243', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Angle' => ['description' => 'The clockwise rotation angle of the rectangle. Valid values: -180 to 180.', 'type' => 'number', 'format' => 'float', 'example' => '0', 'title' => ''],
'Center' => [
'description' => 'The center coordinates of the face rectangle.',
'type' => 'object',
'properties' => [
'Y' => ['description' => 'The Y coordinate of the face rectangle center.', 'type' => 'number', 'format' => 'float', 'example' => '225', 'title' => ''],
'X' => ['description' => 'The X coordinate of the face rectangle center.', 'type' => 'number', 'format' => 'float', 'example' => '667', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'BirthDate' => ['description' => 'The date of birth. Format: YYYYMMDD. Example: 19800101, which indicates January 01, 1980.', 'type' => 'string', 'example' => '19880722', 'title' => ''],
'Gender' => ['description' => 'The gender.', 'type' => 'string', 'example' => '男', 'title' => ''],
'Address' => ['description' => 'The address.', 'type' => 'string', 'example' => '江苏省南京市浦口区天天小区1栋11号', 'title' => ''],
'FaceRectVertices' => [
'description' => 'The face position. Represented by four vertices in counterclockwise order: bottom-left, bottom-right, top-right, and top-left.',
'type' => 'array',
'items' => [
'description' => '1',
'type' => 'object',
'properties' => [
'Y' => ['description' => 'The Y coordinate of the face position.', 'type' => 'number', 'format' => 'float', 'example' => '105', 'title' => ''],
'X' => ['description' => 'The X coordinate of the face position.', 'type' => 'number', 'format' => 'float', 'example' => '569', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'CardAreas' => [
'description' => 'The ID card region position. Represented by four vertices in counterclockwise order: top-left, bottom-left, bottom-right, and top-right.',
'type' => 'array',
'items' => [
'description' => '1',
'type' => 'object',
'properties' => [
'Y' => ['description' => 'The Y coordinate of the ID card region.', 'type' => 'number', 'format' => 'float', 'example' => '485', 'title' => ''],
'X' => ['description' => 'The X coordinate of the ID card region.', 'type' => 'number', 'format' => 'float', 'example' => '132', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'Nationality' => ['description' => 'The ethnicity.', 'type' => 'string', 'example' => '汉', 'title' => ''],
'Name' => ['description' => 'The name.', 'type' => 'string', 'example' => '小明', 'title' => ''],
'IDNumber' => ['description' => 'The ID number.', 'type' => 'string', 'example' => '320001198807220000', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => 'The parameter is invalid. Please check again.'],
],
403 => [
['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => 'An error occurred while performing authorization. Please check your RAM configuration.'],
],
408 => [
['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"A6175A03-624C-1976-908D-C8BE4C547C45\\",\\n \\"Data\\": {\\n \\"BackResult\\": {\\n \\"EndDate\\": \\"19800101\\",\\n \\"Issue\\": \\"杭州市公安局\\",\\n \\"StartDate\\": \\"19970101\\"\\n },\\n \\"FrontResult\\": {\\n \\"FaceRectangle\\": {\\n \\"Size\\": {\\n \\"Width\\": 196,\\n \\"Height\\": 243\\n },\\n \\"Angle\\": 0,\\n \\"Center\\": {\\n \\"Y\\": 225,\\n \\"X\\": 667\\n }\\n },\\n \\"BirthDate\\": \\"19880722\\",\\n \\"Gender\\": \\"男\\",\\n \\"Address\\": \\"江苏省南京市浦口区天天小区1栋11号\\",\\n \\"FaceRectVertices\\": [\\n {\\n \\"Y\\": 105,\\n \\"X\\": 569\\n }\\n ],\\n \\"CardAreas\\": [\\n {\\n \\"Y\\": 485,\\n \\"X\\": 132\\n }\\n ],\\n \\"Nationality\\": \\"汉\\",\\n \\"Name\\": \\"小明\\",\\n \\"IDNumber\\": \\"320001198807220000\\"\\n }\\n }\\n}","type":"json"}]',
'title' => 'ID card recognition',
'summary' => 'This topic describes the syntax and examples of the RecognizeIdentityCard operation for ID card recognition.',
'description' => '## Feature description'."\n"
.'ID card recognition identifies key fields on second-generation Chinese ID cards, including name, gender, ethnicity, ID number, date of birth, address, validity start date, and issuing authority. It also outputs the ID card region position and face position.'."\n"
."\n"
.'> - You can access [online consultation](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2) for help.'."\n"
.'- You can try this feature for free on the Visual Intelligence Open Platform. Click [Try Now](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeIdentityCard) to experience and purchase this feature.'."\n"
.'- For questions about API integration and usage of Alibaba Cloud Visual Intelligence Open Platform, join the DingTalk group (23109592) to contact us.'."\n"
.'- Currently, only Chinese mainland resident ID cards are supported. ID cards from Hong Kong (China), Macao (China), and Taiwan (China) are not supported.'."\n"
."\n"
.'## Common scenarios'."\n"
.'Remote registration: Recognizes the content of ID cards that users commit and automatically performs padding of user identity information.'."\n"
."\n"
.'## Advantages'."\n"
.'Complete recognition: Supports recognition of all fields on an ID card.'."\n"
."\n"
.'## Integration guide'."\n"
.'1. Register an Alibaba Cloud account: Go to the [Alibaba Cloud official website](https://www.aliyun.com), click **Register Now** in the upper-right corner, and follow the instructions to complete registration.'."\n"
.'2. Activate the service: Make sure you have activated the [OCR service](https://vision.aliyun.com/ocr). If you have not activated the service, [activate it now](https://common-buy.aliyun.com/?commodityCode=viapi_ocr_public_cn#/open).'."\n"
.'3. Create an AccessKey: Make sure you have [created an AccessKey](~~175144~~). If you are using a RAM user AccessKey, grant the AliyunVIAPIFullAccess permission to the RAM user. For more information, see [RAM authorization](~~145025~~).'."\n"
.'4. Online debugging (optional): You can use [OpenAPI Explorer](https://next.api.aliyun.com/api/ocr/2019-12-30/RecognizeIdentityCard?lang=JAVA&sdkStyle=dara¶ms=%7B%22ImageURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Focr%2FRecognizeIdentityCard%2Fsfzbm1.jpg%22%2C%22Side%22%3A%22back%22%7D&tab=DEMO) to debug this feature online, view complete sample code and SDK dependency information, or download the complete project.'."\n"
.'5. Development and integration steps:'."\n"
.'- Select the SDK language you want to use from the [SDK overview](~~145033~~).'."\n"
.'- Find the SDK package for the OCR (ocr) category in the corresponding SDK documentation and install it.'."\n"
.'- Modify the sample code provided in the References as needed and invoke the operation.'."\n"
."\n"
.'6. Sample code: For sample code in common programming languages, see [ID card recognition sample code](~~600208~~).'."\n"
."\n"
.'7. Direct client calls: Common client call methods for this feature include the following.'."\n"
.'- [Direct call from web frontend](~~467779~~)'."\n"
.'- [Direct call from mini programs](~~467780~~)'."\n"
.'- [Direct call from Android](~~467781~~)'."\n"
.'- [Direct call from iOS](~~467782~~).'."\n"
."\n"
.'## Input limits'."\n"
.'- Image format: JPEG, JPG, PNG, BMP, or GIF.'."\n"
.'- Image size: up to 3 MB.'."\n"
.'- Image resolution: greater than 15 × 15 pixels and less than 4096 × 4096 pixels.'."\n"
.'- The URL cannot contain Chinese characters.'."\n"
."\n"
.'## Billing description'."\n"
.'For the billable methods and pricing of ID card recognition, see [Billing overview](~~202631~~).'."\n"
."\n"
.'> The following debugging operation is a paid operation. For a free trial, go to the [Experience Center](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeIdentityCard).',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '## SDK reference'."\n"
.'For the ID card recognition feature under the Alibaba Cloud Visual AI OCR category, we recommend that you use the SDK. The SDK supports multiple programming languages. Select the SDK package for the OCR (ocr) category. File parameters support local files and arbitrary URLs through the SDK. For more information, see [SDK overview](~~145033~~).'."\n"
."\n"
.'## Sample code'."\n"
.'For sample code in common programming languages, see [ID card recognition sample code](~~600208~~).',
'extraInfo' => '## Error codes'."\n"
.'For error codes of ID card recognition, see [Common error codes](~~146772~~).'."\n"
."\n"
.'## Security notice'."\n"
.'- Make sure that the uploaded images or files comply with applicable laws and regulations.'."\n"
.'- Temporary files uploaded through the debugging experience are valid for 1 hour and are automatically deleted by the system after 24 hours.',
'changeSet' => [
['createdAt' => '2023-12-06T02:12:37.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeIdentityCard'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeIdentityCard',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'RecognizeLicensePlate' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'ImageURL',
'in' => 'formData',
'schema' => ['description' => 'The license plate recognition feature currently supports the Shanghai and Shenzhen regions. If you selected the Shanghai region when activating the service, use OSS links in the Shanghai region. For local files or OSS links in other regions, see [File URL processing](~~155645~~). If you selected the Shenzhen region when activating the service, only OSS links in the Shenzhen region are supported.', 'type' => 'string', 'required' => true, 'isFileTransferUrl' => true, 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeLicensePlate/cpsb1.jpg', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '1',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '3F10DAC3-CF4A-487C-BF33-3B8EB9AA12F2', 'title' => ''],
'Data' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'Plates' => [
'description' => 'The detailed information about the license plates.',
'type' => 'array',
'items' => [
'description' => '1',
'type' => 'object',
'properties' => [
'PlateTypeConfidence' => ['description' => 'The confidence score of the license plate type. Value range: 0 to 1.', 'type' => 'number', 'format' => 'float', 'example' => '1', 'title' => ''],
'PlateType' => ['description' => 'The license plate type, such as small vehicle, new energy vehicle, large vehicle, trailer, training vehicle, police vehicle, military vehicle, embassy vehicle, or Hong Kong/Macau vehicle.', 'type' => 'string', 'example' => '小型汽车', 'title' => ''],
'Confidence' => ['description' => 'The confidence score of the license plate number. Value range: 0 to 1.', 'type' => 'number', 'format' => 'float', 'example' => '0.99745339155197144', 'title' => ''],
'PlateNumber' => ['description' => 'The license plate number.', 'type' => 'string', 'example' => '粤BP57E7', 'title' => ''],
'Roi' => [
'description' => 'The license plate position.',
'type' => 'object',
'properties' => [
'W' => ['description' => 'The width of the license plate.', 'type' => 'integer', 'format' => 'int32', 'example' => '141', 'title' => ''],
'H' => ['description' => 'The height of the license plate.', 'type' => 'integer', 'format' => 'int32', 'example' => '53', 'title' => ''],
'Y' => ['description' => 'The y-coordinate of the upper-left corner of the license plate.', 'type' => 'integer', 'format' => 'int32', 'example' => '256', 'title' => ''],
'X' => ['description' => 'The x-coordinate of the upper-left corner of the license plate.', 'type' => 'integer', 'format' => 'int32', 'example' => '294', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Positions' => [
'description' => 'The position information of the license plate bounding box. The coordinates of the four corners of the bounding rectangle are listed clockwise: upper-left XY, upper-right XY, lower-right XY, and lower-left XY.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'X' => ['description' => 'The x-coordinate of the bounding rectangle.', 'type' => 'integer', 'format' => 'int64', 'example' => '466', 'title' => ''],
'Y' => ['description' => 'The y-coordinate of the bounding rectangle.', 'type' => 'integer', 'format' => 'int64', 'example' => '293', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => 'The parameter is invalid. Please check again.'],
],
403 => [
['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => 'An error occurred while performing authorization. Please check your RAM configuration.'],
],
408 => [
['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"3F10DAC3-CF4A-487C-BF33-3B8EB9AA12F2\\",\\n \\"Data\\": {\\n \\"Plates\\": [\\n {\\n \\"PlateTypeConfidence\\": 1,\\n \\"PlateType\\": \\"小型汽车\\",\\n \\"Confidence\\": 0.9974533915519714,\\n \\"PlateNumber\\": \\"粤BP57E7\\",\\n \\"Roi\\": {\\n \\"W\\": 141,\\n \\"H\\": 53,\\n \\"Y\\": 256,\\n \\"X\\": 294\\n },\\n \\"Positions\\": [\\n {\\n \\"X\\": 466,\\n \\"Y\\": 293\\n }\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => 'License plate recognition',
'summary' => 'This topic describes the syntax and examples of the RecognizeLicensePlate operation for license plate recognition.',
'description' => '## Feature description'."\n"
.'The license plate recognition feature accurately identifies license plate locations in images and returns five key fields: license plate position coordinates, license plate type, license plate number, license plate number confidence, and license plate confidence.'."\n"
."\n"
.'> - You can visit [Online Consultation](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2) for online assistance.'."\n"
.'- You can try this feature for free on the Vision Intelligence Open Platform. Click [Try Now](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeLicensePlate) to experience this feature or purchase it online.'."\n"
.'- For questions about API integration, usage, or consultation regarding the Alibaba Cloud Vision Intelligence Open Platform, join the DingTalk group (23109592) to contact us.'."\n"
."\n"
.'## Integration guide'."\n"
.'1. Register an Alibaba Cloud account: Go to the [Alibaba Cloud official website](https://www.aliyun.com), click **Register Now** in the upper-right corner, and follow the instructions to complete registration.'."\n"
.'2. Activate the service: Make sure you have activated the [OCR service](https://vision.aliyun.com/ocr). If you have not activated the service, [activate it now](https://common-buy.aliyun.com/?commodityCode=viapi_ocr_public_cn#/open).'."\n"
.'3. Create an AccessKey: Make sure you have [created an AccessKey](~~175144~~). If you are using a RAM user AccessKey, grant the AliyunVIAPIFullAccess permission to the RAM user. For more information, see [RAM authorization](~~145025~~).'."\n"
.'4. Online debugging (optional): You can use [OpenAPI Explorer](https://next.api.aliyun.com/api/ocr/2019-12-30/RecognizeLicensePlate?lang=JAVA&sdkStyle=dara¶ms=%7B%22ImageURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Focr%2FRecognizeLicensePlate%2Fcpsb1.jpg%22%7D&tab=DEMO) to debug this feature online, view complete sample code and SDK dependency information, or download the complete project.'."\n"
.'5. Development integration steps:'."\n"
.'- Select the SDK language you want to use from the [SDK overview](~~145033~~).'."\n"
.'- Find the SDK package for the OCR (ocr) category in the corresponding SDK documentation and install it.'."\n"
.'- Modify the sample code provided in the References as needed and invoke the operation.'."\n"
."\n"
.'6. Sample code: For sample code in commonly used languages, see [License plate recognition sample code](~~600145~~).'."\n"
."\n"
.'7. Direct client calls: Common client call methods for this feature include the following.'."\n"
.'- [Direct call from web frontend](~~467779~~)'."\n"
.'- [Direct call from mini programs](~~467780~~)'."\n"
.'- [Direct call from Android](~~467781~~)'."\n"
.'- [Direct call from iOS](~~467782~~).'."\n"
."\n"
.'## Input limits'."\n"
.'- Image format: JPEG, JPG, PNG, BMP, or GIF.'."\n"
.'- Image size: up to 4 MB.'."\n"
.'- Image resolution: greater than 15 × 15 pixels and smaller than 4096 × 4096 pixels.'."\n"
.'- The URL cannot contain Chinese characters.'."\n"
."\n"
.'## Billing description'."\n"
.'For information about the billable methods and pricing of license plate recognition, see [Billing overview](~~202631~~).'."\n"
."\n"
.'> The debugging operation below is a paid operation. For a free trial, go to the [Experience Center](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeLicensePlate).',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '## SDK reference'."\n"
.'For the license plate recognition feature under the Alibaba Cloud Vision AI OCR category, we recommend using the SDK. The SDK supports multiple programming languages. When calling the operation, select the SDK package for the OCR (ocr) category. File parameters support local files and arbitrary URLs through the SDK. For more information, see [SDK overview](~~145033~~).'."\n"
."\n"
.'## Sample code'."\n"
.'For sample code in commonly used languages, see [License plate recognition sample code](~~600145~~).',
'extraInfo' => '## Error codes'."\n"
.'For error codes of license plate recognition, see [Common error codes](~~146772~~).'."\n"
."\n"
.'## Security notice'."\n"
.'- Make sure that the uploaded images or files comply with applicable laws and regulations.'."\n"
.'- Temporary files uploaded through the debugging experience are valid for 1 hour and are automatically deleted by the system after 24 hours.',
'changeSet' => [
['createdAt' => '2022-09-27T09:39:29.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2021-05-10T07:33:03.000Z', 'description' => 'OpenAPI offline'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeLicensePlate'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeLicensePlate',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'RecognizePdf' => [
'summary' => 'This topic describes the syntax and provides examples of the RecognizePdf operation for PDF recognition.',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'FileURL',
'in' => 'formData',
'schema' => ['title' => '', 'description' => 'The URL of the file. We recommend that you use an Object Storage Service (OSS) link in the Shanghai region. If the file is stored locally or the OSS link is in a region other than Shanghai, see [File URL processing](~~155645~~).', 'type' => 'string', 'required' => true, 'isFileTransferUrl' => true, 'example' => 'https://viapi-test.oss-cn-shanghai.aliyuncs.com/ocr/xxxx.pdf'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'CD9A9659-ABEE-4A7D-837F-9FDF40879A97'],
'Data' => [
'description' => 'The returned result data.',
'type' => 'object',
'properties' => [
'Height' => ['description' => 'The height of the document after rotation in the image.', 'type' => 'integer', 'format' => 'int64', 'example' => '788', 'title' => ''],
'Width' => ['description' => 'The width of the document after rotation in the image.', 'type' => 'integer', 'format' => 'int64', 'example' => '1220', 'title' => ''],
'OrgHeight' => ['description' => 'The height of the original image.', 'type' => 'integer', 'format' => 'int64', 'example' => '610', 'title' => ''],
'OrgWidth' => ['description' => 'The width of the original image.', 'type' => 'integer', 'format' => 'int64', 'example' => '394', 'title' => ''],
'PageIndex' => ['description' => 'The page number of the PDF file.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
'Angle' => ['description' => 'The rotation angle of the PDF file.', 'type' => 'integer', 'format' => 'int64', 'example' => '0', 'title' => ''],
'WordsInfo' => [
'description' => 'The text information.',
'type' => 'array',
'items' => [
'description' => '1',
'type' => 'object',
'properties' => [
'Angle' => ['description' => 'The rotation angle of the recognized field.', 'type' => 'integer', 'format' => 'int64', 'example' => '0', 'title' => ''],
'Word' => ['description' => 'The text information.', 'type' => 'string', 'example' => '发票代码:012002000211', 'title' => ''],
'Height' => ['description' => 'The height of the recognized field.', 'type' => 'integer', 'format' => 'int64', 'example' => '16', 'title' => ''],
'Width' => ['description' => 'The width of the recognized field.', 'type' => 'integer', 'format' => 'int64', 'example' => '205', 'title' => ''],
'X' => ['description' => 'The X coordinate of the upper-left corner of the recognized field.', 'type' => 'integer', 'format' => 'int64', 'example' => '863', 'title' => ''],
'Y' => ['description' => 'The Y coordinate of the upper-left corner of the recognized field.', 'type' => 'integer', 'format' => 'int64', 'example' => '46', 'title' => ''],
'Positions' => [
'description' => 'The position of the text information. The coordinates of the four corners of the recognition bounding box are listed clockwise: upper-left XY coordinates, upper-right XY coordinates, lower-right XY coordinates, and lower-left XY coordinates.',
'type' => 'array',
'items' => [
'description' => '1',
'type' => 'object',
'properties' => [
'X' => ['description' => 'The X coordinate of the bounding box.', 'type' => 'integer', 'format' => 'int64', 'example' => '863', 'title' => ''],
'Y' => ['description' => 'The Y coordinate of the bounding box.', 'type' => 'integer', 'format' => 'int64', 'example' => '43', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => 'The parameter is invalid. Please check again.'],
],
403 => [
['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => 'An error occurred while performing authorization. Please check your RAM configuration.'],
],
408 => [
['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"CD9A9659-ABEE-4A7D-837F-9FDF40879A97\\",\\n \\"Data\\": {\\n \\"Height\\": 788,\\n \\"Width\\": 1220,\\n \\"OrgHeight\\": 610,\\n \\"OrgWidth\\": 394,\\n \\"PageIndex\\": 1,\\n \\"Angle\\": 0,\\n \\"WordsInfo\\": [\\n {\\n \\"Angle\\": 0,\\n \\"Word\\": \\"发票代码:012002000211\\",\\n \\"Height\\": 16,\\n \\"Width\\": 205,\\n \\"X\\": 863,\\n \\"Y\\": 46,\\n \\"Positions\\": [\\n {\\n \\"X\\": 863,\\n \\"Y\\": 43\\n }\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => 'PDF recognition',
'description' => '## Feature description'."\n"
.'The PDF recognition feature performs structured recognition of text in PDF files.'."\n"
."\n"
.'> - You can access [online consultation](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2) for human assistance.'."\n"
.'- You can try this feature for free on the Vision Intelligence Open Platform. Click [Try Now](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizePdf) to experience this feature or purchase it online.'."\n"
.'- To learn more about API integration, usage, or consultation for Alibaba Cloud Vision Intelligence Open Platform, join the DingTalk group (23109592) to contact us.'."\n"
."\n"
.'## Common scenarios'."\n"
."\n"
.'- Content moderation: Combine with content moderation capabilities to review recognition results and detect non-compliant information in documents.'."\n"
.'- Enterprise reimbursement: Perform structured recognition on PDF-format VAT invoices to automate reimbursement workflows.'."\n"
."\n"
.'## Advantages'."\n"
."\n"
.'- Accurate recognition: Upgraded intelligent algorithms accurately recognize file content and preserve the original layout.'."\n"
.'- Multi-language recognition: Supports recognition of Chinese, English, mixed Chinese-English, and other multilingual content.'."\n"
."\n"
.'## Integration guide'."\n"
.'1. Register an Alibaba Cloud account: Go to the [Alibaba Cloud official website](https://www.aliyun.com), click **Register Now** in the upper-right corner, and follow the instructions to complete registration.'."\n"
.'2. Activate the service: Make sure you have activated the [OCR service](https://vision.aliyun.com/ocr). If you have not activated the service, [activate it now](https://common-buy.aliyun.com/?commodityCode=viapi_ocr_public_cn#/open).'."\n"
.'3. Create an AccessKey pair: Make sure you have [created an AccessKey pair](~~175144~~). If you are using a RAM user AccessKey, grant the AliyunVIAPIFullAccess permission to the RAM user. For more information, see [RAM authorization](~~145025~~).'."\n"
.'4. Online debugging (optional): You can use [OpenAPI Explorer](https://next.api.aliyun.com/api/ocr/2019-12-30/RecognizePdf?lang=JAVA&sdkStyle=dara¶ms=%7B%22FileURL%22%3A%22https%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Focr%2FRecognizePdf%2FRecognizePdf1.pdf%22%7D&tab=DEMO) to debug this feature online, view complete sample code and SDK dependency information, or download the complete project.'."\n"
.'5. Development integration steps:'."\n"
.'- Select the SDK language you want to use from the [SDK overview](~~145033~~).'."\n"
.'- Find the SDK package for the OCR (ocr) category in the corresponding SDK documentation and install it.'."\n"
.'- Modify the sample code provided in the References as needed and invoke the operation.'."\n"
."\n"
.'6. Sample code: For sample code in commonly used languages, see [PDF recognition sample code](~~478612~~).'."\n"
."\n"
.'7. Direct client calls: Common client call methods for this feature include the following.'."\n"
.'- [Direct call from web frontend](~~467779~~)'."\n"
.'- [Direct call from mini programs](~~467780~~)'."\n"
.'- [Direct call from Android](~~467781~~)'."\n"
.'- [Direct call from iOS](~~467782~~).'."\n"
."\n"
.'## Input limits'."\n"
.'- File format: PDF.'."\n"
.'- File size: up to 10 MB.'."\n"
.'- Document length: up to 5 pages for PDF files.'."\n"
.'- The URL cannot contain Chinese characters.'."\n"
."\n"
.'## Billing description'."\n"
.'For information about the billable methods and pricing of PDF recognition, see [Billing overview](~~202631~~).'."\n"
."\n"
.'> The debugging operation below is a paid operation. To try it for free, go to the [Experience Center](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizePdf).',
'responseParamsDescription' => '## SDK reference'."\n"
.'For the PDF recognition feature under the Alibaba Cloud Vision AI OCR category, we recommend that you use the SDK. Multiple programming languages are supported. When calling the operation, select the SDK package for the OCR (ocr) category. File parameters support local files and arbitrary URLs through the SDK. For more information, see [SDK overview](~~145033~~).'."\n"
."\n"
.'## Sample code'."\n"
.'For sample code in commonly used languages, see [PDF recognition sample code](~~478612~~).',
'extraInfo' => '## Error codes'."\n"
.'For error codes of PDF recognition, see [Common error codes](~~146772~~).'."\n"
."\n"
.'## Security notice'."\n"
.'- Make sure that the uploaded images or files comply with applicable laws and regulations.'."\n"
.'- Temporary files uploaded through the debugging experience are valid for 1 hour and are automatically deleted by the system after 24 hours.',
'changeSet' => [
['createdAt' => '2022-09-27T09:39:29.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2021-07-01T01:39:15.000Z', 'description' => 'OpenAPI offline'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizePdf'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizePdf',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'RecognizeQrCode' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'Tasks',
'in' => 'formData',
'style' => 'repeatList',
'schema' => [
'description' => '1.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ImageURL' => ['description' => 'The URL of the image to be detected. Each element in the JSON array is an image detection task structure (image table). A maximum of 10 elements are supported, which means up to 10 images can be detected at the same time. We recommend that you use OSS links in the China (Shanghai) region. For images stored locally or in OSS links outside the China (Shanghai) region, see [File URL processing](~~155645~~).', 'type' => 'string', 'required' => true, 'isFileTransferUrl' => true, 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeQrCode/RecognizeQrCode6.jpg', 'title' => ''],
],
'required' => false,
'description' => '',
'title' => '',
'example' => '',
],
'required' => true,
'maxItems' => 10,
'title' => '',
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '1',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'A53DC437-F883-4968-86D5-EB21FB044692', 'title' => ''],
'Data' => [
'description' => 'The returned result data.',
'type' => 'object',
'properties' => [
'Elements' => [
'description' => 'The element information returned by the recognition.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ImageURL' => ['description' => 'The image URL corresponding to the request.', 'type' => 'string', 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeQrCode/RecognizeQrCode6.jpg', 'title' => ''],
'TaskId' => ['description' => 'The ID of the detection task.', 'type' => 'string', 'example' => 'img5iGtwVIxQzc4Nqy$L84yHd-1v****', 'title' => ''],
'Results' => [
'description' => 'The returned results. A successful call returns one or more elements in the results.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Suggestion' => ['description' => 'The recommended action. Valid values:'."\n"
."\n"
.'- pass: The image is normal and no further action is required.'."\n"
."\n"
.'- review: The detection result is uncertain and manual review is required.'."\n"
."\n"
.'- block: The image contains a violation. We recommend that you take further action, such as deleting the image or restricting access.', 'type' => 'string', 'example' => 'review', 'title' => ''],
'QrCodesData' => [
'description' => '1',
'type' => 'array',
'items' => ['description' => 'The text information contained in the QR codes when the image contains QR codes (the URL or text corresponding to each QR code).'."\n"
."\n"
.'> Not all QR code images can be recognized and return the corresponding URL or text.'."\n"
.'- When **Suggestion** is `review`, the recognized QR code does not contain the corresponding URL or text information, and **QrCodesData** does not return the corresponding information.'."\n"
.'- When **Suggestion** is `block`, the corresponding URL or text information of the recognized QR code is returned.', 'type' => 'string', 'example' => 'https://yqh.aliyun.com/live/detail/23798', 'title' => ''],
'title' => '',
'example' => '',
],
'Label' => ['description' => 'The classification of the detection result. Valid values:'."\n"
."\n"
.'- normal: A normal image.'."\n"
."\n"
.'- qrcode: An image containing a QR code.'."\n"
."\n"
.'- programCode: An image containing a mini program code.'."\n"
."\n"
.'> Mini program codes are not recognized by default. To enable this feature, contact us through the DingTalk group (23109592).', 'type' => 'string', 'example' => 'qrcode', 'title' => ''],
'Rate' => ['description' => 'The probability that the result belongs to this classification. Value range: `[0.00-100.00]`. A higher value indicates a higher probability of belonging to this classification.', 'type' => 'number', 'format' => 'float', 'example' => '99.91', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => 'The parameter is invalid. Please check again.'],
],
403 => [
['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => 'An error occurred while performing authorization. Please check your RAM configuration.'],
],
408 => [
['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"A53DC437-F883-4968-86D5-EB21FB044692\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"ImageURL\\": \\"http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeQrCode/RecognizeQrCode6.jpg\\",\\n \\"TaskId\\": \\"img5iGtwVIxQzc4Nqy$L84yHd-1v****\\",\\n \\"Results\\": [\\n {\\n \\"Suggestion\\": \\"review\\",\\n \\"QrCodesData\\": [\\n \\"https://yqh.aliyun.com/live/detail/23798\\"\\n ],\\n \\"Label\\": \\"qrcode\\",\\n \\"Rate\\": 99.91\\n }\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => 'QR code recognition',
'summary' => 'This topic describes the syntax and provides examples of the QR code recognition feature (RecognizeQrCode).',
'description' => '## Feature description'."\n"
.'The QR code recognition feature detects whether an image contains QR codes and returns the text information contained in each QR code (the URL or text corresponding to each QR code). Multiple QR codes in a single image are supported.'."\n"
."\n"
.'> - If multiple tasks are detected at the same time, you are charged based on the number of tasks.'."\n"
.'- You can visit [Online Consultation](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2) to get online assistance.'."\n"
.'- You can try this feature for free on the Visual Intelligence Open Platform. Click [Try Now](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeQrCode) to experience this feature or purchase it online.'."\n"
.'- To learn more about API integration, usage, or consultation for Alibaba Cloud Visual Intelligence Open Platform, join the DingTalk group (23109592) to contact us.'."\n"
."\n"
.'## Integration guide'."\n"
.'1. Register an Alibaba Cloud account: Go to the [Alibaba Cloud official website](https://www.aliyun.com), click **Sign Up** in the upper-right corner, and follow the instructions to complete registration.'."\n"
.'2. Activate the service: Make sure you have activated the [OCR service](https://vision.aliyun.com/ocr). If you have not activated the service, [activate it now](https://common-buy.aliyun.com/?commodityCode=viapi_ocr_public_cn#/open).'."\n"
.'3. Create an AccessKey pair: Make sure you have [created an AccessKey pair](~~175144~~). If you are using a RAM user AccessKey, grant the AliyunVIAPIFullAccess permission to the RAM user. For more information, see [RAM authorization](~~145025~~).'."\n"
.'4. Online debugging (optional): You can use [OpenAPI Explorer](https://next.api.aliyun.com/api/ocr/2019-12-30/RecognizeQrCode?lang=JAVA&sdkStyle=dara¶ms=%7B%22Tasks%22%3A%5B%7B%22ImageURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Focr%2FRecognizeQrCode%2FRecognizeQrCode1.jpg%22%7D%5D%7D&tab=DEMO) to debug this feature online, view complete sample code and SDK dependency information, or download the complete project.'."\n"
.'5. Development integration steps:'."\n"
.'- Select the SDK language you want to use from the [SDK overview](~~145033~~).'."\n"
.'- Find the SDK package for the OCR (ocr) category in the corresponding SDK documentation and install it.'."\n"
.'- Modify the sample code provided in the references as needed and invoke the API.'."\n"
."\n"
.'6. Sample code: For sample code in commonly used languages, see [QR code recognition sample code](~~478589~~).'."\n"
."\n"
.'7. Direct client calls: Common client call methods for this feature include the following.'."\n"
.'- [Direct call from web frontend](~~467779~~)'."\n"
.'- [Direct call from mini programs](~~467780~~)'."\n"
.'- [Direct call from Android](~~467781~~)'."\n"
.'- [Direct call from iOS](~~467782~~).'."\n"
."\n"
.'## Input limits'."\n"
.'- Image format: PNG, JPG, JPEG, BMP, GIF, or WEBP.'."\n"
.'- Image size: up to 10 MB.'."\n"
.'- Image resolution: at least 256 × 256 pixels is recommended. Low resolution may affect recognition accuracy.'."\n"
.'- The URL cannot contain Chinese characters.'."\n"
.'- Only QR code images are supported. Other types of codes are not supported.'."\n"
."\n"
.'## Detection notes'."\n"
."\n"
.'- The maximum detection time is 6 seconds. If the detection is not completed within this time limit, the system returns a timeout error code.'."\n"
."\n"
.'- The image download time limit is 3 seconds. If the download time exceeds 3 seconds, a download timeout error is returned.'."\n"
."\n"
.'- The response time of the image detection API depends on the image download time. Ensure that the storage service hosting the images is stable and reliable. We recommend that you use Alibaba Cloud OSS or CDN caching.'."\n"
."\n"
.'## Billing description'."\n"
.'For information about the billable methods and pricing of QR code recognition, see [Billing overview](~~202631~~).'."\n"
."\n"
.'> The debugging API below is a paid API. To try it for free, go to the [Experience Center](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeQrCode).',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '## SDK reference'."\n"
.'For the QR code recognition feature under the Alibaba Cloud Visual AI OCR category, we recommend that you use the SDK. Multiple programming languages are supported. When making calls, select the SDK package for the OCR (ocr) category. File parameters can be passed as local files or arbitrary URLs through the SDK. For more information, see [SDK overview](~~145033~~).'."\n"
."\n"
.'## Sample code'."\n"
.'For sample code in commonly used languages, see [QR code recognition sample code](~~478589~~).',
'extraInfo' => '## Error codes'."\n"
.'For error codes of QR code recognition, see [Common error codes](~~146772~~).'."\n"
."\n"
.'## Security notice'."\n"
.'- Ensure that the uploaded images or files comply with applicable laws and regulations.'."\n"
.'- Temporary files uploaded through the debugging experience are valid for 1 hour and are automatically deleted by the system after 24 hours.',
'changeSet' => [
['createdAt' => '2022-11-10T08:51:34.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeQrCode'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeQrCode',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'RecognizeQuotaInvoice' => [
'summary' => 'This topic describes the syntax and examples of the RecognizeQuotaInvoice operation for quota invoice recognition.',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'ImageURL',
'in' => 'formData',
'schema' => ['description' => 'The URL of the image. We recommend that you use an Object Storage Service (OSS) link in the Shanghai region. If the file is stored locally or the OSS link is not in the Shanghai region, see [File URL processing](~~155645~~).', 'type' => 'string', 'required' => true, 'isFileTransferUrl' => true, 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeQuotaInvoice/RecognizeQuotaInvoice1.jpg', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'BC4C12D0-7FD3-419A-B997-A91212DF6D82'],
'Data' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'Angle' => ['description' => 'The rotation angle of the invoice. The value ranges from 0 to 360. 0 indicates upward, 90 indicates rightward, 180 indicates downward, and 270 indicates leftward.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
'Height' => ['description' => 'The height of the invoice after rotation.', 'type' => 'integer', 'format' => 'int64', 'example' => '624', 'title' => ''],
'Width' => ['description' => 'The width of the invoice after rotation.', 'type' => 'integer', 'format' => 'int64', 'example' => '865', 'title' => ''],
'OrgHeight' => ['description' => 'The height of the original image.', 'type' => 'integer', 'format' => 'int64', 'example' => '610', 'title' => ''],
'OrgWidth' => ['description' => 'The width of the original image.', 'type' => 'integer', 'format' => 'int64', 'example' => '855', 'title' => ''],
'Content' => [
'description' => 'The recognized content.',
'type' => 'object',
'properties' => [
'SumAmount' => ['description' => 'The amount in uppercase Chinese characters.', 'type' => 'string', 'example' => '壹拾元整', 'title' => ''],
'InvoiceCode' => ['description' => 'The invoice code.', 'type' => 'string', 'example' => '144031800103', 'title' => ''],
'InvoiceNo' => ['description' => 'The invoice number.', 'type' => 'string', 'example' => '40637706', 'title' => ''],
'InvoiceAmount' => ['description' => 'The amount in lowercase (numeric) format.', 'type' => 'string', 'example' => '10', 'title' => ''],
'InvoiceDetails' => ['description' => 'The parsed invoice code details.', 'type' => 'string', 'example' => '税务局代码:国税,行政区划代码:深圳市,年份:2018,发票行业代码:None,发票类别代码:None,金额版:万元版,批次号:03', 'title' => ''],
],
'title' => '',
'example' => '',
],
'KeyValueInfos' => [
'description' => 'The position information.',
'type' => 'array',
'items' => [
'description' => '1',
'type' => 'object',
'properties' => [
'Key' => ['description' => 'The name of the recognized field.', 'type' => 'string', 'example' => '大写金额', 'title' => ''],
'Value' => ['description' => 'The value of the recognized field.', 'type' => 'string', 'example' => '壹拾元整', 'title' => ''],
'ValuePositions' => [
'description' => 'The position information of the recognized field. The coordinates of the four corners are arranged clockwise.',
'type' => 'array',
'items' => [
'description' => '1',
'type' => 'object',
'properties' => [
'X' => ['description' => 'The X coordinate of the bounding box.', 'type' => 'integer', 'format' => 'int64', 'example' => '544', 'title' => ''],
'Y' => ['description' => 'The Y coordinate of the bounding box.', 'type' => 'integer', 'format' => 'int64', 'example' => '387', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'ValueScore' => ['description' => 'The confidence score of the recognized **Value** field. The value ranges from 0 to 100.', 'type' => 'number', 'format' => 'float', 'example' => '100', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => 'The parameter is invalid. Please check again.'],
],
403 => [
['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => 'An error occurred while performing authorization. Please check your RAM configuration.'],
],
408 => [
['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"BC4C12D0-7FD3-419A-B997-A91212DF6D82\\",\\n \\"Data\\": {\\n \\"Angle\\": 1,\\n \\"Height\\": 624,\\n \\"Width\\": 865,\\n \\"OrgHeight\\": 610,\\n \\"OrgWidth\\": 855,\\n \\"Content\\": {\\n \\"SumAmount\\": \\"壹拾元整\\",\\n \\"InvoiceCode\\": \\"144031800103\\",\\n \\"InvoiceNo\\": \\"40637706\\",\\n \\"InvoiceAmount\\": \\"10\\",\\n \\"InvoiceDetails\\": \\"税务局代码:国税,行政区划代码:深圳市,年份:2018,发票行业代码:None,发票类别代码:None,金额版:万元版,批次号:03\\"\\n },\\n \\"KeyValueInfos\\": [\\n {\\n \\"Key\\": \\"大写金额\\",\\n \\"Value\\": \\"壹拾元整\\",\\n \\"ValuePositions\\": [\\n {\\n \\"X\\": 544,\\n \\"Y\\": 387\\n }\\n ],\\n \\"ValueScore\\": 100\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => 'Quota invoice recognition',
'description' => '## Feature description'."\n"
.'The quota invoice recognition feature can perform structured recognition of invoice numbers, invoice codes, and invoice amounts on quota invoices.'."\n"
."\n"
.'> - The quota invoice recognition operation only recognizes text content in invoices and does not support verifying invoice authenticity.'."\n"
.'- You can visit [Online Consultation](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2) to get online assistance.'."\n"
.'- You can try this feature for free on the Vision Intelligence Open Platform. Click [Try Now](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeQuotaInvoice) to experience this feature or purchase it online.'."\n"
.'- For questions about Alibaba Cloud Vision Intelligence Open Platform visual AI API integration or usage, join the DingTalk group (23109592) to contact us.'."\n"
."\n"
.'## Common scenarios'."\n"
."\n"
.'- Financial reimbursement: Recognizes and records key information on various quota invoices. This feature is applicable to tax accounting and internal reimbursement scenarios, effectively reducing manual accounting workload, simplifying reimbursement flows, and automating financial reimbursement.'."\n"
.'- Billing records: Recognizes and fetches invoice amount information. This feature is applicable to financial bookkeeping scenarios, enabling quick entry of billing information, effectively reducing user input costs, and improving user experience.'."\n"
."\n"
.'## Advantages'."\n"
."\n"
.'- Automation: Effectively reduces manual accounting workload, simplifies reimbursement processes, and automates financial reimbursement.'."\n"
.'- Cost savings: Enables quick entry of billing information, effectively reducing user input costs and improving user experience.'."\n"
."\n"
.'## Integration guide'."\n"
.'1. Register an Alibaba Cloud account: Go to the [Alibaba Cloud official website](https://www.aliyun.com), click **Register Now** in the upper-right corner, and follow the instructions to complete account registration.'."\n"
.'2. Activate the service: Make sure you have activated the [OCR service](https://vision.aliyun.com/ocr). If you have not activated the service, [activate it now](https://common-buy.aliyun.com/?commodityCode=viapi_ocr_public_cn#/open).'."\n"
.'3. Create an AccessKey pair: Make sure you have [created an AccessKey pair](~~175144~~). If you are using an AccessKey pair of a RAM user, grant the AliyunVIAPIFullAccess permission to the RAM user. For more information, see [RAM authorization](~~145025~~).'."\n"
.'4. Online debugging (optional): You can use [OpenAPI Explorer](https://next.api.aliyun.com/api/ocr/2019-12-30/RecognizeQuotaInvoice?lang=JAVA&sdkStyle=dara¶ms=%7B%22ImageURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Focr%2FRecognizeQuotaInvoice%2FRecognizeQuotaInvoice1.jpg%22%7D&tab=DEMO) to debug this feature online, view complete sample code and SDK dependency information, or download the complete project.'."\n"
.'5. Development integration steps:'."\n"
.'- Select the SDK language you want to use from the [SDK overview](~~145033~~).'."\n"
.'- Find the SDK package for the OCR (ocr) AI category in the corresponding SDK documentation and install it.'."\n"
.'- Modify the sample code provided in the References as needed and invoke the operation.'."\n"
."\n"
.'6. Direct client calls: Common client invocation methods for this feature include the following.'."\n"
.'- [Direct call from web frontend](~~467779~~)'."\n"
.'- [Direct call from mini programs](~~467780~~)'."\n"
.'- [Direct call from Android](~~467781~~)'."\n"
.'- [Direct call from iOS](~~467782~~).'."\n"
."\n"
.'## Input limits'."\n"
.'- Image format: JPEG, JPG, PNG, or BMP.'."\n"
.'- Image size: up to 4 MB.'."\n"
.'- Image resolution: greater than 15 × 15 pixels and smaller than 4096 × 4096 pixels.'."\n"
.'- The URL cannot contain Chinese characters.'."\n"
."\n"
.'## Billing description'."\n"
.'For information about the billable methods and pricing of quota invoice recognition, see [Billing overview](~~202631~~).'."\n"
."\n"
.'> The debugging operation below is a paid operation. For a free trial, go to [Experience Center](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeQuotaInvoice).',
'responseParamsDescription' => '## SDK reference'."\n"
.'For the quota invoice recognition feature under the Alibaba Cloud Vision AI OCR category, we recommend that you use the SDK. Multiple programming languages are supported. When calling the operation, select the SDK package for the OCR (ocr) AI category. File parameters support local files and arbitrary URLs through the SDK. For more information, see [SDK overview](~~145033~~).',
'extraInfo' => '## Error codes'."\n"
.'For error codes of quota invoice recognition, see [Common error codes](~~146772~~).'."\n"
."\n"
.'## Security notice'."\n"
.'- Make sure that the uploaded images or files comply with applicable laws and regulations.'."\n"
.'- Temporary files uploaded through the debugging experience are valid for 1 hour and are automatically deleted by the system after 24 hours.',
'changeSet' => [
['createdAt' => '2022-09-27T09:39:29.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2021-07-01T01:39:15.000Z', 'description' => 'OpenAPI offline'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeQuotaInvoice'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeQuotaInvoice',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'RecognizeTable' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'ImageURL',
'in' => 'formData',
'schema' => ['description' => 'The URL of the image. We recommend that you use an Object Storage Service (OSS) link in the Shanghai region. If the file is stored locally or in an OSS bucket outside the Shanghai region, see [File URL processing](~~155645~~).', 'type' => 'string', 'required' => true, 'isFileTransferUrl' => true, 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeTable/RecognizeTable4.jpg', 'title' => ''],
],
[
'name' => 'OutputFormat',
'in' => 'formData',
'schema' => [
'description' => 'The output format is `json`. (`html` and `xlsx` are deprecated. If you set this parameter to `html` or `xlsx`, the output is still in JSON format.).',
'type' => 'string',
'required' => true,
'enum' => ['html', 'json', 'xlsx'],
'example' => 'json',
'title' => '',
],
],
[
'name' => 'UseFinanceModel',
'in' => 'formData',
'schema' => ['description' => 'Specifies whether to use the financial statement model. Valid values:'."\n"
.'- true: Use the financial statement model.'."\n"
.'- false: Do not use the financial statement model.', 'type' => 'boolean', 'required' => true, 'example' => 'true', 'title' => ''],
],
[
'name' => 'AssureDirection',
'in' => 'formData',
'schema' => ['description' => 'Specifies whether the image direction is confirmed to be upright. Valid values:'."\n"
.'- true: The image is upright.'."\n"
.'- false: The image is not upright.', 'type' => 'boolean', 'required' => true, 'example' => 'false', 'title' => ''],
],
[
'name' => 'HasLine',
'in' => 'formData',
'schema' => ['description' => 'Specifies whether the table has no lines. Valid values:'."\n"
.'- true: The table has no lines or has only horizontal lines without vertical lines.'."\n"
.'- false: The table has lines.', 'type' => 'boolean', 'required' => true, 'example' => 'false', 'title' => ''],
],
[
'name' => 'SkipDetection',
'in' => 'formData',
'schema' => ['description' => 'Specifies whether to skip detection. Valid values:'."\n"
.'- true: Skip detection.'."\n"
.'- false: Do not skip detection.', 'type' => 'boolean', 'required' => true, 'example' => 'false', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'CBC36BE6-2A18-5256-82BD-8B5477E5D058', 'title' => ''],
'Data' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'FileContent' => ['description' => 'The request parameters `html` and `xlsx` are deprecated. Data is output in JSON format by default.', 'type' => 'string', 'example' => 'UEsDBBQAAAAIAAAAIQBukMk4WAIAA****', 'title' => ''],
'Tables' => [
'description' => 'The data in JSON format. This parameter is returned only when the request parameter OutputFormat is set to `json`.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Head' => [
'type' => 'array',
'items' => ['description' => 'The table header information.', 'type' => 'string', 'example' => '存活盘点表', 'title' => ''],
'description' => '',
'title' => '',
'example' => '',
],
'Tail' => [
'type' => 'array',
'items' => ['description' => 'The table footer information.', 'type' => 'string', 'example' => '职工券', 'title' => ''],
'description' => '',
'title' => '',
'example' => '',
],
'TableRows' => [
'description' => 'The table data in JSON format.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'TableColumns' => [
'description' => 'The table data in JSON format.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'EndRow' => ['description' => 'The number of rows that the cell spans (rowspan), calculated as ey-sy.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
'EndColumn' => ['description' => 'The number of columns that the cell spans (colspan), calculated as ex-sx.', 'type' => 'integer', 'format' => 'int32', 'example' => '4', 'title' => ''],
'Width' => ['description' => 'The width of the cell in the image.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'Height' => ['description' => 'The height of the cell in the image.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'Texts' => [
'type' => 'array',
'items' => ['description' => 'The text content. Each row of text is a block.', 'type' => 'string', 'example' => '序号', 'title' => ''],
'description' => '',
'title' => '',
'example' => '',
],
'StartRow' => ['description' => 'The starting row ID of the cell.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'StartColumn' => ['description' => 'The starting column ID of the cell.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => 'The parameter is invalid. Please check again.'],
],
403 => [
['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => 'An error occurred while performing authorization. Please check your RAM configuration.'],
],
408 => [
['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"CBC36BE6-2A18-5256-82BD-8B5477E5D058\\",\\n \\"Data\\": {\\n \\"FileContent\\": \\"UEsDBBQAAAAIAAAAIQBukMk4WAIAA****\\",\\n \\"Tables\\": [\\n {\\n \\"Head\\": [\\n \\"存活盘点表\\"\\n ],\\n \\"Tail\\": [\\n \\"职工券\\"\\n ],\\n \\"TableRows\\": [\\n {\\n \\"TableColumns\\": [\\n {\\n \\"EndRow\\": 1,\\n \\"EndColumn\\": 4,\\n \\"Width\\": 0,\\n \\"Height\\": 0,\\n \\"Texts\\": [\\n \\"序号\\"\\n ],\\n \\"StartRow\\": 0,\\n \\"StartColumn\\": 1\\n }\\n ]\\n }\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => 'Table recognition',
'summary' => 'This topic describes the syntax and examples of RecognizeTable for table recognition.',
'description' => '## Feature description'."\n"
.'The table recognition feature automatically recognizes content in tables. This feature is applicable to tables that have black border lines and complete horizontal and vertical grid lines.'."\n"
."\n"
.'> - You can go to [Online Consultation](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2) for online assistance.'."\n"
.'- You can try this feature for free on the Visual Intelligence Open Platform. Click [Try Now](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeTable) to try this feature or purchase it online.'."\n"
.'- To learn more about API integration, usage, or consultation for Alibaba Cloud Visual Intelligence Open Platform, join the DingTalk group (23109592) to contact us.'."\n"
."\n"
.'## Integration guide'."\n"
.'1. Register an Alibaba Cloud account: Go to the [Alibaba Cloud official website](https://www.aliyun.com), click **Register Now** in the upper-right corner, and follow the instructions to complete registration.'."\n"
.'2. Activate the service: Make sure you have activated the [OCR service](https://vision.aliyun.com/ocr). If you have not activated the service, [activate it now](https://common-buy.aliyun.com/?commodityCode=viapi_ocr_public_cn#/open).'."\n"
.'3. Create an AccessKey pair: Make sure you have [created an AccessKey pair](~~175144~~). If you are using a RAM user AccessKey, grant the AliyunVIAPIFullAccess permission to the RAM user. For more information, see [RAM authorization](~~145025~~).'."\n"
.'4. Online debugging (optional): You can use [OpenAPI Explorer](https://next.api.aliyun.com/api/ocr/2019-12-30/RecognizeTable?lang=JAVA&sdkStyle=dara¶ms=%7B%22ImageURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Focr%2FRecognizeTable%2FRecognizeTable1.jpg%22%2C%22OutputFormat%22%3A%22json%22%2C%22UseFinanceModel%22%3Atrue%2C%22HasLine%22%3Afalse%2C%22AssureDirection%22%3Atrue%2C%22SkipDetection%22%3Afalse%7D&tab=DEMO) to debug this feature online, view complete sample code and SDK dependency information, or download the complete project.'."\n"
.'5. Development integration steps:'."\n"
.'- Select the SDK language you want to use from the [SDK overview](~~145033~~).'."\n"
.'- Find the SDK package for the OCR (ocr) category in the corresponding SDK documentation and install it.'."\n"
.'- Modify the sample code provided in the References as needed and invoke the API.'."\n"
."\n"
.'6. Sample code: For sample code in common programming languages, see [Table recognition sample code](~~600191~~).'."\n"
."\n"
.'7. Direct client calls: Common client call methods for this feature include the following.'."\n"
.'- [Direct call from web frontend](~~467779~~)'."\n"
.'- [Direct call from mini programs](~~467780~~)'."\n"
.'- [Direct call from Android](~~467781~~)'."\n"
.'- [Direct call from iOS](~~467782~~).'."\n"
."\n"
.'## Input limits'."\n"
.'- Image format: JPEG, JPG, PNG, BMP, or GIF.'."\n"
.'- Image size: up to 3 MB.'."\n"
.'- Image resolution: No limit on image resolution, but excessively high resolution may cause the API to time out. The timeout period is 5 seconds.'."\n"
.'- The URL cannot contain Chinese characters.'."\n"
."\n"
.'## Billing description'."\n"
.'For information about the billable methods and pricing of table recognition, see [Billing overview](~~202631~~).'."\n"
."\n"
.'> The API debugging interface below is a paid interface. For a free trial, go to the [Experience Center](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeTable).',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '## SDK reference'."\n"
.'For the table recognition feature under the Alibaba Cloud Visual AI OCR category, we recommend that you use the SDK. The SDK supports multiple programming languages. When calling the SDK, select the SDK package for the OCR (ocr) category. File parameters support local files and arbitrary URLs through the SDK. For more information, see [SDK overview](~~145033~~).'."\n"
."\n"
.'## Sample code'."\n"
.'For sample code in common programming languages, see [Table recognition sample code](~~600191~~).',
'extraInfo' => '## Error codes'."\n"
.'For error codes of table recognition, see [Common error codes](~~146772~~).'."\n"
."\n"
.'## Security notice'."\n"
.'- Make sure that the uploaded images or files comply with applicable laws and regulations.'."\n"
.'- Temporary files uploaded through the debugging interface are valid for 1 hour and are automatically deleted by the system after 24 hours.',
'changeSet' => [
['createdAt' => '2022-03-30T07:03:21.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeTable'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeTable',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'RecognizeTaxiInvoice' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'ImageURL',
'in' => 'formData',
'schema' => ['description' => 'The URL of the image. We recommend that you use an Object Storage Service (OSS) link in the Shanghai region. If the file is stored locally or the OSS link is not in the Shanghai region, see [File URL processing](~~155645~~).', 'type' => 'string', 'required' => true, 'isFileTransferUrl' => true, 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeTaxiInvoice/RecognizeTaxiInvoice2.jpg', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'B2BBBD26-1D3E-4CFA-A80B-6A9266B8D125', 'title' => ''],
'Data' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'Invoices' => [
'description' => 'The detailed information about the invoice list.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Items' => [
'description' => 'The text list of each invoice.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'ItemRoi' => [
'description' => 'The position information of each field on the invoice.',
'type' => 'object',
'properties' => [
'Size' => [
'description' => 'The width and height of the bounding box.',
'type' => 'object',
'properties' => [
'W' => ['description' => 'The width of the bounding box.', 'type' => 'number', 'format' => 'float', 'example' => '887.9998779296875', 'title' => ''],
'H' => ['description' => 'The height of the bounding box.', 'type' => 'number', 'format' => 'float', 'example' => '81.999984741210938', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Angle' => ['description' => 'The angle information. The origin of the coordinates is in the upper-left corner, and the direction parallel to the X-axis has an angle of 0. Counterclockwise rotation angles are negative, and clockwise rotation angles are positive. The angle is the degree between the horizontal axis (X-axis) rotated clockwise and the first edge it encounters. The angle range is -180° to 180°.', 'type' => 'number', 'format' => 'float', 'example' => '-90', 'title' => ''],
'Center' => [
'description' => 'The center point of the bounding box.',
'type' => 'object',
'properties' => [
'Y' => ['description' => 'The Y coordinate of the center point of the bounding box.', 'type' => 'number', 'format' => 'float', 'example' => '1360', 'title' => ''],
'X' => ['description' => 'The X coordinate of the center point of the bounding box.', 'type' => 'number', 'format' => 'float', 'example' => '1593', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'Text' => ['description' => 'The information of each field on the invoice.', 'type' => 'string', 'example' => '86655664', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'RotateType' => ['description' => 'The rotation angle of the invoice. Valid values:'."\n"
."\n"
.'- 0: no rotation required.'."\n"
."\n"
.'- 1: 90 degrees clockwise.'."\n"
."\n"
.'- 2: 180 degrees clockwise.'."\n"
."\n"
.'- 3: 270 degrees clockwise.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
'InvoiceRoi' => [
'description' => 'The position of the invoice.',
'type' => 'object',
'properties' => [
'W' => ['description' => 'The width of the invoice.', 'type' => 'number', 'format' => 'float', 'example' => '1773', 'title' => ''],
'H' => ['description' => 'The height of the invoice.', 'type' => 'number', 'format' => 'float', 'example' => '3625', 'title' => ''],
'Y' => ['description' => 'The Y coordinate of the upper-left corner of the invoice.', 'type' => 'number', 'format' => 'float', 'example' => '302', 'title' => ''],
'X' => ['description' => 'The X coordinate of the upper-left corner of the invoice.', 'type' => 'number', 'format' => 'float', 'example' => '513', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => 'The parameter is invalid. Please check again.'],
],
403 => [
['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => 'An error occurred while performing authorization. Please check your RAM configuration.'],
],
408 => [
['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B2BBBD26-1D3E-4CFA-A80B-6A9266B8D125\\",\\n \\"Data\\": {\\n \\"Invoices\\": [\\n {\\n \\"Items\\": [\\n {\\n \\"ItemRoi\\": {\\n \\"Size\\": {\\n \\"W\\": 887.9998779296875,\\n \\"H\\": 81.99998474121094\\n },\\n \\"Angle\\": -90,\\n \\"Center\\": {\\n \\"Y\\": 1360,\\n \\"X\\": 1593\\n }\\n },\\n \\"Text\\": \\"86655664\\"\\n }\\n ],\\n \\"RotateType\\": 0,\\n \\"InvoiceRoi\\": {\\n \\"W\\": 1773,\\n \\"H\\": 3625,\\n \\"Y\\": 302,\\n \\"X\\": 513\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => 'Taxi invoice recognition',
'summary' => 'This topic describes the syntax and examples of RecognizeTaxiInvoice.',
'description' => '## Feature description'."\n"
.'The taxi invoice recognition feature accurately detects the positions of taxi invoices from major cities across the country in images. It supports structured recognition of taxi invoices and outputs six key fields: invoice number, code, vehicle number, date, time, and amount.'."\n"
."\n"
.'> - You can visit [Online Consultation](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2) for online assistance.'."\n"
.'> - You can try this feature for free on the Vision Intelligence Open Platform. Click [Try Now](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeTaxiInvoice) to experience this feature or purchase it online.'."\n"
.'> - For questions about API integration, usage, or consultation regarding the Alibaba Cloud Vision Intelligence Open Platform, join the DingTalk group (23109592) to contact us.'."\n"
."\n"
.'## Integration guide'."\n"
.'1. Register an Alibaba Cloud account: Go to the [Alibaba Cloud official website](https://www.aliyun.com), click **Register Now** in the upper-right corner, and follow the instructions to complete registration.'."\n"
.'2. Activate the service: Make sure you have activated the [OCR service](https://vision.aliyun.com/ocr). If you have not activated the service, [activate it now](https://common-buy.aliyun.com/?commodityCode=viapi_ocr_public_cn#/open).'."\n"
.'3. Create an AccessKey: Make sure you have [created an AccessKey](~~175144~~). If you are using a RAM user AccessKey, grant the AliyunVIAPIFullAccess permission to the RAM user. For more information, see [RAM authorization](~~145025~~).'."\n"
.'4. Online debugging (optional): You can use [OpenAPI Explorer](https://next.api.aliyun.com/api/ocr/2019-12-30/RecognizeTaxiInvoice?lang=JAVA&sdkStyle=dara¶ms=%7B%22ImageURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Focr%2FRecognizeTaxiInvoice%2FRecognizeTaxiInvoice1.jpg%22%7D&tab=DEMO) to debug this feature online, view complete sample code and SDK dependency information, or download the complete project.'."\n"
.'5. Development integration steps:'."\n"
.' - Select the SDK language you want to use from the [SDK overview](~~145033~~).'."\n"
.' - Find the SDK package for the OCR (ocr) category in the corresponding SDK documentation and install it.'."\n"
.' - Modify the sample code provided in the References as needed and invoke the API.'."\n"
."\n"
.'6. Direct client calls: Common client call methods for this feature include the following.'."\n"
.' - [Direct call from web frontend](~~467779~~)'."\n"
.' - [Direct call from mini programs](~~467780~~)'."\n"
.' - [Direct call from Android](~~467781~~)'."\n"
.' - [Direct call from iOS](~~467782~~).'."\n"
."\n"
.'## Input limits'."\n"
.'- Image format: JPEG, JPG, PNG, BMP, or GIF.'."\n"
.'- Image size: up to 3 MB.'."\n"
.'- Image resolution: No resolution limit is imposed, but an excessively high resolution may cause the API to time out. The timeout period is 5 seconds.'."\n"
.'- The URL cannot contain Chinese characters.'."\n"
."\n"
.'## Billing description'."\n"
.'For information about the billable methods and pricing of taxi invoice recognition, see [Billing overview](~~202631~~).'."\n"
."\n"
.'> The API debugging interface below is a paid interface. For a free trial, go to the [Experience Center](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeTaxiInvoice).',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '## SDK reference'."\n"
.'For the taxi invoice recognition feature under the Alibaba Cloud Vision AI OCR category, we recommend that you use the SDK. The SDK supports multiple programming languages. When making calls, select the SDK package for the OCR (ocr) category. File parameters passed through the SDK support both local files and arbitrary URLs. For more information, see [SDK overview](~~145033~~).',
'extraInfo' => '## Error codes'."\n"
.'For error codes of taxi invoice recognition, see [Common error codes](~~146772~~).'."\n"
."\n"
.'## Security notice'."\n"
.'- Ensure that the uploaded images or files comply with applicable laws and regulations.'."\n"
.'- Temporary files uploaded through the debugging interface are valid for 1 hour and are automatically deleted by the system after 24 hours.',
'changeSet' => [
['createdAt' => '2022-03-30T07:03:21.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeTaxiInvoice'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeTaxiInvoice',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'RecognizeTicketInvoice' => [
'summary' => 'This topic describes the syntax and provides examples of the RecognizeTicketInvoice operation for VAT roll invoice recognition.',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'ImageURL',
'in' => 'formData',
'schema' => ['title' => '', 'description' => 'The URL of the image. We recommend that you use an Object Storage Service (OSS) link in the Shanghai region. If the file is stored locally or the OSS link is not in the Shanghai region, see [File URL processing](~~155645~~).', 'type' => 'string', 'required' => true, 'isFileTransferUrl' => true, 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeTicketInvoice/RecognizeTicketInvoice1.png'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '063C0178-7EA3-4754-96FB-C0C9AE6B9AAE'],
'Data' => [
'description' => 'The returned result data.',
'type' => 'object',
'properties' => [
'Count' => ['description' => 'The number of invoices.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
'Height' => ['description' => 'The height of the invoice after rotation.', 'type' => 'integer', 'format' => 'int64', 'example' => '594', 'title' => ''],
'Width' => ['description' => 'The width of the invoice after rotation.', 'type' => 'integer', 'format' => 'int64', 'example' => '594', 'title' => ''],
'OrgHeight' => ['description' => 'The height of the original image.', 'type' => 'integer', 'format' => 'int64', 'example' => '1417', 'title' => ''],
'OrgWidth' => ['description' => 'The width of the original image.', 'type' => 'integer', 'format' => 'int64', 'example' => '1417', 'title' => ''],
'Results' => [
'description' => 'The recognition results.',
'type' => 'array',
'items' => [
'description' => '1',
'type' => 'object',
'properties' => [
'Index' => ['description' => 'The index of the invoice in the image.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
'Content' => [
'description' => 'The recognized content.',
'type' => 'object',
'properties' => [
'InvoiceCode' => ['description' => 'The invoice code.', 'type' => 'string', 'example' => '044031860107', 'title' => ''],
'InvoiceNumber' => ['description' => 'The invoice number.', 'type' => 'string', 'example' => '09267581', 'title' => ''],
'InvoiceDate' => ['description' => 'The invoice date.', 'type' => 'string', 'example' => '2018-09-20', 'title' => ''],
'AntiFakeCode' => ['description' => 'The verification code.', 'type' => 'string', 'example' => '81931914902643039780', 'title' => ''],
'PayeeName' => ['description' => 'The seller name.', 'type' => 'string', 'example' => '深圳市xxxx有限公司', 'title' => ''],
'PayeeRegisterNo' => ['description' => 'The seller tax number.', 'type' => 'string', 'example' => '914403002794492693', 'title' => ''],
'PayerName' => ['description' => 'The buyer name.', 'type' => 'string', 'example' => '深圳市xxxx有限公司', 'title' => ''],
'PayerRegisterNo' => ['description' => 'The buyer tax number.', 'type' => 'string', 'example' => '91440300MA5EXWHW6F', 'title' => ''],
'SumAmount' => ['description' => 'The total price.', 'type' => 'string', 'example' => '¥220.00', 'title' => ''],
],
'title' => '',
'example' => '',
],
'Type' => ['description' => 'The invoice type. The following types are supported:'."\n"
."\n"
.'- VAT invoice'."\n"
.'- Taxi receipt'."\n"
.'- Fixed-amount invoice'."\n"
.'- Motor vehicle sales invoice'."\n"
.'- Roll invoice.', 'type' => 'string', 'example' => '卷票', 'title' => ''],
'KeyValueInfos' => [
'description' => 'The position information.',
'type' => 'array',
'items' => [
'description' => '1',
'type' => 'object',
'properties' => [
'Key' => ['description' => 'The name of the recognized field.', 'type' => 'string', 'example' => '发票代码', 'title' => ''],
'Value' => ['description' => 'The value of the recognized field.', 'type' => 'string', 'example' => '044031860107', 'title' => ''],
'ValuePositions' => [
'description' => 'The position information of the recognized field. The coordinates of the four corners are arranged clockwise.',
'type' => 'array',
'items' => [
'description' => '1',
'type' => 'object',
'properties' => [
'X' => ['description' => 'The X coordinate of the bounding box.', 'type' => 'integer', 'format' => 'int64', 'example' => '586', 'title' => ''],
'Y' => ['description' => 'The Y coordinate of the bounding box.', 'type' => 'integer', 'format' => 'int64', 'example' => '16', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'ValueScore' => ['description' => 'The confidence score of the recognized field Value. Valid values: 0 to 100.', 'type' => 'number', 'format' => 'float', 'example' => '100', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'SliceRectangle' => [
'description' => 'The coordinates of the four corners of the invoice recognition bounding box, arranged clockwise.',
'type' => 'array',
'items' => [
'description' => '1',
'type' => 'object',
'properties' => [
'X' => ['description' => 'The X coordinate of the bounding box.', 'type' => 'integer', 'format' => 'int64', 'example' => '586', 'title' => ''],
'Y' => ['description' => 'The Y coordinate of the bounding box.', 'type' => 'integer', 'format' => 'int64', 'example' => '16', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => 'The parameter is invalid. Please check again.'],
],
403 => [
['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => 'An error occurred while performing authorization. Please check your RAM configuration.'],
],
408 => [
['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"063C0178-7EA3-4754-96FB-C0C9AE6B9AAE\\",\\n \\"Data\\": {\\n \\"Count\\": 1,\\n \\"Height\\": 594,\\n \\"Width\\": 594,\\n \\"OrgHeight\\": 1417,\\n \\"OrgWidth\\": 1417,\\n \\"Results\\": [\\n {\\n \\"Index\\": 1,\\n \\"Content\\": {\\n \\"InvoiceCode\\": \\"044031860107\\",\\n \\"InvoiceNumber\\": \\"09267581\\",\\n \\"InvoiceDate\\": \\"2018-09-20\\",\\n \\"AntiFakeCode\\": \\"81931914902643039780\\",\\n \\"PayeeName\\": \\"深圳市xxxx有限公司\\",\\n \\"PayeeRegisterNo\\": \\"914403002794492693\\",\\n \\"PayerName\\": \\"深圳市xxxx有限公司\\",\\n \\"PayerRegisterNo\\": \\"91440300MA5EXWHW6F\\",\\n \\"SumAmount\\": \\"¥220.00\\"\\n },\\n \\"Type\\": \\"卷票\\",\\n \\"KeyValueInfos\\": [\\n {\\n \\"Key\\": \\"发票代码\\",\\n \\"Value\\": \\"044031860107\\",\\n \\"ValuePositions\\": [\\n {\\n \\"X\\": 586,\\n \\"Y\\": 16\\n }\\n ],\\n \\"ValueScore\\": 100\\n }\\n ],\\n \\"SliceRectangle\\": [\\n {\\n \\"X\\": 586,\\n \\"Y\\": 16\\n }\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => 'VAT roll invoice recognition',
'description' => '## Feature description'."\n"
.'The VAT roll invoice recognition feature supports structured recognition of fields on roll invoices, including total amount with tax, invoice code, invoice number, total tax amount, total amount, cipher area, invoice date, tax rate, buyer identification number, and seller identification number.'."\n"
."\n"
.'> - The VAT roll invoice recognition operation only recognizes text content on invoices and does not support invoice authenticity verification.'."\n"
.'- You can visit [Online Consultation](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2) for online assistance.'."\n"
.'- You can try this feature for free on the Visual Intelligence Open Platform. Click [Try Now](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeTicketInvoice) to experience this feature or purchase it online.'."\n"
.'- For questions about Alibaba Cloud Visual Intelligence Open Platform API integration or usage, join the DingTalk group (23109592) to contact us.'."\n"
."\n"
.'## Common scenarios'."\n"
."\n"
.'- Invoice verification: Intelligently recognizes four key fields — invoice code, invoice number, amount, and invoice date — to quickly connect to the tax authority invoice verification platform for authenticity checks. This effectively reduces labor costs and controls business risks.'."\n"
.'- Billing records: Automatically recognizes and enters information such as invoice amount and invoice date. This feature can be applied to financial bookkeeping scenarios to help users quickly enter billing information, reduce manual input costs, and improve user experience.'."\n"
."\n"
.'## Advantages'."\n"
."\n"
.'- Full-field recognition: Supports structured recognition of key fields on VAT roll invoices, meeting the field recognition requirements in scenarios such as financial and tax reimbursement.'."\n"
.'- Cost savings: After invoice information is recognized, the information is entered as needed, effectively reducing manual input costs and improving user experience.'."\n"
."\n"
.'## Integration guide'."\n"
.'1. Register an Alibaba Cloud account: Go to the [Alibaba Cloud official website](https://www.aliyun.com), click **Register Now** in the upper-right corner, and follow the instructions to complete account registration.'."\n"
.'2. Activate the service: Make sure you have activated the [OCR service](https://vision.aliyun.com/ocr). If you have not activated the service, [activate it now](https://common-buy.aliyun.com/?commodityCode=viapi_ocr_public_cn#/open).'."\n"
.'3. Create an AccessKey pair: Make sure you have [created an AccessKey pair](~~175144~~). If you are using a RAM user AccessKey, grant the AliyunVIAPIFullAccess permission to the RAM user. For more information, see [RAM authorization](~~145025~~).'."\n"
.'4. Online debugging (optional): You can use [OpenAPI Explorer](https://next.api.aliyun.com/api/ocr/2019-12-30/RecognizeTicketInvoice?lang=JAVA&sdkStyle=dara¶ms=%7B%22ImageURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Focr%2FRecognizeTicketInvoice%2FRecognizeTicketInvoice1.png%22%7D&tab=DEMO) to debug this feature online, view complete sample code and SDK dependency information, or download the complete project.'."\n"
.'5. Development integration steps:'."\n"
.'- Select the SDK language you want to use from the [SDK overview](~~145033~~).'."\n"
.'- Find the SDK package for the OCR (ocr) category in the corresponding SDK documentation and install it.'."\n"
.'- Modify the sample code provided in the references as needed and invoke the operation.'."\n"
."\n"
.'6. Sample code: For sample code in commonly used languages, see [VAT roll invoice recognition sample code](~~600159~~).'."\n"
."\n"
.'7. Direct client calls: Common client call methods for this feature include the following.'."\n"
.'- [Direct call from web frontend](~~467779~~)'."\n"
.'- [Direct call from mini programs](~~467780~~)'."\n"
.'- [Direct call from Android](~~467781~~)'."\n"
.'- [Direct call from iOS](~~467782~~).'."\n"
."\n"
.'## Input limits'."\n"
.'- Image format: JPEG, JPG, PNG, or BMP.'."\n"
.'- Image size: up to 4 MB.'."\n"
.'- Image resolution: greater than 15 × 15 pixels and less than 4096 × 4096 pixels.'."\n"
.'- The URL cannot contain Chinese characters.'."\n"
."\n"
.'## Billing description'."\n"
.'For information about the billable methods and pricing of VAT roll invoice recognition, see [Billing overview](~~202631~~).'."\n"
."\n"
.'> The debugging operation below is a paid operation. To try it for free, go to the [Experience Center](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeTicketInvoice).',
'responseParamsDescription' => '## SDK reference'."\n"
.'For the VAT roll invoice recognition feature under the Alibaba Cloud Visual AI OCR category, we recommend that you use the SDK. The SDK supports multiple programming languages. When calling the SDK, select the SDK package for the OCR (ocr) category. File parameters support local files and arbitrary URLs through SDK calls. For more information, see [SDK overview](~~145033~~).'."\n"
."\n"
.'## Sample code'."\n"
.'For sample code in commonly used languages, see [VAT roll invoice recognition sample code](~~600159~~).',
'extraInfo' => '## Error codes'."\n"
.'For error codes of VAT roll invoice recognition, see [Common error codes](~~146772~~).'."\n"
."\n"
.'## Security notice'."\n"
.'- Make sure that the uploaded images or files comply with applicable laws and regulations.'."\n"
.'- Temporary files uploaded through the debugging experience are valid for 1 hour and are automatically deleted by the system after 24 hours.',
'changeSet' => [
['createdAt' => '2022-09-27T09:39:29.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2021-07-01T01:39:15.000Z', 'description' => 'OpenAPI offline'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeTicketInvoice'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeTicketInvoice',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'RecognizeTrainTicket' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'ImageURL',
'in' => 'formData',
'schema' => ['description' => 'The URL of the image. We recommend that you use an Object Storage Service (OSS) link in the Shanghai region. If the file is stored locally or the OSS link is not in the Shanghai region, see [File URL processing](~~155645~~).', 'type' => 'string', 'required' => true, 'isFileTransferUrl' => true, 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeTrainTicket/RecognizeTrainTicket3.jpg', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'BE4B73EA-30A0-4573-A548-3A101B34641A', 'title' => ''],
'Data' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'Price' => ['description' => 'The ticket price.', 'type' => 'number', 'format' => 'float', 'example' => '104.5', 'title' => ''],
'Destination' => ['description' => 'The destination station.', 'type' => 'string', 'example' => '南京南站', 'title' => ''],
'DepartureStation' => ['description' => 'The departure station.', 'type' => 'string', 'example' => '苏州站', 'title' => ''],
'Date' => ['description' => 'The travel date and time.', 'type' => 'string', 'example' => '2017年08月05日22:09开', 'title' => ''],
'Number' => ['description' => 'The train number.', 'type' => 'string', 'example' => 'G7350', 'title' => ''],
'Seat' => ['description' => 'The carriage and seat number.', 'type' => 'string', 'example' => '04车13A号', 'title' => ''],
'Name' => ['description' => 'The passenger name.', 'type' => 'string', 'example' => '帅帅', 'title' => ''],
'Level' => ['description' => 'The seat class.', 'type' => 'string', 'example' => '二等座', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => 'The parameter is invalid. Please check again.'],
],
403 => [
['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => 'An error occurred while performing authorization. Please check your RAM configuration.'],
],
408 => [
['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"BE4B73EA-30A0-4573-A548-3A101B34641A\\",\\n \\"Data\\": {\\n \\"Price\\": 104.5,\\n \\"Destination\\": \\"南京南站\\",\\n \\"DepartureStation\\": \\"苏州站\\",\\n \\"Date\\": \\"2017年08月05日22:09开\\",\\n \\"Number\\": \\"G7350\\",\\n \\"Seat\\": \\"04车13A号\\",\\n \\"Name\\": \\"帅帅\\",\\n \\"Level\\": \\"二等座\\"\\n }\\n}","type":"json"}]',
'title' => 'Train ticket recognition',
'summary' => 'This topic describes the syntax and examples of the RecognizeTrainTicket operation.',
'description' => '## Feature description'."\n"
.'The train ticket recognition feature performs structured recognition on train tickets and extracts eight key fields: travel date, departure station, destination station, seat class, passenger name, train number, ticket price, and carriage and seat number.'."\n"
."\n"
.'> - You can visit [Online Consultation](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2) for online assistance.'."\n"
.'- You can try this feature for free on the Vision Intelligence Open Platform. Click [Try Now](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeTrainTicket) to experience this feature or purchase it online.'."\n"
.'- For questions about API integration and usage of Alibaba Cloud Vision Intelligence Open Platform, join the DingTalk group (23109592) to contact us.'."\n"
."\n"
.'## Integration guide'."\n"
.'1. Register an Alibaba Cloud account: Go to the [Alibaba Cloud official website](https://www.aliyun.com), click **Register Now** in the upper-right corner, and follow the instructions to complete the registration.'."\n"
.'2. Activate the service: Make sure you have activated the [OCR service](https://vision.aliyun.com/ocr). If you have not activated the service, [activate it now](https://common-buy.aliyun.com/?commodityCode=viapi_ocr_public_cn#/open).'."\n"
.'3. Create an AccessKey pair: Make sure you have [created an AccessKey pair](~~175144~~). If you are using an AccessKey pair of a RAM user, grant the AliyunVIAPIFullAccess permission to the RAM user. For more information, see [RAM authorization](~~145025~~).'."\n"
.'4. Online debugging (optional): You can use [OpenAPI Explorer](https://next.api.aliyun.com/api/ocr/2019-12-30/RecognizeTrainTicket?lang=JAVA&sdkStyle=dara¶ms=%7B%22ImageURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Focr%2FRecognizeTrainTicket%2FRecognizeTrainTicket1.jpg%22%7D&tab=DEMO) to debug this feature online, view complete sample code and SDK dependency information, or download the complete project.'."\n"
.'5. Development integration steps:'."\n"
.'- Select the SDK language you want to use from [SDK overview](~~145033~~).'."\n"
.'- Find and install the SDK package for the OCR (ocr) category in the corresponding SDK documentation.'."\n"
.'- Modify the sample code provided in the References as needed and invoke the operation.'."\n"
."\n"
.'6. Direct client calls: Common client call methods for this feature include the following.'."\n"
.'- [Direct call from web frontend](~~467779~~)'."\n"
.'- [Direct call from mini programs](~~467780~~)'."\n"
.'- [Direct call from Android](~~467781~~)'."\n"
.'- [Direct call from iOS](~~467782~~).'."\n"
."\n"
.'## Input limits'."\n"
.'- Image format: JPEG, JPG, PNG, BMP, or GIF.'."\n"
.'- Image size: up to 3 MB.'."\n"
.'- Image resolution: No resolution limit is imposed. However, excessively high resolutions may cause the API to time out. The timeout period is 5 seconds.'."\n"
.'- The URL cannot contain Chinese characters.'."\n"
."\n"
.'## Billing description'."\n"
.'For information about the billable methods and pricing of train ticket recognition, see [Billing overview](~~202631~~).'."\n"
.'> The debugging operation below is a paid operation. For a free trial, go to [Experience Center](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeTrainTicket).',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '## SDK reference'."\n"
.'For the train ticket recognition feature under the Alibaba Cloud Vision AI OCR category, we recommend that you use the SDK. The SDK supports multiple programming languages. When calling the operation, select the SDK package for the OCR (ocr) category. File parameters passed through the SDK support both local files and arbitrary URLs. For more information, see [SDK overview](~~145033~~).',
'extraInfo' => '## Error codes'."\n"
.'For error codes of train ticket recognition, see [Common error codes](~~146772~~).'."\n"
."\n"
.'## Security notice'."\n"
.'- Make sure that the uploaded images or files comply with applicable laws and regulations.'."\n"
.'- Temporary files uploaded through the debugging experience are valid for 1 hour and are automatically deleted by the system after 24 hours.',
'changeSet' => [
['createdAt' => '2024-02-23T08:01:25.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '18', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeTrainTicket'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeTrainTicket',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'RecognizeVATInvoice' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'FileURL',
'in' => 'formData',
'schema' => ['description' => 'The URL of the image. We recommend that you use an OSS URL in the China (Shanghai) region. If the file is stored locally or in an OSS bucket outside the China (Shanghai) region, see [File URL processing](~~155645~~).', 'type' => 'string', 'required' => true, 'isFileTransferUrl' => true, 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeVATInvoice/RecognizeVATInvoice3.jpg', 'title' => ''],
],
[
'name' => 'FileType',
'in' => 'formData',
'schema' => [
'description' => 'The input image format parameter. Set this parameter to `jpg`.',
'enumValueTitles' => ['jpg' => 'jpg'],
'type' => 'string',
'required' => true,
'enum' => ['jpg'],
'example' => 'jpg',
'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '1',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '56A10D65-ECE0-59DE-9775-F6494D2AF13B', 'title' => ''],
'Data' => [
'description' => 'The returned result data.',
'type' => 'object',
'properties' => [
'Box' => [
'description' => 'The bounding boxes of key fields on the invoice. The format is \\[X coordinate of the upper-left corner, Y coordinate of the upper-left corner, X coordinate of the lower-right corner, Y coordinate of the lower-right corner].',
'type' => 'object',
'properties' => [
'PayerRegisterNoes' => [
'description' => '1',
'type' => 'array',
'items' => ['description' => 'The bounding box of the buyer\'s taxpayer identification number.', 'type' => 'number', 'format' => 'float', 'example' => '358,262,567,290', 'title' => ''],
'title' => '',
'example' => '',
],
'PayeeAddresses' => [
'description' => '1',
'type' => 'array',
'items' => ['description' => 'The bounding box of the buyer\'s address and phone number.', 'type' => 'number', 'format' => 'float', 'example' => '355,909,734,939', 'title' => ''],
'title' => '',
'example' => '',
],
'PayeeBankNames' => [
'description' => '1',
'type' => 'array',
'items' => ['description' => 'The bounding box of the buyer\'s bank name and account number.', 'type' => 'number', 'format' => 'float', 'example' => '354,947,938,977', 'title' => ''],
'title' => '',
'example' => '',
],
'Checkers' => [
'description' => '1',
'type' => 'array',
'items' => ['description' => 'The bounding box of the reviewer.', 'type' => 'number', 'format' => 'float', 'example' => '589,1003,662,1033', 'title' => ''],
'title' => '',
'example' => '',
],
'TaxAmounts' => [
'description' => '1',
'type' => 'array',
'items' => ['description' => 'The bounding box of the total tax amount.', 'type' => 'number', 'format' => 'float', 'example' => '1606,721,1658,748', 'title' => ''],
'title' => '',
'example' => '',
],
'SumAmounts' => [
'description' => '1',
'type' => 'array',
'items' => ['description' => 'The bounding box of the total amount (tax inclusive).', 'type' => 'number', 'format' => 'float', 'example' => '32,774,629,805', 'title' => ''],
'title' => '',
'example' => '',
],
'Clerks' => [
'description' => '1',
'type' => 'array',
'items' => ['description' => 'The bounding box of the invoice issuer.', 'type' => 'number', 'format' => 'float', 'example' => '986,1003,1060,1033', 'title' => ''],
'title' => '',
'example' => '',
],
'InvoiceNoes' => [
'description' => '1',
'type' => 'array',
'items' => ['description' => 'The bounding box of the invoice number.', 'type' => 'number', 'format' => 'float', 'example' => '1377,78,1478,105', 'title' => ''],
'title' => '',
'example' => '',
],
'InvoiceDates' => [
'description' => '1',
'type' => 'array',
'items' => ['description' => 'The bounding box of the invoice date.', 'type' => 'number', 'format' => 'float', 'example' => '1376,115,1596,145', 'title' => ''],
'title' => '',
'example' => '',
],
'InvoiceCodes' => [
'description' => '1',
'type' => 'array',
'items' => ['description' => 'The bounding box of the invoice code.', 'type' => 'number', 'format' => 'float', 'example' => '1378,41,1520,68', 'title' => ''],
'title' => '',
'example' => '',
],
'InvoiceFakeCodes' => [
'description' => '1',
'type' => 'array',
'items' => ['description' => 'The bounding box of the verification code.', 'type' => 'number', 'format' => 'float', 'example' => '1376,153,1640,181', 'title' => ''],
'title' => '',
'example' => '',
],
'PayerNames' => [
'description' => '1',
'type' => 'array',
'items' => ['description' => 'The bounding box of the buyer\'s name.', 'type' => 'number', 'format' => 'float', 'example' => '354,222,700,255', 'title' => ''],
'title' => '',
'example' => '',
],
'PayerBankNames' => [
'description' => '1',
'type' => 'array',
'items' => ['description' => 'The bounding box of the seller\'s bank name and account number.', 'type' => 'number', 'format' => 'float', 'example' => '0,0,0,0', 'title' => ''],
'title' => '',
'example' => '',
],
'Payees' => [
'description' => '1',
'type' => 'array',
'items' => ['description' => 'The bounding box of the payee.', 'type' => 'number', 'format' => 'float', 'example' => '189,1003,264,1033', 'title' => ''],
'title' => '',
'example' => '',
],
'PayeeNames' => [
'description' => '1',
'type' => 'array',
'items' => ['description' => 'The bounding box of the buyer\'s name.', 'type' => 'number', 'format' => 'float', 'example' => '356,833,633,865', 'title' => ''],
'title' => '',
'example' => '',
],
'InvoiceAmounts' => [
'description' => '1',
'type' => 'array',
'items' => ['description' => 'The bounding box of the total amount (tax inclusive).', 'type' => 'number', 'format' => 'float', 'example' => '1364, 776,1438,804', 'title' => ''],
'title' => '',
'example' => '',
],
'WithoutTaxAmounts' => [
'description' => '1',
'type' => 'array',
'items' => ['description' => 'The bounding box of the total amount (tax exclusive).', 'type' => 'number', 'format' => 'float', 'example' => '1265,721,1339,749', 'title' => ''],
'title' => '',
'example' => '',
],
'PayerAddresses' => [
'description' => '1',
'type' => 'array',
'items' => ['description' => 'The bounding box of the seller\'s address and phone number.', 'type' => 'number', 'format' => 'float', 'example' => '0,0,0,0', 'title' => ''],
'title' => '',
'example' => '',
],
'PayeeRegisterNoes' => [
'description' => '1',
'type' => 'array',
'items' => ['description' => 'The bounding box of the seller\'s taxpayer identification number.', 'type' => 'number', 'format' => 'float', 'example' => '356,873,571,902', 'title' => ''],
'title' => '',
'example' => '',
],
'ItemNames' => [
'description' => '1',
'type' => 'array',
'items' => ['description' => 'The bounding box of the goods or taxable services/service names.', 'type' => 'integer', 'format' => 'int32', 'example' => '0,0,0,0', 'title' => ''],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'Content' => [
'description' => 'The recognition results of each field on the invoice.',
'type' => 'object',
'properties' => [
'PayerAddress' => ['description' => 'The buyer\'s address and phone number.', 'type' => 'string', 'example' => '浙江省杭州市西湖区杭大路9号聚龙大厦西区15-18楼0571-87901580', 'title' => ''],
'PayeeRegisterNo' => ['description' => 'The seller\'s taxpayer identification number.', 'type' => 'string', 'example' => '91420200000123403', 'title' => ''],
'PayeeBankName' => ['description' => 'The seller\'s bank name and account number.', 'type' => 'string', 'example' => '中国银行浙江省分行35845832****', 'title' => ''],
'InvoiceNo' => ['description' => 'The invoice number.', 'type' => 'string', 'example' => '03753869', 'title' => ''],
'PayerRegisterNo' => ['description' => 'The buyer\'s taxpayer identification number.', 'type' => 'string', 'example' => '91420200000123403', 'title' => ''],
'Checker' => ['description' => 'The reviewer.', 'type' => 'string', 'example' => '张三', 'title' => ''],
'TaxAmount' => ['description' => 'The total tax amount.', 'type' => 'string', 'example' => '9.52', 'title' => ''],
'InvoiceDate' => ['description' => 'The invoice date.', 'type' => 'string', 'example' => '20190415', 'title' => ''],
'WithoutTaxAmount' => ['description' => 'The total amount (tax exclusive).', 'type' => 'string', 'example' => '190.48', 'title' => ''],
'InvoiceAmount' => ['description' => 'The total amount including tax (in lowercase).', 'type' => 'string', 'example' => '200.00', 'title' => ''],
'AntiFakeCode' => ['description' => 'The verification code.', 'type' => 'string', 'example' => '02702870934284730434', 'title' => ''],
'PayerName' => ['description' => 'The buyer\'s name.', 'type' => 'string', 'example' => '三号技术有限责任公司', 'title' => ''],
'Payee' => ['description' => 'The payee.', 'type' => 'string', 'example' => '张三', 'title' => ''],
'SumAmount' => ['description' => 'The total amount including tax (in uppercase).', 'type' => 'string', 'example' => '87', 'title' => ''],
'PayerBankName' => ['description' => 'The buyer\'s bank name and account number.', 'type' => 'string', 'example' => '6221************1234', 'title' => ''],
'Clerk' => ['description' => 'The invoice issuer.', 'type' => 'string', 'example' => '张三', 'title' => ''],
'PayeeName' => ['description' => 'The seller\'s name.', 'type' => 'string', 'example' => '上海机场(集团)有限公司', 'title' => ''],
'PayeeAddress' => ['description' => 'The seller\'s address and phone number.', 'type' => 'string', 'example' => '上海虹桥机场迎宾二路161号22342185', 'title' => ''],
'InvoiceCode' => ['description' => 'The invoice code.', 'type' => 'string', 'example' => '031001600311', 'title' => ''],
'ItemName' => [
'description' => '1',
'type' => 'array',
'items' => ['description' => 'The goods or taxable services/service names.', 'type' => 'string', 'example' => '餐饮服务', 'title' => ''],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => 'The parameter is invalid. Please check again.'],
],
403 => [
['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => 'An error occurred while performing authorization. Please check your RAM configuration.'],
],
408 => [
['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"56A10D65-ECE0-59DE-9775-F6494D2AF13B\\",\\n \\"Data\\": {\\n \\"Box\\": {\\n \\"PayerRegisterNoes\\": [\\n 0\\n ],\\n \\"PayeeAddresses\\": [\\n 0\\n ],\\n \\"PayeeBankNames\\": [\\n 0\\n ],\\n \\"Checkers\\": [\\n 0\\n ],\\n \\"TaxAmounts\\": [\\n 0\\n ],\\n \\"SumAmounts\\": [\\n 0\\n ],\\n \\"Clerks\\": [\\n 0\\n ],\\n \\"InvoiceNoes\\": [\\n 0\\n ],\\n \\"InvoiceDates\\": [\\n 0\\n ],\\n \\"InvoiceCodes\\": [\\n 0\\n ],\\n \\"InvoiceFakeCodes\\": [\\n 0\\n ],\\n \\"PayerNames\\": [\\n 0\\n ],\\n \\"PayerBankNames\\": [\\n 0\\n ],\\n \\"Payees\\": [\\n 0\\n ],\\n \\"PayeeNames\\": [\\n 0\\n ],\\n \\"InvoiceAmounts\\": [\\n 0\\n ],\\n \\"WithoutTaxAmounts\\": [\\n 0\\n ],\\n \\"PayerAddresses\\": [\\n 0\\n ],\\n \\"PayeeRegisterNoes\\": [\\n 0\\n ],\\n \\"ItemNames\\": [\\n 0\\n ]\\n },\\n \\"Content\\": {\\n \\"PayerAddress\\": \\"浙江省杭州市西湖区杭大路9号聚龙大厦西区15-18楼0571-87901580\\",\\n \\"PayeeRegisterNo\\": \\"91420200000123403\\",\\n \\"PayeeBankName\\": \\"中国银行浙江省分行35845832****\\",\\n \\"InvoiceNo\\": \\"03753869\\",\\n \\"PayerRegisterNo\\": \\"91420200000123403\\",\\n \\"Checker\\": \\"张三\\",\\n \\"TaxAmount\\": \\"9.52\\",\\n \\"InvoiceDate\\": \\"20190415\\",\\n \\"WithoutTaxAmount\\": \\"190.48\\",\\n \\"InvoiceAmount\\": \\"200.00\\",\\n \\"AntiFakeCode\\": \\"02702870934284730434\\",\\n \\"PayerName\\": \\"三号技术有限责任公司\\",\\n \\"Payee\\": \\"张三\\",\\n \\"SumAmount\\": \\"87\\",\\n \\"PayerBankName\\": \\"6221************1234\\",\\n \\"Clerk\\": \\"张三\\",\\n \\"PayeeName\\": \\"上海机场(集团)有限公司\\",\\n \\"PayeeAddress\\": \\"上海虹桥机场迎宾二路161号22342185\\",\\n \\"InvoiceCode\\": \\"031001600311\\",\\n \\"ItemName\\": [\\n \\"餐饮服务\\"\\n ]\\n }\\n }\\n}","type":"json"}]',
'title' => 'VAT invoice recognition',
'summary' => 'This topic describes the syntax and examples of the VAT invoice recognition operation RecognizeVATInvoice.',
'description' => '## Feature description'."\n"
.'The VAT invoice recognition feature recognizes keyword fields on VAT invoices (electronic invoicing and paper invoices), including the verification code, reviewer, invoice issuer, invoice code, and payee.'."\n"
."\n"
.'> - The VAT invoice recognition operation only recognizes text content on invoices. It does not verify invoice authenticity.'."\n"
.'- You can visit [Online Consultation](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2) for online assistance.'."\n"
.'- You can try this feature for free on the Vision Intelligence Open Platform. Click [Try Now](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeVATInvoice) to experience this feature or purchase it online.'."\n"
.'- For questions about Alibaba Cloud Vision Intelligence Open Platform visual AI API integration or usage, join the DingTalk group (23109592) to contact us.'."\n"
."\n"
.'## Integration guide'."\n"
.'1. Register an Alibaba Cloud account: Go to the [Alibaba Cloud website](https://www.aliyun.com), click **Register Now** in the upper-right corner, and follow the instructions to complete registration.'."\n"
.'2. Activate the service: Make sure you have activated the [OCR service](https://vision.aliyun.com/ocr). If you have not activated the service, [activate it now](https://common-buy.aliyun.com/?commodityCode=viapi_ocr_public_cn#/open).'."\n"
.'3. Create an AccessKey pair: Make sure you have [created an AccessKey pair](~~175144~~). If you are using a RAM user AccessKey, grant the AliyunVIAPIFullAccess permission to the RAM user. For more information, see [RAM authorization](~~145025~~).'."\n"
.'4. Online debugging (optional): You can use [OpenAPI Explorer](https://next.api.aliyun.com/api/ocr/2019-12-30/RecognizeVATInvoice?lang=JAVA&sdkStyle=dara¶ms=%7B%22FileURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Focr%2FRecognizeVATInvoice%2FRecognizeVATInvoice1.jpg%22%2C%22FileType%22%3A%22jpg%22%7D&tab=DEMO) to debug this operation online, view complete sample code and SDK dependency information, or download the complete project.'."\n"
.'5. Development integration steps:'."\n"
.'- Select the SDK language you want to use from the [SDK overview](~~145033~~).'."\n"
.'- Find the SDK package for the OCR (ocr) category in the corresponding SDK documentation and install it.'."\n"
.'- Modify the sample code provided in the References as needed and invoke the operation.'."\n"
."\n"
.'6. Sample code: For sample code in commonly used languages, see [VAT invoice recognition sample code](~~600152~~).'."\n"
."\n"
.'7. Direct client calls: Common client call methods for this feature include the following.'."\n"
.'- [Direct call from web frontend](~~467779~~)'."\n"
.'- [Direct call from mini programs](~~467780~~)'."\n"
.'- [Direct call from Android](~~467781~~)'."\n"
.'- [Direct call from iOS](~~467782~~).'."\n"
."\n"
.'## Input limits'."\n"
.'- Image format: PNG, JPG, JPEG, BMP, WebP, or PDF.'."\n"
.'- Image size: up to 3 MB.'."\n"
.'- Image resolution: greater than 15 × 15 pixels and less than 4096 × 4096 pixels.'."\n"
.'- The URL cannot contain Chinese characters.'."\n"
."\n"
.'## Billing description'."\n"
.'For information about the billable methods and pricing of VAT invoice recognition, see [Billing overview](~~202631~~).'."\n"
."\n"
.'> The debugging operation below is a paid operation. For a free trial, go to the [Experience Center](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeVATInvoice).',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '## SDK reference'."\n"
.'We recommend that you use an SDK to call the VAT invoice recognition operation under the OCR category of Alibaba Cloud Vision AI. The SDK supports multiple programming languages. When calling the operation, select the SDK package for the OCR (ocr) category. File parameters support local files and arbitrary URLs through SDK calls. For more information, see [SDK overview](~~145033~~).'."\n"
."\n"
.'## Sample code'."\n"
.'For sample code in commonly used languages, see [VAT invoice recognition sample code](~~600152~~).',
'extraInfo' => '## Error codes'."\n"
.'For error codes of VAT invoice recognition, see [Common error codes](~~146772~~).'."\n"
."\n"
.'## Security notice'."\n"
.'- Ensure that the uploaded images or files comply with applicable laws and regulations.'."\n"
.'- Temporary files uploaded through the debugging experience are valid for 1 hour and are automatically deleted by the system after 24 hours.',
'changeSet' => [
['createdAt' => '2023-09-14T08:05:59.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2022-09-30T07:16:55.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeVATInvoice'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeVATInvoice',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'RecognizeVINCode' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'ImageURL',
'in' => 'query',
'schema' => ['description' => 'The URL of the image. We recommend that you use an Object Storage Service (OSS) link in the Shanghai region. If the file is stored locally or the OSS link is not in the Shanghai region, see [File URL processing](~~155645~~).', 'type' => 'string', 'required' => true, 'isFileTransferUrl' => true, 'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/ocr/RecognizeVINCode/vin1.jpg', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '911FC8CF-CC27-477E-BE3B-7ED77DF4DFE0', 'title' => ''],
'Data' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'VinCode' => ['description' => 'The recognized VIN code of the vehicle.', 'type' => 'string', 'example' => 'LVBB2FAF777999888', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => 'The parameter is invalid. Please check again.'],
],
403 => [
['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => 'An error occurred while performing authorization. Please check your RAM configuration.'],
],
408 => [
['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"911FC8CF-CC27-477E-BE3B-7ED77DF4DFE0\\",\\n \\"Data\\": {\\n \\"VinCode\\": \\"LVBB2FAF777999888\\"\\n }\\n}","type":"json"}]',
'title' => 'VIN code recognition',
'summary' => 'Describes the syntax and provides examples for the RecognizeVINCode operation.',
'description' => '## Description'."\n"
.'The VIN code recognition feature identifies vehicle identification number (VIN) codes and returns the VIN code values.'."\n"
."\n"
.'> - You can join [online consultation](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2) for human assistance.'."\n"
.'- You can try this feature for free on the Vision Intelligence Open Platform. Click [Try Now](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeVINCode) to experience this feature or purchase it online.'."\n"
.'- To get help with API integration, usage, or other questions about the Alibaba Cloud Vision Intelligence Open Platform, join the DingTalk group (23109592) to contact us.'."\n"
."\n"
.'## Getting started'."\n"
.'1. Create an Alibaba Cloud account: Go to the [Alibaba Cloud official website](https://www.aliyun.com), click **Register Now** in the upper-right corner, and follow the instructions to create an account.'."\n"
.'2. Activate the service: Make sure you have activated the [OCR service](https://vision.aliyun.com/ocr). If you have not activated the service, [activate it now](https://common-buy.aliyun.com/?commodityCode=viapi_ocr_public_cn#/open).'."\n"
.'3. Create an AccessKey pair: Make sure you have [created an AccessKey pair](~~175144~~). If you are using an AccessKey pair of a RAM user, grant the AliyunVIAPIFullAccess permission to the RAM user. For more information, see [RAM authorization](~~145025~~).'."\n"
.'4. Online debugging (optional): You can use [OpenAPI Explorer](https://next.api.aliyun.com/api/ocr/2019-12-30/RecognizeVINCode?lang=JAVA&sdkStyle=dara¶ms=%7B%22ImageURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Focr%2FRecognizeVINCode%2Fvin1.jpg%22%7D&tab=DEMO) to debug this operation online, view complete sample code and SDK dependency information, or download the complete project.'."\n"
.'5. Development integration steps:'."\n"
.'- Select the SDK language you want to use from the [SDK overview](~~145033~~).'."\n"
.'- Find the SDK package for the OCR (ocr) category in the corresponding SDK documentation and install it.'."\n"
.'- Modify the sample code provided in the References as needed and invoke the operation.'."\n"
."\n"
.'6. Sample code: For sample code in commonly used languages, see [VIN code recognition sample code](~~605238~~).'."\n"
."\n"
.'7. Direct client calls: Common client call methods for this feature include the following.'."\n"
.'- [Direct call from web frontend](~~467779~~)'."\n"
.'- [Direct call from mini programs](~~467780~~)'."\n"
.'- [Direct call from Android](~~467781~~)'."\n"
.'- [Direct call from iOS](~~467782~~).'."\n"
."\n"
.'## Input limits'."\n"
.'- Image format: JPEG, JPG, PNG, BMP, or GIF.'."\n"
.'- Image size: up to 3 MB.'."\n"
.'- Image resolution: No limit on image resolution. However, excessively high resolution may cause the API to time out. The timeout period is 5 seconds.'."\n"
.'- The URL cannot contain Chinese characters.'."\n"
."\n"
.'## Billing description'."\n"
.'For information about the billable methods and pricing of VIN code recognition, see [Billing overview](~~202631~~).'."\n"
."\n"
.'> The debugging operation below is a paid operation. For a free trial, go to the [Experience Center](https://vision.aliyun.com/experience/detail?&tagName=ocr&children=RecognizeVINCode).',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '## SDK reference'."\n"
.'To call the VIN code recognition feature under the Alibaba Cloud Vision AI OCR category, use the SDK. Multiple programming languages are supported. Select the SDK package for the OCR (ocr) category. The SDK supports local files and arbitrary URLs for file parameters. For more information, see [SDK overview](~~145033~~).'."\n"
."\n"
.'## Sample code'."\n"
.'For sample code in commonly used languages, see [VIN code recognition sample code](~~605238~~).',
'extraInfo' => '## Error codes'."\n"
.'For error codes of VIN code recognition, see [Common error codes](~~146772~~).'."\n"
."\n"
.'## Security notice'."\n"
.'- Make sure that the uploaded images or files comply with applicable laws and regulations.'."\n"
.'- Temporary files uploaded through the debugging experience are valid for 1 hour and are automatically deleted by the system after 24 hours.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeVINCode'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeVINCode',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
],
'endpoints' => [
['regionId' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'ocr.cn-shanghai.aliyuncs.com', 'endpoint' => 'ocr.cn-shanghai.aliyuncs.com', 'vpc' => 'ocr-vpc.cn-shanghai.aliyuncs.com'],
],
'errorCodes' => [
['code' => 'AuthFailed', 'message' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'http_code' => 403, 'description' => 'An error occurred while performing authorization. Please check your RAM configuration.'],
['code' => 'ClientError.IllegalArgument', 'message' => '请检查参数,如参数值所代表的数据库是否存在', 'http_code' => 400, 'description' => ''],
['code' => 'EntityNotExist.Role', 'message' => '没有Ram权限,请联系主账号给你添加AliyunVIAPIFullAccess权限,操作流程可参考https://help.aliyun.com/document_detail/145025.htm', 'http_code' => 400, 'description' => ''],
['code' => 'IllegalUrlParameter', 'message' => 'parameter url is illegal', 'http_code' => 400, 'description' => ''],
['code' => 'InternalError', 'message' => 'An error occurred to the algorithm service.', 'http_code' => 500, 'description' => ''],
['code' => 'InternalError.Algo', 'message' => '算法服务报错,请稍后重试', 'http_code' => 500, 'description' => ''],
['code' => 'InternalError.Busy', 'message' => 'Server busy.', 'http_code' => 500, 'description' => ''],
['code' => 'InternalError.Decode', 'message' => 'Failed to decode the image.', 'http_code' => 500, 'description' => ''],
['code' => 'InternalError.Env', 'message' => 'Failed to initilize the environment.', 'http_code' => 500, 'description' => ''],
['code' => 'InternalError.Model', 'message' => 'Failed to load the model.', 'http_code' => 500, 'description' => ''],
['code' => 'InternalError.Process', 'message' => 'An error occurred during inference.', 'http_code' => 500, 'description' => ''],
['code' => 'InternalError.Remote', 'message' => 'The request processing has failed due to some unknown error.', 'http_code' => 500, 'description' => ''],
['code' => 'InternalError.Server', 'message' => 'The request processing has failed due to some unknown error.', 'http_code' => 500, 'description' => ''],
['code' => 'InternalError.Timeout', 'message' => '算法服务报错,请稍后重试', 'http_code' => 500, 'description' => ''],
['code' => 'InternalServerError', 'message' => 'A server error occurred while processing your request.', 'http_code' => 500, 'description' => ''],
['code' => 'InvalidAccessKeyId.Inactive', 'message' => 'AccessKeyId非法,请检查AccessKeyId是否被禁用,或者AccessKeyId和AccessKeySecret是否填写正确。', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidAccessKeyId.NotFound', 'message' => 'access key not found', 'http_code' => 404, 'description' => ''],
['code' => 'InvalidAccessKeySecret', 'message' => 'AccessKeyId或AccessKeySecret填写错误,请检查AccessKeyId和AccessKeySecret是否填写正确。', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidAction.NotFound', 'message' => '能力未找到,请检查类目与能力是否匹配,检查访问域名与能力是否匹配,关于访问域名可参考:https://help.aliyun.com/document_detail/143103.htm。SDK接入请参考:https://help.aliyun.com/document_detail/145033.html,选择合适编程语言根据实例代码作相关修改进行接入。', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidApi.ForbiddenInvoke', 'message' => '调用受限,请检查您调用的能力是否为受限能力,受限能力需要在控制台https://vision.console.aliyun.com/找到相应能力申请经过审批之后才能调用。如非上述情况,请检查账号是否欠费', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidApi.NotPurchase', 'message' => 'specified api is not purchase', 'http_code' => 403, 'description' => ''],
['code' => 'InvalidApi.OutOfService', 'message' => '产品未开通,请开通产品:https://common-buy.aliyun.com/?commodityCode=viapi_ocr_public_cn#/open', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidFile.Content', 'message' => '请参考算法文档检查文件内容,更换包含符合算法要求的', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidFile.Decode', 'message' => '请检查文件是否能够正常打开', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidFile.Download', 'message' => '文件无法下载,请检查链接是否可访问和本地网络情况 - 非上海OSS文件链接请参考:https://help.aliyun.com/document_detail/155645.html', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidFile.REGION', 'message' => '文件链接地域不对,非上海OSS文件链接请参考:https://help.aliyun.com/document_detail/155645.html', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidFile.Resolution', 'message' => '文件分辨率超出限制,请检查文件分辨率和内容,修改文件分辨率后重试', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidFile.Type', 'message' => '文件类型错误,请检查文件类型 - 请参考算法API文档,使用算法支持的文件类型', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidFile.Unsafe', 'message' => 'Risky file URL.', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidFile.URL', 'message' => '文件无法下载,请检查链接是否可访问和本地网络情况 - 非上海OSS文件链接请参考:https://help.aliyun.com/document_detail/155645.html', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidImage.Category', 'message' => 'The input image does not match the current service.', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidImage.Content', 'message' => 'image content is invalid', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidImage.Decode', 'message' => '请检查图片是否能够正常打开', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidImage.Download', 'message' => 'Failed to download the file.', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidImage.Gif', 'message' => 'Failed to open the GIF image.', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidImage.NotFoundFace', 'message' => '图像中没找到人脸,请检查您的图像中是否包含人脸或人脸太小', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidImage.Region', 'message' => 'The URL format of the file is invalid.', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidImage.Resolution', 'message' => '文件分辨率超出限制,请检查文件分辨率和内容,修改文件分辨率后重试', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidImage.Timeout', 'message' => '图片下载超时,请检查链接是否可访问和本地网络情况 - 非上海OSS图片链接请参考:https://help.aliyun.com/document_detail/155645.html。请检查OSS链接是否过期等。', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidImage.Type', 'message' => '图片类型错误,请检查图片类型 - 请参考算法API文档,使用算法支持的图片类型', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidImage.Unsafe', 'message' => 'Risky file URL.', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidImage.UnsupportedMediaType', 'message' => 'Failed to decode the image.', 'http_code' => 415, 'description' => ''],
['code' => 'InvalidImage.URL', 'message' => 'The URL format of the file is invalid or URL access has failed.', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidImageType', 'message' => 'Invalid image type.', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidOutputFormat', 'message' => 'Invalid output format.', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidParameter', 'message' => 'The request parameter is invalid.', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidParameter', 'message' => 'The image type does not match the API operation.', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidParameter', 'message' => 'The image content does not meet the table specifications.', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidParameter.BadRequest', 'message' => '参数错误,请根据算法API文档和报错Message检查参数值。是否参数值前后多了空格或者其他特殊字符等。', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidParameter.NotFound', 'message' => '参数错误,请根据算法API文档和报错Message检查参数值。是否参数值前后多了空格或者其他特殊字符等。', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidParameter.TooLarge', 'message' => 'The file size exceeds the limit.', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidRamRole', 'message' => '没有Ram权限,请联系主账号给你添加AliyunVIAPIFullAccess权限,操作流程可参考https://help.aliyun.com/document_detail/145025.htm', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidResult', 'message' => 'result is invalid', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidSide', 'message' => 'param side is invalid', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidTimeStamp.Expired', 'message' => 'timestamp expired', 'http_code' => 400, 'description' => ''],
['code' => 'InvalidVersion', 'message' => 'Specified parameter Version is not valid', 'http_code' => 400, 'description' => ''],
['code' => 'MissingAccessKeyId', 'message' => 'access key is missing', 'http_code' => 400, 'description' => ''],
['code' => 'MissingAssureDirection', 'message' => 'AssureDirection is required for this operation.', 'http_code' => 400, 'description' => ''],
['code' => 'MissingFileURL', 'message' => 'FileURL is required for this operation.', 'http_code' => 400, 'description' => ''],
['code' => 'MissingImageURL', 'message' => 'ImageURL is required for this operation.', 'http_code' => 400, 'description' => ''],
['code' => 'MissingLimit', 'message' => 'Limit is required for this operation', 'http_code' => 400, 'description' => ''],
['code' => 'MissingMinHeight', 'message' => 'MinHeight is required for this operation.', 'http_code' => 400, 'description' => ''],
['code' => 'MissingOutputFormat', 'message' => 'OutputFormat is required for this operation.', 'http_code' => 400, 'description' => ''],
['code' => 'MissingParameter', 'message' => 'A required parameter is not specified.', 'http_code' => 400, 'description' => ''],
['code' => 'MissingSide', 'message' => 'Side is required for this operation.', 'http_code' => 400, 'description' => ''],
['code' => 'MissingSkipDetection', 'message' => 'SkipDetection is required for this operation.', 'http_code' => 400, 'description' => ''],
['code' => 'MissingTasks', 'message' => 'Tasks is required for this operation.', 'http_code' => 400, 'description' => ''],
['code' => 'MissingUseFinanceModel', 'message' => 'UseFinanceModel is required for this operation.', 'http_code' => 400, 'description' => ''],
['code' => 'ParameterError', 'message' => 'The parameter is invalid. Please check again.', 'http_code' => 400, 'description' => 'The parameter is invalid. Please check again.'],
['code' => 'ServiceUnavailable', 'message' => 'The service is unavailable.', 'http_code' => 503, 'description' => ''],
['code' => 'SignatureDoesNotMatch', 'message' => 'signature not match', 'http_code' => 400, 'description' => ''],
['code' => 'SignatureNonceUsed', 'message' => 'signature nonce error', 'http_code' => 400, 'description' => ''],
['code' => 'Throttling', 'message' => 'The request was denied due to QPS limits.', 'http_code' => 400, 'description' => ''],
['code' => 'Throttling.User', 'message' => 'The request was denied due to QPS limits.', 'http_code' => 400, 'description' => ''],
['code' => 'Timeout', 'message' => 'The request has timed out.', 'http_code' => 408, 'description' => ''],
['code' => 'Unauthorized', 'message' => 'RAM authentication failed.', 'http_code' => 403, 'description' => ''],
['code' => 'UnsupportedHTTPMethod', 'message' => 'The HTTP request method is not supported.', 'http_code' => 403, 'description' => ''],
],
'changeSet' => [
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'RecognizeCharacter'],
],
'createdAt' => '2025-12-22T05:58:56.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Error codes changed', 'api' => 'RecognizeTrainTicket'],
],
'createdAt' => '2024-02-23T08:01:33.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'RecognizeVideoCharacter'],
],
'createdAt' => '2024-02-21T06:00:39.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'RecognizeBankCard'],
],
'createdAt' => '2023-12-19T09:06:40.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'RecognizeDriverLicense'],
],
'createdAt' => '2023-12-19T06:02:32.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'RecognizeDriverLicense'],
['description' => 'Request parameters changed', 'api' => 'RecognizeDrivingLicense'],
['description' => 'Request parameters changed', 'api' => 'RecognizeIdentityCard'],
],
'createdAt' => '2023-12-06T02:12:47.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'RecognizeVATInvoice'],
],
'createdAt' => '2023-09-14T08:06:09.000Z',
'description' => '',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'RecognizeQrCode'],
],
'createdAt' => '2022-11-10T08:52:54.000Z',
'description' => '更新支持多url本地文件上传',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'RecognizeVideoCharacter'],
['description' => 'Response parameters changed', 'api' => 'TrimDocument'],
],
'createdAt' => '2022-10-17T02:02:46.000Z',
'description' => '修改异步任务Message为可见',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'RecognizeVATInvoice'],
],
'createdAt' => '2022-09-30T07:17:11.000Z',
'description' => '新增出参参数',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'RecognizeLicensePlate'],
['description' => 'Response parameters changed', 'api' => 'RecognizePdf'],
['description' => 'Response parameters changed', 'api' => 'RecognizeQuotaInvoice'],
['description' => 'Response parameters changed', 'api' => 'RecognizeTicketInvoice'],
],
'createdAt' => '2022-09-27T09:39:41.000Z',
'description' => '修改obj为可见',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'RecognizeTurkeyIdentityCard'],
],
'createdAt' => '2022-05-25T09:45:00.000Z',
'description' => '设置code和message为不可见',
],
[
'apis' => [
['description' => 'OpenAPI offline', 'api' => 'RecognizeIndonesiaIdentityCard'],
['description' => 'OpenAPI offline', 'api' => 'RecognizeMalaysiaIdentityCard'],
['description' => 'OpenAPI offline', 'api' => 'RecognizeRussiaIdentityCard'],
['description' => 'OpenAPI offline', 'api' => 'RecognizeTurkeyIdentityCard'],
['description' => 'OpenAPI offline', 'api' => 'RecognizeVietnamIdentityCard'],
],
'createdAt' => '2022-05-23T09:20:44.000Z',
'description' => '第一次发布上线',
],
[
'apis' => [
['description' => 'OpenAPI offline', 'api' => 'RecognizeUkraineIdentityCard'],
],
'createdAt' => '2022-05-05T03:05:45.000Z',
'description' => '首次发布',
],
[
'apis' => [
['description' => 'Error codes changed', 'api' => 'GetAsyncJobResult'],
],
'createdAt' => '2022-04-24T08:15:53.000Z',
'description' => '调整GetAsyncJobResult单用户调用频率',
],
[
'apis' => [
['description' => 'Error codes changed', 'api' => 'RecognizeAccountPage'],
['description' => 'Error codes changed', 'api' => 'RecognizeBusinessCard'],
['description' => 'Error codes changed', 'api' => 'RecognizeChinapassport'],
['description' => 'Error codes changed', 'api' => 'RecognizePassportMRZ'],
['description' => 'Error codes changed', 'api' => 'RecognizeStamp'],
['description' => 'Error codes changed', 'api' => 'RecognizeTable'],
['description' => 'Error codes changed', 'api' => 'RecognizeTakeoutOrder'],
['description' => 'Error codes changed', 'api' => 'RecognizeTaxiInvoice'],
],
'createdAt' => '2022-03-30T09:08:14.000Z',
'description' => '调整用户调用频率',
],
[
'apis' => [
['description' => 'Error codes changed', 'api' => 'TrimDocument'],
],
'createdAt' => '2022-03-30T09:07:36.000Z',
'description' => '调整用户调用频率',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'RecognizeVideoCastCrewList'],
],
'createdAt' => '2022-03-10T06:25:42.000Z',
'description' => '修改参数信息',
],
[
'apis' => [
['description' => 'OpenAPI offline', 'api' => 'RecognizeVideoCastCrewList'],
],
'createdAt' => '2022-03-03T12:08:55.000Z',
'description' => '第一版上线',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'RecognizeVideoCharacter'],
],
'createdAt' => '2021-12-15T03:45:44.000Z',
'description' => '新增出参inputFile',
],
[
'apis' => [
['description' => 'OpenAPI offline', 'api' => 'RecognizeVideoCharacter'],
],
'createdAt' => '2021-11-01T03:16:57.000Z',
'description' => '新增 视频通用文字识别',
],
[
'apis' => [
['description' => 'OpenAPI offline', 'api' => 'RecognizePdf'],
['description' => 'OpenAPI offline', 'api' => 'RecognizeQuotaInvoice'],
['description' => 'OpenAPI offline', 'api' => 'RecognizeTicketInvoice'],
],
'createdAt' => '2021-07-01T01:39:42.000Z',
'description' => '首次发布',
],
[
'apis' => [
['description' => 'OpenAPI offline', 'api' => 'RecognizeDriverLicense'],
['description' => 'OpenAPI offline', 'api' => 'RecognizeLicensePlate'],
],
'createdAt' => '2021-05-10T07:33:32.000Z',
'description' => '新增出参参数',
],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeDrivingLicense'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeVideoCharacter'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeTable'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeIdentityCard'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizePdf'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeBusinessLicense'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeBankCard'],
['threshold' => '200', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeCharacter'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAsyncJobResult'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeDriverLicense'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeLicensePlate'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeTaxiInvoice'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeVATInvoice'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeQuotaInvoice'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeTicketInvoice'],
['threshold' => '18', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeTrainTicket'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeQrCode'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeVINCode'],
],
],
'ram' => [
'productCode' => 'VisualIntelligenceAPI',
'productName' => 'Visual Intelligence API',
'ramCodes' => ['viapi-imageseg', 'viapi-imageaudit', 'viapi-ocr', 'viapi-objectdet', 'viapi-imageenhan', 'viapi-videorecog', 'viapi-imageprocess', 'viapi', 'viapi-ekyc', 'viapi-imgsearch', 'viapi-goodstech', 'viapi-facebody', 'viapi-threedvision', 'viapi-videoenhan', 'viapi-imagerecog', 'viapi-videoseg', 'viapi-regen', 'viapi-aigen'],
'ramLevel' => 'SERVICE',
'ramConditions' => [],
'ramActions' => [
[
'apiName' => 'RecognizeTable',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeTable',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'RecognizeVATInvoice',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeVATInvoice',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'RecognizeQuotaInvoice',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeQuotaInvoice',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'RecognizeVINCode',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeVINCode',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'RecognizeTrainTicket',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeTrainTicket',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'RecognizeDriverLicense',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeDriverLicense',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'RecognizeLicensePlate',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeLicensePlate',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'RecognizeDrivingLicense',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeDrivingLicense',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'RecognizeBankCard',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeBankCard',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'RecognizeIdentityCard',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeIdentityCard',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'RecognizeVideoCharacter',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeVideoCharacter',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetAsyncJobResult',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'viapi-ocr:GetAsyncJobResult',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'RecognizePdf',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizePdf',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'RecognizeQrCode',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeQrCode',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'RecognizeCharacter',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeCharacter',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'RecognizeBusinessLicense',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeBusinessLicense',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'RecognizeTaxiInvoice',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeTaxiInvoice',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'RecognizeTicketInvoice',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'viapi-ocr:RecognizeTicketInvoice',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'resourceTypes' => [],
],
];
|