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
|
<?php return [
'version' => '1.0',
'info' => [
'style' => 'RPC',
'product' => 'objectdet',
'version' => '2019-12-30',
],
'directories' => [
[
'id' => 114562,
'title' => '车辆检测',
'type' => 'directory',
'children' => [
'DetectVehicleICongestion',
'DetectVehicleIllegalParking',
],
],
[
'id' => 114557,
'title' => '通用检测',
'type' => 'directory',
'children' => [
'DetectMainBody',
'DetectWhiteBaseImage',
'DetectObject',
'DetectIPCObject',
'DetectVideoIPCObject',
'DetectWorkwear',
'DetectKitchenAnimals',
],
],
[
'id' => 114576,
'title' => '通用接口',
'type' => 'directory',
'children' => [
'GetAsyncJobResult',
],
],
],
'components' => [
'schemas' => [
'DetectObjectElement' => [
'title' => '检测到的目标',
'type' => 'object',
'properties' => [
'Type' => [
'title' => '目标类型:PERSON, VEHICLE, PET',
'type' => 'string',
'example' => 'VEHICLE',
],
'X' => [
'title' => '左上角x坐标(像素)',
'type' => 'integer',
'format' => 'int64',
'example' => '5',
],
'Y' => [
'title' => '左上角y坐标(像素)',
'type' => 'integer',
'format' => 'int64',
'example' => '10',
],
'Width' => [
'title' => '目标宽度(像素)',
'type' => 'integer',
'format' => 'int64',
'example' => '100',
],
'Height' => [
'title' => '目标高度(像素)',
'type' => 'integer',
'format' => 'int64',
'example' => '200',
],
'Score' => [
'title' => '目标置信度,范围为[0.0, 1.0]',
'type' => 'number',
'format' => 'float',
'example' => '0.68225745',
],
],
],
'DetectObjectFrame' => [
'title' => 'A short description of struct',
'type' => 'object',
'properties' => [
'Time' => [
'title' => '时间',
'type' => 'integer',
'format' => 'int64',
],
'Elements' => [
'title' => '结果集',
'type' => 'array',
'items' => [
'$ref' => '#/components/schemas/DetectObjectElement',
],
],
],
],
],
],
'apis' => [
'DetectVehicleICongestion' => [
'summary' => '本文为您介绍目标检测(objectdet)类目下的车辆拥堵检测DetectVehicleICongestion的语法及示例。',
'methods' => [
'post',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
],
'parameters' => [
[
'name' => 'ImageURL',
'in' => 'formData',
'schema' => [
'title' => 'A short description of struct',
'description' => '图像URL地址。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。',
'type' => 'string',
'required' => true,
'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/objectdet/DetectVehicleICongestion/DetectVehicleICongestion1.jpg',
'maxItems' => 1,
'minItems' => 20,
'isFileTransferUrl' => true,
],
],
[
'name' => 'RoadRegions',
'in' => 'formData',
'style' => 'json',
'schema' => [
'description' => '多个区域。格式为[RoadRegion\\_1, RoadRegion\\_2, ..., RoadRegion\\_N]。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'RoadRegion' => [
'description' => '任意四边形的四个顶点的坐标X和Y,格式为`[x1,y1,x2,y2,x3,y3,x4,y4]`。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Point' => [
'description' => '四边形的顶点坐标。',
'type' => 'object',
'properties' => [
'X' => [
'description' => '坐标点的X值。',
'type' => 'integer',
'format' => 'int64',
'required' => true,
'example' => '400',
],
'Y' => [
'description' => '坐标点的Y值。',
'type' => 'integer',
'format' => 'int64',
'required' => true,
'example' => '400',
],
],
'required' => true,
],
],
'required' => false,
],
'required' => true,
],
],
'required' => false,
],
'required' => true,
],
],
[
'name' => 'PreRegionIntersectFeatures',
'in' => 'formData',
'style' => 'json',
'schema' => [
'description' => '前一帧画面与各个指定区域相交集的车辆检测框对应的车辆特征。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Features' => [
'description' => '特征为Base64编码的字符串。',
'type' => 'array',
'items' => [
'description' => 'Base64编码的字符串。文件的Base64编码处理操作,请参见[文件Base64处理](~~468191~~)。',
'type' => 'string',
'required' => false,
'example' => 'AEAMQQAAAA****ABhC',
],
'required' => false,
],
],
'required' => false,
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'Id of the request',
'description' => '请求ID。',
'type' => 'string',
'example' => '4FC381BB-04F2-50F4-B54B-593042BCF3C6',
],
'Data' => [
'description' => '返回的结果数据内容。',
'type' => 'object',
'properties' => [
'Elements' => [
'description' => '车辆检测框的集合。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Boxes' => [
'description' => '检测框坐标,格式为`[left, top, right, bottom]`。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Left' => [
'description' => '矩形区域的左上角横轴坐标。',
'type' => 'integer',
'format' => 'int64',
'example' => '341',
],
'Top' => [
'description' => '矩形区域的左上角纵轴坐标。',
'type' => 'integer',
'format' => 'int64',
'example' => '434',
],
'Right' => [
'description' => '矩形区域的右下角横轴坐标。',
'type' => 'integer',
'format' => 'int64',
'example' => '589',
],
'Bottom' => [
'description' => '矩形区域的右下角纵轴坐标。',
'type' => 'integer',
'format' => 'int64',
'example' => '576',
],
],
],
],
'Score' => [
'description' => '检测框的置信度,范围为`[0,1]`。',
'type' => 'number',
'format' => 'float',
'example' => '0.962890625',
],
'TypeName' => [
'description' => '检测框对应的物体。取值仅为`vehicle`。',
'type' => 'string',
'example' => 'vehicle',
],
'Id' => [
'description' => '检测框ID。',
'type' => 'integer',
'format' => 'int64',
'example' => '1',
],
],
],
],
'RegionIntersectFeatures' => [
'description' => '与各个指定区域相交集的车辆检测框对应的车辆特征。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Features' => [
'description' => '特征为Base64编码的字符串。文件的Base64编码处理操作,请参见[文件Base64处理](~~468191~~)。',
'type' => 'array',
'items' => [
'description' => '此Base64编码用于匹配两帧之间的车辆是否为同一车辆。文件的Base64编码处理操作,请参见[文件Base64处理](~~468191~~)。',
'type' => 'string',
'example' => 'AEAMQQAAAA****ABhC',
],
],
],
],
],
'RegionIntersectMatched' => [
'description' => '判断当前帧的RegionIntersectFeatures与PreRegionIntersectFeatures中哪一个特征是匹配的。',
'type' => 'array',
'items' => [
'description' => '1',
'type' => 'object',
'properties' => [
'Ids' => [
'description' => '输出匹配的特征IDx。',
'type' => 'array',
'items' => [
'description' => '当两帧之间的两个车辆是匹配时,说明该车辆在两帧之间的时间内存在滞留或拥堵现象。'."\n"
."\n"
.' > **-1**代表没有匹配的特征,如果匹配将显示对应检测框ID。例如,车辆检测框ID为`[1,2,3]`,RegionIntersectMatched显示为`[-1,-1,-1]`,则表示三个区域均没有匹配,RegionIntersectMatched显示为`[-1,2,3]`,则表示区域1未匹配,区域2和3匹配。',
'type' => 'integer',
'format' => 'int64',
'example' => '[-1,-1,-1]',
],
],
],
],
],
'RegionIntersects' => [
'description' => '与各个指定区域相交集的车辆检测框对应的车辆特征。'."\n"
."\n"
.'例如,返回结果为[ {"Ids":[1,3]}, {"Ids":[2,4]} ],其中{"Ids":[1,3]}是与区域1相交集的车辆检测框的ID, {"Ids":[2,4]}是与区域2相交集的车辆检测框的ID。当车辆出现在给定区域内,说明存在车辆占道的情况。'."\n"
."\n"
.'除了**RegionIntersects**里包含的ID的检测框外,其它的检测框为区域外的检测框。',
'type' => 'array',
'items' => [
'description' => '1',
'type' => 'object',
'properties' => [
'Ids' => [
'description' => '与各个指定区域相交集的车辆检测框的多个ID。',
'type' => 'array',
'items' => [
'description' => '与各个指定区域相交集的车辆检测框的多个ID。'."\n"
."\n"
.'例如,{"Ids":[1,3]}是与相应区域相交集的车辆检测框的IDs。',
'type' => 'integer',
'format' => 'int64',
'example' => '[1,2,3]',
],
],
],
],
],
],
],
],
],
],
],
'errorCodes' => [
400 => [
[
'errorCode' => 'ParameterError',
'errorMessage' => 'The parameter is invalid. Please check again.',
],
],
403 => [
[
'errorCode' => 'AuthFailed',
'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.',
],
],
408 => [
[
'errorCode' => 'Timeout',
'errorMessage' => 'The request has timed out.',
],
],
503 => [
[
'errorCode' => 'ServiceUnavailable',
'errorMessage' => 'The service is unavailable.',
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"4FC381BB-04F2-50F4-B54B-593042BCF3C6\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"Boxes\\": [\\n {\\n \\"Left\\": 341,\\n \\"Top\\": 434,\\n \\"Right\\": 589,\\n \\"Bottom\\": 576\\n }\\n ],\\n \\"Score\\": 0.962890625,\\n \\"TypeName\\": \\"vehicle\\",\\n \\"Id\\": 1\\n }\\n ],\\n \\"RegionIntersectFeatures\\": [\\n {\\n \\"Features\\": [\\n \\"AEAMQQAAAA****ABhC\\"\\n ]\\n }\\n ],\\n \\"RegionIntersectMatched\\": [\\n {\\n \\"Ids\\": [\\n 0\\n ]\\n }\\n ],\\n \\"RegionIntersects\\": [\\n {\\n \\"Ids\\": [\\n 0\\n ]\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DetectVehicleICongestionResponse>\\n <RequestId>4FC381BB-04F2-50F4-B54B-593042BCF3C6</RequestId>\\n <Data>\\n <RegionIntersectFeatures>\\n <Features>AOAQQQBA****FRD</Features>\\n <Features>AEAMQQAA****KRC</Features>\\n <Features>AEAMQQAA****BhC</Features>\\n </RegionIntersectFeatures>\\n <RegionIntersects>\\n <Ids>1</Ids>\\n <Ids>2</Ids>\\n <Ids>3</Ids>\\n </RegionIntersects>\\n <Elements>\\n <Score>0.962890625</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>0</Id>\\n <Boxes>\\n <Left>341</Left>\\n <Top>434</Top>\\n <Right>589</Right>\\n <Bottom>576</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.9619140625</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>1</Id>\\n <Boxes>\\n <Left>304</Left>\\n <Top>228</Top>\\n <Right>525</Right>\\n <Bottom>440</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.83203125</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>2</Id>\\n <Boxes>\\n <Left>0</Left>\\n <Top>24</Top>\\n <Right>68</Right>\\n <Bottom>106</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.53125</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>3</Id>\\n <Boxes>\\n <Left>0</Left>\\n <Top>0</Top>\\n <Right>58</Right>\\n <Bottom>38</Bottom>\\n </Boxes>\\n </Elements>\\n <RegionIntersectMatched>\\n <Ids>-1</Ids>\\n <Ids>-1</Ids>\\n <Ids>-1</Ids>\\n </RegionIntersectMatched>\\n </Data>\\n</DetectVehicleICongestionResponse>","errorExample":""}]',
'title' => '车辆拥堵检测',
'description' => '## 功能描述'."\n"
.'车辆拥堵检测能力根据图片中的车辆,判断是否发生拥堵。'."\n"
."\n"
.'> - 您可以进入[在线咨询](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2)获取在线人工帮助。'."\n"
.'- 当前能力可在视觉智能开放平台有完整的免费产品体验,您可以单击[立即试用](https://vision.aliyun.com/experience/detail?&tagName=objectdet&children=DetectVehicleICongestion)对该能力进行更直观试用以及在线购买。'."\n"
.'- 阿里云视觉智能开放平台视觉AI能力API接入、接口使用或问题咨询等,请通过钉钉群(23109592)加入阿里云视觉智能开放平台咨询群联系我们。'."\n"
."\n"
.'## 应用场景'."\n"
."\n"
.'- 停车场拥堵检测:通过停车场摄像头间隔时间内捕捉的两张图像,检测车辆以及相对位置,判断是否发生拥堵。'."\n"
.'- 道路拥堵检测:通过道路监控间隔时间内捕捉的前后图像,检测车辆以及相对位置,判断是否发生拥堵。'."\n"
."\n"
.'## 特色优势'."\n"
.'检测数据量少:无需较大数据量的视频,仅通过检测两张图片,即可判断是否发生拥堵。'."\n"
."\n"
.'## 接入指引'."\n"
.'1. 注册阿里云账号:打开[阿里云官网](https://www.aliyun.com),在阿里云官网右上角,单击**立即注册**,按照操作提示完成账号注册。'."\n"
.'2. 开通能力:请确保您已开通[目标检测服务](https://vision.aliyun.com/objectdet),若未开通服务请[立即开通](https://common-buy.aliyun.com/?commodityCode=viapi_objectdet_public_cn#/open)。'."\n"
.'3. 创建AccessKey:请确保您已[创建AccessKey](~~175144~~),如果您使用的是子账号AccessKey,您需要给子账号赋予AliyunVIAPIFullAccess权限,具体操作,请参见[RAM授权](~~145025~~)。'."\n"
.'4. 在线调试(可选):您可以通过[OpenAPI Explorer](https://next.api.aliyun.com/api/objectdet/2019-12-30/DetectVehicleICongestion?lang=JAVA&sdkStyle=dara¶ms=%7B%22ImageURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Fobjectdet%2FDetectVehicleICongestion%2FDetectVehicleICongestion1.jpg%22%2C%22%20RoadRegion%22%3A%22%5B100%2C125%2C830%2C125%2C100%2C425%2C830%2C425%5D%22%2C%22RoadRegions%22%3A%5B%7B%22RoadRegion%22%3A%5B%7B%22Point%22%3A%7B%22X%22%3A100%2C%22Y%22%3A125%7D%7D%2C%7B%22Point%22%3A%7B%22X%22%3A830%2C%22Y%22%3A125%7D%7D%2C%7B%22Point%22%3A%7B%22X%22%3A100%2C%22Y%22%3A425%7D%7D%2C%7B%22Point%22%3A%7B%22X%22%3A830%2C%22Y%22%3A425%7D%7D%5D%7D%5D%7D&tab=DEMO)在线调试能力,查看完整的调用示例代码及SDK依赖信息,也可以下载完整的工程。'."\n"
."\n"
.'5. 开发接入步骤:'."\n"
.'- 在[SDK总览](~~145033~~)中选择您要接入使用的SDK语言。'."\n"
.'- 在对应语言的SDK文档中找到AI类目为目标检测(objectdet)类目的SDK包进行安装。'."\n"
.'- 参考文档中提供的示例代码进行适当修改后调用。'."\n"
."\n"
.'6. 客户端直接调用:该能力常用的客户端调用方式包括以下几种。'."\n"
.'- [Web前端直接调用](~~467779~~)'."\n"
.'- [小程序场景下直接调用](~~467780~~)'."\n"
.'- [Android端直接调用](~~467781~~)'."\n"
.'- [iOS端直接调用](~~467782~~)'."\n"
."\n"
.'## 输入限制'."\n"
."\n"
.'- 图像格式:JPEG、JPG、PNG、BMP。'."\n"
.'- 图像大小:不超过500 KB。'."\n"
.'- 图像分辨率:大于20×20像素,小于800×800像素,长宽比小于等于2。'."\n"
.'- URL地址中不能包含中文字符。',
'responseParamsDescription' => '## SDK参考'."\n"
.'阿里云视觉AI目标检测类目下的车辆拥堵检测能力推荐使用SDK调用,支持多种编程语言,调用时请选择AI类目为目标检测(objectdet)的SDK包,文件参数通过SDK调用可支持本地文件及任意URL,具体可参见[SDK总览](~~145033~~)。',
'extraInfo' => '## 错误码'."\n"
.'关于车辆拥堵检测的错误码,详情请参见[常见错误码](~~146760~~)。'."\n"
."\n"
.'## 安全声明'."\n"
.'- 请确保上传的图片或文件来源符合相应的法律法规。'."\n"
.'- 通过体验调试上传的临时文件有效期为1小时,在24小时后会被系统自动清理删除。',
],
'DetectVehicleIllegalParking' => [
'summary' => '本文为您介绍目标检测(objectdet)类目下的车辆违停检测DetectVehicleIllegalParking的语法及示例。',
'methods' => [
'post',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
],
'parameters' => [
[
'name' => 'ImageURL',
'in' => 'formData',
'schema' => [
'title' => 'A short description of struct',
'description' => '图像URL地址。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。',
'type' => 'string',
'required' => true,
'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/objectdet/DetectVehicleIllegalParking/DetectVehicleIllegalParking2.jpg',
'maxItems' => 1,
'minItems' => 20,
'isFileTransferUrl' => true,
],
],
[
'name' => 'RoadRegions',
'in' => 'formData',
'style' => 'json',
'schema' => [
'description' => '多个区域。格式为[RoadRegion\\_1, RoadRegion\\_2, ..., RoadRegion\\_N]。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'RoadRegion' => [
'description' => '任意四边形的四个顶点的坐标X和Y,格式为`[x1,y1,x2,y2,x3,y3,x4,y4]`。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Point' => [
'description' => '四边形的顶点坐标。',
'type' => 'object',
'properties' => [
'X' => [
'description' => '坐标点的X值。',
'type' => 'integer',
'format' => 'int64',
'required' => true,
'example' => '400',
],
'Y' => [
'description' => '坐标点的Y值。',
'type' => 'integer',
'format' => 'int64',
'required' => true,
'example' => '400',
],
],
'required' => true,
],
],
'required' => false,
],
'required' => true,
],
],
'required' => false,
],
'required' => true,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'Id of the request',
'description' => '请求ID。',
'type' => 'string',
'example' => 'DB882EDD-991A-5A0C-A19B-CC7C4BA65E35',
],
'Data' => [
'description' => '返回的结果数据内容。',
'type' => 'object',
'properties' => [
'Elements' => [
'description' => '车辆检测框的集合。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Boxes' => [
'description' => '检测框坐标,格式为`[left, top, right, bottom]`。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Left' => [
'description' => '矩形区域的左上角横轴坐标。',
'type' => 'integer',
'format' => 'int64',
'example' => '413',
],
'Top' => [
'description' => '矩形区域的左上角纵轴坐标。',
'type' => 'integer',
'format' => 'int64',
'example' => '138',
],
'Right' => [
'description' => '矩形区域的右下角横轴坐标。',
'type' => 'integer',
'format' => 'int64',
'example' => '499',
],
'Bottom' => [
'description' => '矩形区域的右下角纵轴坐标。',
'type' => 'integer',
'format' => 'int64',
'example' => '268',
],
],
],
],
'Score' => [
'description' => '检测框的置信度,范围为`[0,1]`。',
'type' => 'number',
'format' => 'float',
'example' => '0.9599609375',
],
'TypeName' => [
'description' => '检测框对应的物体。取值仅为`vehicle`。',
'type' => 'string',
'example' => 'vehicle',
],
'Id' => [
'description' => '检测框ID。',
'type' => 'integer',
'format' => 'int64',
'example' => '1',
],
],
],
],
'RegionIntersects' => [
'description' => '与各个给定区域相交集的车辆检测框对应的车辆特征。'."\n"
."\n"
.'例如,返回结果为[ {"Ids":[1,3]}, {"Ids":[2,4]} ],其中{"Ids":[1,3]}是与区域1相交集的车辆检测框的ID, {"Ids":[2,4]}是与区域2相交集的车辆检测框的ID。当车辆出现在给定区域内,说明存在车辆占道的情况。'."\n"
."\n"
.'除了**RegionIntersects**里包含的ID的检测框外,其它的检测框为区域外的检测框。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Ids' => [
'description' => '与各个指定区域相交集的车辆检测框的多个ID。',
'type' => 'array',
'items' => [
'description' => '与各个指定区域相交集的车辆检测框的多个ID。'."\n"
."\n"
.'例如,{"Ids":[1,3]}是与相应区域相交集的车辆检测框的IDs。',
'type' => 'integer',
'format' => 'int64',
'example' => '[1,2,3]',
],
],
],
],
],
],
],
],
],
],
],
'errorCodes' => [
400 => [
[
'errorCode' => 'ParameterError',
'errorMessage' => 'The parameter is invalid. Please check again.',
],
],
403 => [
[
'errorCode' => 'AuthFailed',
'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.',
],
],
408 => [
[
'errorCode' => 'Timeout',
'errorMessage' => 'The request has timed out.',
],
],
503 => [
[
'errorCode' => 'ServiceUnavailable',
'errorMessage' => 'The service is unavailable.',
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"DB882EDD-991A-5A0C-A19B-CC7C4BA65E35\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"Boxes\\": [\\n {\\n \\"Left\\": 413,\\n \\"Top\\": 138,\\n \\"Right\\": 499,\\n \\"Bottom\\": 268\\n }\\n ],\\n \\"Score\\": 0.9599609375,\\n \\"TypeName\\": \\"vehicle\\",\\n \\"Id\\": 1\\n }\\n ],\\n \\"RegionIntersects\\": [\\n {\\n \\"Ids\\": [\\n 0\\n ]\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DetectVehicleIllegalParkingResponse>\\n <RequestId>DB882EDD-991A-5A0C-A19B-CC7C4BA65E35</RequestId>\\n <Data>\\n <RegionIntersects>\\n <Ids>1</Ids>\\n <Ids>2</Ids>\\n <Ids>3</Ids>\\n <Ids>4</Ids>\\n <Ids>5</Ids>\\n <Ids>6</Ids>\\n <Ids>7</Ids>\\n <Ids>8</Ids>\\n <Ids>10</Ids>\\n <Ids>11</Ids>\\n </RegionIntersects>\\n <Elements>\\n <Score>0.9599609375</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>0</Id>\\n <Boxes>\\n <Left>413</Left>\\n <Top>138</Top>\\n <Right>499</Right>\\n <Bottom>268</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.95751953125</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>1</Id>\\n <Boxes>\\n <Left>146</Left>\\n <Top>121</Top>\\n <Right>371</Right>\\n <Bottom>284</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.93310546875</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>2</Id>\\n <Boxes>\\n <Left>54</Left>\\n <Top>92</Top>\\n <Right>164</Right>\\n <Bottom>213</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.9326171875</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>3</Id>\\n <Boxes>\\n <Left>94</Left>\\n <Top>141</Top>\\n <Right>171</Right>\\n <Bottom>232</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.9150390625</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>4</Id>\\n <Boxes>\\n <Left>303</Left>\\n <Top>114</Top>\\n <Right>430</Right>\\n <Bottom>195</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.82080078125</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>5</Id>\\n <Boxes>\\n <Left>14</Left>\\n <Top>134</Top>\\n <Right>32</Right>\\n <Bottom>154</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.767578125</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>6</Id>\\n <Boxes>\\n <Left>0</Left>\\n <Top>132</Top>\\n <Right>17</Right>\\n <Bottom>151</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.767578125</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>7</Id>\\n <Boxes>\\n <Left>37</Left>\\n <Top>133</Top>\\n <Right>56</Right>\\n <Bottom>162</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.765625</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>8</Id>\\n <Boxes>\\n <Left>27</Left>\\n <Top>131</Top>\\n <Right>55</Right>\\n <Bottom>158</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.75341796875</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>9</Id>\\n <Boxes>\\n <Left>408</Left>\\n <Top>14</Top>\\n <Right>499</Right>\\n <Bottom>143</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.517578125</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>10</Id>\\n <Boxes>\\n <Left>164</Left>\\n <Top>130</Top>\\n <Right>183</Right>\\n <Bottom>144</Bottom>\\n </Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.355712890625</Score>\\n <TypeName>vehicle</TypeName>\\n <Id>11</Id>\\n <Boxes>\\n <Left>1</Left>\\n <Top>133</Top>\\n <Right>31</Right>\\n <Bottom>153</Bottom>\\n </Boxes>\\n </Elements>\\n </Data>\\n</DetectVehicleIllegalParkingResponse>","errorExample":""}]',
'title' => '检测车辆非法停车',
'description' => '## 服务说明'."\n"
.'由于产品业务调整,车辆违停检测服务于 即日起停止新用户开通调用,历史开通过该服务的老用户可继续调用,2026年04月20日后该服务将下架,不再支持新老用户调用,请尽早寻找替代方案。如果对车辆违停检测 API 服务使用有疑问,可通过搜索钉钉群(23109592)加入阿里云视觉智能开放平台咨询群联系我们。'."\n"
."\n"
.'## 功能描述'."\n"
.'车辆违停检测能力可通过检测图片中目标区域内是否有车辆停放。'."\n"
."\n"
.'> - 您可以进入[在线咨询](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2)获取在线人工帮助。'."\n"
.'- 阿里云视觉智能开放平台视觉AI能力API接入、接口使用或问题咨询等,请通过钉钉群(23109592)加入阿里云视觉智能开放平台咨询群联系我们。'."\n"
."\n"
.'## 应用场景'."\n"
."\n"
.'- 消防通道占用:通过检测消防通道区域是否有车辆,可以判断是否有车辆占用了消防通道。'."\n"
.'- 出入口违停:检测停车场、商场、小区、园区出入口指定区域是否有车辆违停。'."\n"
."\n"
.'## 特色优势'."\n"
."\n"
.'- 方便改造部署:仅需提供图像即可检测判断。'."\n"
.'- 支持多种角度:支持通过多种角度检测是否存在车辆违停。'."\n"
."\n\n"
.'## 输入限制'."\n"
."\n"
.'- 图像格式:JPEG、JPG、PNG、BMP。'."\n"
.'- 图像大小:建议不超过3M。'."\n"
.'- 图像分辨率:大于20×20像素,建议小于3000×3000像素。'."\n"
.'- URL地址中不能包含中文字符。'."\n"
.'## 安全声明'."\n"
.'- 请确保上传的图片或文件来源符合相应的法律法规。'."\n"
.'- 通过体验调试上传的临时文件有效期为1小时,在24小时后会被系统自动清理删除。'."\n"
."\n"
.'## 计费说明'."\n"
.'关于车辆违停检测的计费方式及报价,请参见[计费介绍](~~202484~~)。'."\n"
."\n"
.'> 下方调试接口为付费接口,如需免费体验调试请前往[体验中心](https://vision.aliyun.com/experience/detail?&tagName=objectdet&children=DetectVehicleIllegalParking)。',
'responseParamsDescription' => '## SDK参考'."\n"
.'阿里云视觉AI目标检测类目下的车辆违停检测能力推荐使用SDK调用,支持多种编程语言,调用时请选择AI类目为目标检测(objectdet)的SDK包,文件参数通过SDK调用可支持本地文件及任意URL,具体可参见[SDK总览](~~145033~~)。',
],
'DetectMainBody' => [
'methods' => [
'post',
'get',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'ImageURL',
'in' => 'query',
'schema' => [
'description' => '图像URL地址。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。',
'type' => 'string',
'required' => true,
'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/objectdet/DetectMainBody/DetectMainBody1.jpg',
'isFileTransferUrl' => true,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '2E59C333-5480-4231-A8AB-BEE1001EA7FE',
],
'Data' => [
'description' => '返回的结果数据内容。',
'type' => 'object',
'properties' => [
'Location' => [
'description' => '图像定位信息。',
'type' => 'object',
'properties' => [
'Width' => [
'description' => '元素宽度。',
'type' => 'integer',
'format' => 'int32',
'example' => '583',
],
'Height' => [
'description' => '元素高度。',
'type' => 'integer',
'format' => 'int32',
'example' => '320',
],
'Y' => [
'description' => '元素y坐标。',
'type' => 'integer',
'format' => 'int32',
'example' => '20',
],
'X' => [
'description' => '元素x坐标。',
'type' => 'integer',
'format' => 'int32',
'example' => '28',
],
],
],
],
],
],
],
],
],
'errorCodes' => [
400 => [
[
'errorCode' => 'ParameterError',
'errorMessage' => 'The parameter is invalid. Please check again.',
],
],
403 => [
[
'errorCode' => 'AuthFailed',
'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.',
],
],
408 => [
[
'errorCode' => 'Timeout',
'errorMessage' => 'The request has timed out.',
],
],
503 => [
[
'errorCode' => 'ServiceUnavailable',
'errorMessage' => 'The service is unavailable.',
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"2E59C333-5480-4231-A8AB-BEE1001EA7FE\\",\\n \\"Data\\": {\\n \\"Location\\": {\\n \\"Width\\": 583,\\n \\"Height\\": 320,\\n \\"Y\\": 20,\\n \\"X\\": 28\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<DetectMainBodyResponse>\\n <RequestId>2E59C333-5480-4231-A8AB-BEE1001EA7FE</RequestId>\\n <Data>\\n <Location>\\n <X>28</X>\\n <Y>20</Y>\\n <Height>320</Height>\\n <Width>583</Width>\\n </Location>\\n </Data>\\n</DetectMainBodyResponse>","errorExample":""}]',
'title' => '主体检测',
'summary' => '本文为您介绍目标检测(objectdet)类目下的主体检测DetectMainBody的语法及示例。',
'description' => '## 功能描述'."\n"
.'主体检测能力对输入图片进行检测,输出主体定位信息。'."\n"
."\n"
.'> - 您可以进入[在线咨询](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2)获取在线人工帮助。'."\n"
.'- 当前能力可在视觉智能开放平台有完整的免费产品体验,您可以单击[立即试用](https://vision.aliyun.com/experience/detail?&tagName=objectdet&children=DetectMainBody)对该能力进行更直观试用以及在线购买。'."\n"
.'- 阿里云视觉智能开放平台视觉AI能力API接入、接口使用或问题咨询等,请通过钉钉群(23109592)加入阿里云视觉智能开放平台咨询群联系我们。'."\n"
."\n"
.'## 接入指引'."\n"
.'1. 注册阿里云账号:打开[阿里云官网](https://www.aliyun.com),在阿里云官网右上角,单击**立即注册**,按照操作提示完成账号注册。'."\n"
.'2. 开通能力:请确保您已开通[目标检测服务](https://vision.aliyun.com/objectdet),若未开通服务请[立即开通](https://common-buy.aliyun.com/?commodityCode=viapi_objectdet_public_cn#/open)。'."\n"
.'3. 创建AccessKey:请确保您已[创建AccessKey](~~175144~~),如果您使用的是子账号AccessKey,您需要给子账号赋予AliyunVIAPIFullAccess权限,具体操作,请参见[RAM授权](~~145025~~)。'."\n"
.'4. 在线调试(可选):您可以通过[OpenAPI Explorer](https://next.api.aliyun.com/api/objectdet/2019-12-30/DetectMainBody?lang=JAVA&sdkStyle=old¶ms=%7B%22ImageURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Fobjectdet%2FDetectMainBody%2FDetectMainBody1.jpg%22%7D&tab=DEMO)在线调试能力,查看完整的调用示例代码及SDK依赖信息,也可以下载完整的工程。'."\n"
."\n"
.'5. 开发接入步骤:'."\n"
.'- 在[SDK总览](~~145033~~)中选择您要接入使用的SDK语言。'."\n"
.'- 在对应语言的SDK文档中找到AI类目为目标检测(objectdet)类目的SDK包进行安装。'."\n"
.'- 参考文档中提供的示例代码进行适当修改后调用。'."\n"
."\n"
.'6. 示例代码:该能力常用语言的示例代码,请参见[主体检测示例代码](~~604398~~)。'."\n"
."\n"
.'7. 客户端直接调用:该能力常用的客户端调用方式包括以下几种。'."\n"
.'- [Web前端直接调用](~~467779~~)'."\n"
.'- [小程序场景下直接调用](~~467780~~)'."\n"
.'- [Android端直接调用](~~467781~~)'."\n"
.'- [iOS端直接调用](~~467782~~)'."\n"
."\n"
.'## 输入限制'."\n"
."\n"
.'- 图像格式:PNG(不支持8位、16位和64位的PNG)、JPG、JPEG、BMP。'."\n"
.'- 图像大小:不超过3 MB。'."\n"
.'- 图像分辨率:小于1280×1280像素。'."\n"
.'- URL地址中不能包含中文字符。'."\n"
."\n"
.'## 计费说明'."\n"
.'关于主体检测的计费方式及报价,请参见[计费介绍](~~202484~~)。'."\n"
."\n"
.'> 下方调试接口为付费接口,如需免费体验调试请前往[体验中心](https://vision.aliyun.com/experience/detail?&tagName=objectdet&children=DetectMainBody)。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '## SDK参考'."\n"
.'阿里云视觉AI目标检测类目下的主体检测能力推荐使用SDK调用,支持多种编程语言,调用时请选择AI类目为目标检测(objectdet)的SDK包,文件参数通过SDK调用可支持本地文件及任意URL,具体可参见[SDK总览](~~145033~~)。'."\n"
."\n"
.'## 示例代码'."\n"
.'该能力常用语言的示例代码,请参见[主体检测示例代码](~~604398~~)。',
'extraInfo' => '## 错误码'."\n"
.'关于主体检测的错误码,详情请参见[常见错误码](~~146760~~)。'."\n"
."\n\n"
.'## 安全声明'."\n"
.'- 请确保上传的图片或文件来源符合相应的法律法规。'."\n"
.'- 通过体验调试上传的临时文件有效期为1小时,在24小时后会被系统自动清理删除。',
],
'DetectWhiteBaseImage' => [
'methods' => [
'post',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'ImageURL',
'in' => 'formData',
'schema' => [
'description' => '图像URL地址。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。',
'type' => 'string',
'required' => true,
'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/objectdet/DetectWhiteBaseImage/DetectWhiteBaseImage1.jpg',
'isFileTransferUrl' => true,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '7A7F9EEB-44C4-4592-9089-A6185B222B23',
],
'Data' => [
'description' => '返回的结果数据内容。',
'type' => 'object',
'properties' => [
'Elements' => [
'description' => '返回判断结果。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'WhiteBase' => [
'description' => '是否白底图。'."\n"
."\n"
.'- 0:非白底'."\n"
."\n"
.'- 1:白底'."\n"
."\n",
'type' => 'integer',
'format' => 'int32',
'example' => '0',
],
],
],
],
],
],
],
],
],
],
'errorCodes' => [
400 => [
[
'errorCode' => 'ParameterError',
'errorMessage' => 'The parameter is invalid. Please check again.',
],
],
403 => [
[
'errorCode' => 'AuthFailed',
'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.',
],
],
408 => [
[
'errorCode' => 'Timeout',
'errorMessage' => 'The request has timed out.',
],
],
503 => [
[
'errorCode' => 'ServiceUnavailable',
'errorMessage' => 'The service is unavailable.',
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"7A7F9EEB-44C4-4592-9089-A6185B222B23\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"WhiteBase\\": 0\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DetectWhiteBaseImageResponse>\\n <RequestId>7A7F9EEB-44C4-4592-9089-A6185B222B23</RequestId>\\n <Data>\\n <Elements>\\n <WhiteBase>0</WhiteBase>\\n </Elements>\\n </Data>\\n</DetectWhiteBaseImageResponse>","errorExample":""}]',
'title' => '白底图检测',
'summary' => '本文为您介绍目标检测(objectdet)类目下的白底图检测DetectWhiteBaseImage的语法及示例。',
'description' => '## 功能描述'."\n"
.'白底图检测能力用于检测图片背景是否为白底图。'."\n"
."\n"
.'> - 您可以进入[在线咨询](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2)获取在线人工帮助。'."\n"
.'- 当前能力可在视觉智能开放平台有完整的免费产品体验,您可以单击[立即试用](https://vision.aliyun.com/experience/detail?&tagName=objectdet&children=DetectWhiteBaseImage)对该能力进行更直观试用以及在线购买。'."\n"
.'- 阿里云视觉智能开放平台视觉AI能力API接入、接口使用或问题咨询等,请通过钉钉群(23109592)加入阿里云视觉智能开放平台咨询群联系我们。'."\n"
."\n\n"
.'## 接入指引'."\n"
.'1. 注册阿里云账号:打开[阿里云官网](https://www.aliyun.com),在阿里云官网右上角,单击**立即注册**,按照操作提示完成账号注册。'."\n"
.'2. 开通能力:请确保您已开通[目标检测服务](https://vision.aliyun.com/objectdet),若未开通服务请[立即开通](https://common-buy.aliyun.com/?commodityCode=viapi_objectdet_public_cn#/open)。'."\n"
.'3. 创建AccessKey:请确保您已[创建AccessKey](~~175144~~),如果您使用的是子账号AccessKey,您需要给子账号赋予AliyunVIAPIFullAccess权限,具体操作,请参见[RAM授权](~~145025~~)。'."\n"
.'4. 在线调试(可选):您可以通过[OpenAPI Explorer](https://next.api.aliyun.com/api/objectdet/2019-12-30/DetectWhiteBaseImage?lang=JAVA&sdkStyle=old¶ms=%7B%22ImageURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Fobjectdet%2FDetectWhiteBaseImage%2FDetectWhiteBaseImage1.jpg%22%7D&tab=DEMO)在线调试能力,查看完整的调用示例代码及SDK依赖信息,也可以下载完整的工程。'."\n"
."\n"
.'5. 开发接入步骤:'."\n"
.'- 在[SDK总览](~~145033~~)中选择您要接入使用的SDK语言。'."\n"
.'- 在对应语言的SDK文档中找到AI类目为目标检测(objectdet)类目的SDK包进行安装。'."\n"
.'- 参考文档中提供的示例代码进行适当修改后调用。'."\n"
."\n"
.'6. 示例代码:该能力常用语言的示例代码,请参见[白底图检测示例代码](~~604401~~)。'."\n"
."\n"
.'7. 客户端直接调用:该能力常用的客户端调用方式包括以下几种。'."\n"
.'- [Web前端直接调用](~~467779~~)'."\n"
.'- [小程序场景下直接调用](~~467780~~)'."\n"
.'- [Android端直接调用](~~467781~~)'."\n"
.'- [iOS端直接调用](~~467782~~)'."\n"
."\n"
.'## 输入限制'."\n"
.'- 图像格式:JPG、JPEG、PNG。'."\n"
.'- 图像大小:不超过3 MB。'."\n"
.'- 图像分辨率:大于32×32像素,小于1280×1280像素。'."\n"
.'- URL地址中不能包含中文字符。'."\n"
.'## 安全声明'."\n"
.'- 请确保上传的图片或文件来源符合相应的法律法规。'."\n"
.'- 通过体验调试上传的临时文件有效期为1小时,在24小时后会被系统自动清理删除。'."\n"
.'## 计费说明'."\n"
.'关于白底图检测的计费方式及报价,请参见[计费介绍](~~202484~~)。'."\n"
."\n"
.'> 下方调试接口为付费接口,如需免费体验调试请前往[体验中心](https://vision.aliyun.com/experience/detail?&tagName=objectdet&children=DetectWhiteBaseImage)。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '## SDK参考'."\n"
.'阿里云视觉AI目标检测类目下的白底图检测能力推荐使用SDK调用,支持多种编程语言,调用时请选择AI类目为目标检测(objectdet)的SDK包,文件参数通过SDK调用可支持本地文件及任意URL,具体可参见[SDK总览](~~145033~~)。'."\n"
."\n"
.'## 示例代码'."\n"
.'该能力常用语言的示例代码,请参见[白底图检测示例代码](~~604401~~)。',
],
'DetectObject' => [
'methods' => [
'post',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
],
'parameters' => [
[
'name' => 'ImageURL',
'in' => 'formData',
'schema' => [
'description' => '图像URL地址。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。',
'type' => 'string',
'required' => true,
'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/objectdet/DetectObject/DetectObject1.jpg',
'isFileTransferUrl' => true,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '6EF97B44-2763-4EAD-8737-FB9F5EE25FE2',
],
'Data' => [
'description' => '返回的结果数据内容。',
'type' => 'object',
'properties' => [
'Elements' => [
'description' => '检测框数据集合。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Type' => [
'description' => '检测框对应的物体名称。具体类型如下所示。',
'type' => 'string',
'example' => 'chair',
],
'Boxes' => [
'type' => 'array',
'items' => [
'description' => '检测框坐标,格式为`[left, top, right, bottom]`。',
'type' => 'integer',
'format' => 'int32',
'example' => '[468, 238, 531, 299]',
],
],
'Score' => [
'description' => '检测到物体的置信度,取值范围为0~1。',
'type' => 'number',
'format' => 'float',
'example' => '0.266',
],
],
],
],
'Width' => [
'description' => '图片的宽度。',
'type' => 'integer',
'format' => 'int32',
'example' => '533',
],
'Height' => [
'description' => '图片的高度。',
'type' => 'integer',
'format' => 'int32',
'example' => '300',
],
],
],
],
],
],
],
'errorCodes' => [
400 => [
[
'errorCode' => 'ParameterError',
'errorMessage' => 'The parameter is invalid. Please check again.',
],
],
403 => [
[
'errorCode' => 'AuthFailed',
'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.',
],
],
408 => [
[
'errorCode' => 'Timeout',
'errorMessage' => 'The request has timed out.',
],
],
503 => [
[
'errorCode' => 'ServiceUnavailable',
'errorMessage' => 'The service is unavailable.',
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"6EF97B44-2763-4EAD-8737-FB9F5EE25FE2\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"Type\\": \\"chair\\",\\n \\"Boxes\\": [\\n 0\\n ],\\n \\"Score\\": 0.266\\n }\\n ],\\n \\"Width\\": 533,\\n \\"Height\\": 300\\n }\\n}","errorExample":""},{"type":"xml","example":"<DetectObjectResponse>\\n <RequestId>6EF97B44-2763-4EAD-8737-FB9F5EE25FE2</RequestId>\\n <Data>\\n <Height>300</Height>\\n <Elements>\\n <Score>0.266</Score>\\n <Type>chair</Type>\\n <Boxes>468</Boxes>\\n <Boxes>238</Boxes>\\n <Boxes>531</Boxes>\\n <Boxes>299</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.213</Score>\\n <Type>chair</Type>\\n <Boxes>452</Boxes>\\n <Boxes>168</Boxes>\\n <Boxes>531</Boxes>\\n <Boxes>233</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.308</Score>\\n <Type>picture/frame</Type>\\n <Boxes>487</Boxes>\\n <Boxes>44</Boxes>\\n <Boxes>501</Boxes>\\n <Boxes>96</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.257</Score>\\n <Type>picture/frame</Type>\\n <Boxes>477</Boxes>\\n <Boxes>67</Boxes>\\n <Boxes>484</Boxes>\\n <Boxes>98</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.201</Score>\\n <Type>picture/frame</Type>\\n <Boxes>503</Boxes>\\n <Boxes>26</Boxes>\\n <Boxes>524</Boxes>\\n <Boxes>85</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.515</Score>\\n <Type>pillow</Type>\\n <Boxes>161</Boxes>\\n <Boxes>141</Boxes>\\n <Boxes>181</Boxes>\\n <Boxes>158</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.293</Score>\\n <Type>pillow</Type>\\n <Boxes>473</Boxes>\\n <Boxes>143</Boxes>\\n <Boxes>496</Boxes>\\n <Boxes>157</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.214</Score>\\n <Type>pillow</Type>\\n <Boxes>241</Boxes>\\n <Boxes>145</Boxes>\\n <Boxes>253</Boxes>\\n <Boxes>166</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.374</Score>\\n <Type>potted plant</Type>\\n <Boxes>449</Boxes>\\n <Boxes>97</Boxes>\\n <Boxes>477</Boxes>\\n <Boxes>140</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.412</Score>\\n <Type>sofa</Type>\\n <Boxes>145</Boxes>\\n <Boxes>135</Boxes>\\n <Boxes>304</Boxes>\\n <Boxes>202</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.269</Score>\\n <Type>sofa</Type>\\n <Boxes>443</Boxes>\\n <Boxes>136</Boxes>\\n <Boxes>531</Boxes>\\n <Boxes>190</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.262</Score>\\n <Type>sofa</Type>\\n <Boxes>301</Boxes>\\n <Boxes>136</Boxes>\\n <Boxes>352</Boxes>\\n <Boxes>168</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.242</Score>\\n <Type>sofa</Type>\\n <Boxes>452</Boxes>\\n <Boxes>167</Boxes>\\n <Boxes>531</Boxes>\\n <Boxes>230</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.219</Score>\\n <Type>carpet</Type>\\n <Boxes>0</Boxes>\\n <Boxes>153</Boxes>\\n <Boxes>272</Boxes>\\n <Boxes>293</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.458</Score>\\n <Type>coffee table</Type>\\n <Boxes>171</Boxes>\\n <Boxes>172</Boxes>\\n <Boxes>214</Boxes>\\n <Boxes>214</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.358</Score>\\n <Type>coffee table</Type>\\n <Boxes>337</Boxes>\\n <Boxes>185</Boxes>\\n <Boxes>420</Boxes>\\n <Boxes>274</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.285</Score>\\n <Type>coffee table</Type>\\n <Boxes>386</Boxes>\\n <Boxes>159</Boxes>\\n <Boxes>428</Boxes>\\n <Boxes>192</Boxes>\\n </Elements>\\n <Elements>\\n <Score>0.214</Score>\\n <Type>mirror</Type>\\n <Boxes>503</Boxes>\\n <Boxes>26</Boxes>\\n <Boxes>524</Boxes>\\n <Boxes>85</Boxes>\\n </Elements>\\n <Width>533</Width>\\n </Data>\\n</DetectObjectResponse>","errorExample":""}]',
'title' => '物体检测',
'summary' => '本文为您介绍目标检测(objectdet)类目下的物体检测DetectObject的语法及示例。',
'description' => '## 功能描述'."\n"
.'物体检测能力可以检测输入图像中的物体。'."\n"
.'关于该接口功能的示例图如下:'."\n"
.''."\n"
."\n"
.'> - 您可以进入[在线咨询](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2)获取在线人工帮助。'."\n"
.'- 当前能力可在视觉智能开放平台有完整的免费产品体验,您可以单击[立即试用](https://vision.aliyun.com/experience/detail?&tagName=objectdet&children=DetectObject)对该能力进行更直观试用以及在线购买。'."\n"
.'- 阿里云视觉智能开放平台视觉AI能力API接入、接口使用或问题咨询等,请通过钉钉群(23109592)加入阿里云视觉智能开放平台咨询群联系我们。'."\n"
."\n"
.'## 接入指引'."\n"
.'1. 注册阿里云账号:打开[阿里云官网](https://www.aliyun.com),在阿里云官网右上角,单击**立即注册**,按照操作提示完成账号注册。'."\n"
.'2. 开通能力:请确保您已开通[目标检测服务](https://vision.aliyun.com/objectdet),若未开通服务请[立即开通](https://common-buy.aliyun.com/?commodityCode=viapi_objectdet_public_cn#/open)。'."\n"
.'3. 创建AccessKey:请确保您已[创建AccessKey](~~175144~~),如果您使用的是子账号AccessKey,您需要给子账号赋予AliyunVIAPIFullAccess权限,具体操作,请参见[RAM授权](~~145025~~)。'."\n"
.'4. 在线调试(可选):您可以通过[OpenAPI Explorer](https://next.api.aliyun.com/api/objectdet/2019-12-30/DetectObject?lang=JAVA&sdkStyle=old¶ms=%7B%22ImageURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Fobjectdet%2FDetectObject%2FDetectObject1.jpg%22%7D&tab=DEMO)在线调试能力,查看完整的调用示例代码及SDK依赖信息,也可以下载完整的工程。'."\n"
.'5. 开发接入步骤:'."\n"
."\n"
.'- 在[SDK总览](~~145033~~)中选择您要接入使用的SDK语言。'."\n"
.'- 在对应语言的SDK文档中找到AI类目为目标检测(objectdet)类目的SDK包进行安装。'."\n"
.'- 参考文档中提供的示例代码进行适当修改后调用。'."\n"
."\n"
.'6. 示例代码:该能力常用语言的示例代码,请参见[物体检测示例代码](~~604395~~)。'."\n"
."\n"
.'7. 客户端直接调用:该能力常用的客户端调用方式包括以下几种。'."\n"
.'- [Web前端直接调用](~~467779~~)'."\n"
.'- [小程序场景下直接调用](~~467780~~)'."\n"
.'- [Android端直接调用](~~467781~~)'."\n"
.'- [iOS端直接调用](~~467782~~)'."\n"
."\n"
.'## 输入限制'."\n"
."\n"
.'- 图像格式:JPEG、JPG、PNG、BMP。'."\n"
.'- 图像大小:不超过3 MB。'."\n"
.'- 图像分辨率:大于20×20像素,小于4096×4096像素。'."\n"
.'- URL地址中不能包含中文字符。'."\n"
."\n"
.'## 计费说明'."\n"
.'关于物体检测的计费方式及报价,请参见[计费介绍](~~202484~~)。'."\n"
."\n"
.'> 下方调试接口为付费接口,如需免费体验调试请前往[体验中心](https://vision.aliyun.com/experience/detail?&tagName=objectdet&children=DetectObject)。',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '## Type类型包括:'."\n"
."\n"
.'human(人体)、sneakers(胶底运动鞋)、chair(椅子)、hat(帽子)、lamp(灯)、cabinet/shelf(橱柜/ 架子)、car(汽车)、glasses(眼镜)、picture/frame(照片/图画)、street lights(街灯)、helmet(头盔)、pillow(枕头)、glove(手套)、potted plant(盆栽植物)、flower(花)、monitor(显示屏)、plants pot/vase(花盆)、boots(靴子)、umbrella(伞)、boat(小船)、flag(旗帜)、speaker(扬声器/话筒)、trash bin/can(垃圾桶)、backpack( 双肩背包)、sofa(沙发)、belt(腰带)、carpet(地毯)、coffee table(咖啡桌/茶几)、tie(领带)、bed(床)、traffic light(红绿灯)、necklace(项链)、mirror(镜子)、bicycle(自行车)、watch(手表)、horse(马)、traffic sign(交通标志)、stuffed animal(填充玩具动物)、motorbike/motorcycle(摩托车)、wild bird(鸟)、laptop(笔记本电脑)、cow(奶牛)、clock(时钟)、bus(公共汽车)、nightstand(床头柜)、sheep(绵羊)、traffic cone(锥形交通路标)、keyboard(键盘)、hockey stick(曲棍球球棍)、fan(电扇)、dog(狗)、blackboard/whiteboard(白板/黑板)、mouse(鼠标)、telephone(电话)、airplane(飞机)、skis(滑雪板)、soccer(英式足球)、combine with glove(棒球手套)、train(火车)、tent(帐篷)、sailboat(帆船)、kite(风筝)、computer box(计算机主机机箱)、elephant(大象)、stroller(折叠式婴儿车)、baseball bat(棒球棒)、skateboard(溜冰板)、surfboard(冲浪板)、cat(猫)、zebra(斑马)、sports car(跑车)、giraffe(长颈鹿)、radiator(散热器)、tennis racket(网球拍)、skating and skiing shoes(溜冰鞋)、baseball(棒球)、american football(美式橄榄球)、basketball(篮球)、printer(打印机)、fire hydrant(消防栓)、projector(投影仪)、fire extinguisher(灭火器)、tennis ball(网球)、frisbee(飞盘)、fire truck(消防车)、helicopter(直升飞机)、carriage(四轮马车)、bear(熊)、globe(地球仪)、volleyball(排球)。'."\n"
."\n\n"
.'## SDK参考'."\n"
.'阿里云视觉AI目标检测类目下的物体检测能力推荐使用SDK调用,支持多种编程语言,调用时请选择AI类目为目标检测(objectdet)的SDK包,文件参数通过SDK调用可支持本地文件及任意URL,具体可参见[SDK总览](~~145033~~)。'."\n"
."\n"
.'## 示例代码'."\n"
.'该能力常用语言的示例代码,请参见[物体检测示例代码](~~604395~~)。'."\n",
'extraInfo' => '## 错误码'."\n"
.'关于物体检测的错误码,详情请参见[常见错误码](~~146760~~)。'."\n"
."\n"
.'## 安全声明'."\n"
.'- 请确保上传的图片或文件来源符合相应的法律法规。'."\n"
.'- 通过体验调试上传的临时文件有效期为1小时,在24小时后会被系统自动清理删除。',
],
'DetectIPCObject' => [
'summary' => '本文为您介绍目标检测(objectdet)类目下的IPC图像目标检测DetectIPCObject的语法及示例。',
'methods' => [
'post',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
],
'parameters' => [
[
'name' => 'ImageURL',
'in' => 'formData',
'schema' => [
'title' => '图片URL地址',
'description' => '图像URL地址。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。',
'type' => 'string',
'required' => true,
'example' => 'https://viapi-test.oss-cn-shanghai.aliyuncs.com/objectdet/detect-ipc-xxxx.jpg',
'isFileTransferUrl' => true,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'Id of the request',
'description' => '请求ID。',
'type' => 'string',
'example' => '7AE23740-A3E5-5607-8E10-895DCBD4C260',
],
'Data' => [
'description' => '返回的结果数据内容。',
'type' => 'object',
'properties' => [
'Elements' => [
'description' => '检测到的目标集合,如果没有目标则为空。',
'type' => 'array',
'items' => [
'description' => '1',
'type' => 'object',
'properties' => [
'Type' => [
'description' => '检测框对应的物体名称,取值如下:'."\n"
."\n"
.'- PERSON:人物'."\n"
.'- VEHICLE:车辆'."\n"
.'- CAT:猫'."\n"
.'- DOG:狗',
'type' => 'string',
'example' => 'DOG',
],
'Score' => [
'description' => '检测框的置信度,取值范围\\[0.0,1.0]。',
'type' => 'number',
'format' => 'float',
'example' => '0.7138671875',
],
'Box' => [
'description' => '检测框坐标。',
'type' => 'array',
'items' => [
'description' => '检测框坐标,单位像素,格式为\\[left, top, right, bottom]。',
'type' => 'integer',
'format' => 'int64',
'example' => '[10,150,1587,1193]',
],
],
'TargetRate' => [
'description' => '目标检测框的面积大小和图像大小的比例。取值范围\\[0.0,1.0],1.0表示全屏。',
'type' => 'number',
'format' => 'float',
'example' => '0.8566723958333333',
],
],
],
],
'Width' => [
'description' => '图像的宽度,单位像素。',
'type' => 'integer',
'format' => 'int64',
'example' => '1600',
],
'Height' => [
'description' => '图像的高度,单位像素。',
'type' => 'integer',
'format' => 'int64',
'example' => '1200',
],
],
],
],
],
],
],
'errorCodes' => [
400 => [
[
'errorCode' => 'ParameterError',
'errorMessage' => 'The parameter is invalid. Please check again.',
],
],
403 => [
[
'errorCode' => 'AuthFailed',
'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.',
],
],
408 => [
[
'errorCode' => 'Timeout',
'errorMessage' => 'The request has timed out.',
],
],
503 => [
[
'errorCode' => 'ServiceUnavailable',
'errorMessage' => 'The service is unavailable.',
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"7AE23740-A3E5-5607-8E10-895DCBD4C260\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"Type\\": \\"DOG\\",\\n \\"Score\\": 0.7138671875,\\n \\"Box\\": [\\n 0\\n ],\\n \\"TargetRate\\": 0.8566723958333333\\n }\\n ],\\n \\"Width\\": 1600,\\n \\"Height\\": 1200\\n }\\n}","errorExample":""},{"type":"xml","example":"<DetectIPCObjectResponse>\\n <RequestId>7AE23740-A3E5-5607-8E10-895DCBD4C260</RequestId>\\n <Data>\\n <Height>1200</Height>\\n <Elements>\\n <TargetRate>0.21299583333333333</TargetRate>\\n <Type>CAT</Type>\\n <Score>0.85107421875</Score>\\n <Box>7</Box>\\n <Box>665</Box>\\n <Box>783</Box>\\n <Box>1192</Box>\\n </Elements>\\n <Elements>\\n <TargetRate>0.8566723958333333</TargetRate>\\n <Type>DOG</Type>\\n <Score>0.7138671875</Score>\\n <Box>10</Box>\\n <Box>150</Box>\\n <Box>1587</Box>\\n <Box>1193</Box>\\n </Elements>\\n <Width>1600</Width>\\n </Data>\\n</DetectIPCObjectResponse>","errorExample":""}]',
'title' => 'IPC图像目标检测',
'description' => '## 功能描述'."\n"
.'IPC图像目标检测能力可以检测到输入图像中的目标物体,例如人、车辆、宠物等。'."\n"
."\n"
.'> - 您可以进入[在线咨询](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2)获取在线人工帮助。'."\n"
.'- 当前能力可在视觉智能开放平台有完整的免费产品体验,您可以单击[立即试用](https://vision.aliyun.com/experience/detail?&tagName=objectdet&children=DetectIPCObject)对该能力进行更直观试用以及在线购买。'."\n"
.'- 阿里云视觉智能开放平台视觉AI能力API接入、接口使用或问题咨询等,请通过钉钉群(23109592)加入阿里云视觉智能开放平台咨询群联系我们。'."\n"
."\n"
.'## 应用场景'."\n"
."\n"
.'- 智能看家:家中有人或宠物移动时可生成高精度视频,实现检测提醒功能。且可以关注宠物在家中的活动状况。'."\n"
.'- 智能看店:可对门店起到安防作用,尤其是在夜间,可及时知道有人进店。'."\n"
.'- 智能看厂:安全是厂区非常重要的事情,对于人员在岗以及人员入侵可以起到良好的监管作用。'."\n"
."\n"
.'## 特色优势'."\n"
."\n"
.'- 适用场景多:适应多种广泛的日常场景的目标检测,室内、室外、家居、店铺、商场、白天、夜间等。'."\n"
.'- 检测范围广:可检测的目标大小范围广,适用于大目标检测,也适用于较远摄像头下的小目标检测。'."\n"
.'- 检测效率高:高并发处理,处理时间短。'."\n"
."\n"
.'## 接入指引'."\n"
.'1. 注册阿里云账号:打开[阿里云官网](https://www.aliyun.com),在阿里云官网右上角,单击**立即注册**,按照操作提示完成账号注册。'."\n"
.'2. 开通能力:请确保您已开通[目标检测服务](https://vision.aliyun.com/objectdet),若未开通服务请[立即开通](https://common-buy.aliyun.com/?commodityCode=viapi_objectdet_public_cn#/open)。'."\n"
.'3. 创建AccessKey:请确保您已[创建AccessKey](~~175144~~),如果您使用的是子账号AccessKey,您需要给子账号赋予AliyunVIAPIFullAccess权限,具体操作,请参见[RAM授权](~~145025~~)。'."\n"
.'4. 在线调试(可选):您可以通过[OpenAPI Explorer](https://next.api.aliyun.com/api/objectdet/2019-12-30/DetectIPCObject?lang=JAVA&sdkStyle=old¶ms=%7B%22ImageURL%22%3A%22https%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Fobjectdet%2FDetectIPCObject%2FDetectIPCObject1.jpg%22%7D&tab=DEMO)在线调试能力,查看完整的调用示例代码及SDK依赖信息,也可以下载完整的工程。'."\n"
.'5. 开发接入步骤:'."\n"
.'- 在[SDK总览](~~145033~~)中选择您要接入使用的SDK语言。'."\n"
.'- 在对应语言的SDK文档中找到AI类目为目标检测(objectdet)类目的SDK包进行安装。'."\n"
.'- 参考文档中提供的示例代码进行适当修改后调用。'."\n"
."\n"
.'6. 示例代码:该能力常用语言的示例代码,请参见[IPC图像目标检测示例代码](~~604396~~)。'."\n"
."\n"
.'7. 客户端直接调用:该能力常用的客户端调用方式包括以下几种。'."\n"
.'- [Web前端直接调用](~~467779~~)'."\n"
.'- [小程序场景下直接调用](~~467780~~)'."\n"
.'- [Android端直接调用](~~467781~~)'."\n"
.'- [iOS端直接调用](~~467782~~)'."\n"
."\n"
.'## 输入限制'."\n"
."\n"
.'- 图像格式:JPEG、JPG、PNG、BMP。'."\n"
.'- 图像大小:不超过2 MB。'."\n"
.'- 图像分辨率:大于20×20像素,小于1024×1024像素。并非越高清准确度越高,推荐值:最大边为640像素。'."\n"
.'- URL地址中不能包含中文字符。'."\n"
."\n"
.'## 计费说明'."\n"
.'关于IPC图像目标检测的计费方式及报价,请参见[计费介绍](~~202484~~)。'."\n"
."\n"
.'> 下方调试接口为付费接口,如需免费体验调试请前往[体验中心](https://vision.aliyun.com/experience/detail?&tagName=objectdet&children=DetectIPCObject)。',
'responseParamsDescription' => '## SDK参考'."\n"
.'阿里云视觉AI目标检测类目下的IPC图像目标检测能力推荐使用SDK调用,支持多种编程语言,调用时请选择AI类目为目标检测(objectdet)的SDK包,文件参数通过SDK调用可支持本地文件及任意URL,具体可参见[SDK总览](~~145033~~)。'."\n"
."\n"
.'## 示例代码'."\n"
.'该能力常用语言的示例代码,请参见[IPC图像目标检测示例代码](~~604396~~)。',
'extraInfo' => '## 错误码'."\n"
.'关于IPC图像目标检测的错误码,详情请参见[常见错误码](~~146760~~)。'."\n"
."\n"
.'## 安全声明'."\n"
.'- 请确保上传的图片或文件来源符合相应的法律法规。'."\n"
.'- 通过体验调试上传的临时文件有效期为1小时,在24小时后会被系统自动清理删除。',
],
'DetectVideoIPCObject' => [
'summary' => '本文为您介绍目标检测(objectdet)类目下的IPC视频目标检测DetectVideoIPCObject的语法及示例。',
'methods' => [
'post',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
],
'parameters' => [
[
'name' => 'VideoURL',
'in' => 'formData',
'schema' => [
'title' => '视频文件URL地址',
'description' => '视频文件URL地址。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。',
'type' => 'string',
'required' => true,
'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/objectdet/DetectVideoIPCObject/DetectVideoIPCObject1.mp4',
'isFileTransferUrl' => true,
],
],
[
'name' => 'StartTimestamp',
'in' => 'formData',
'schema' => [
'title' => '视频的开始时间戳(秒),即UTC时间,默认为0',
'description' => '视频实际开始时间的时间戳。例如视频开始时间是2021年8月16日12:00,对应时间戳为1629086400。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'minimum' => '0',
'example' => '1629086400',
],
],
[
'name' => 'CallbackOnlyHasObject',
'in' => 'formData',
'schema' => [
'title' => '是否只有检测到物体才回调',
'description' => '是否回调消息过滤。'."\n"
."\n"
.'- true:如果输入的视频中检测到有目标,才会执行回调,否则不执行。'."\n"
.'- false: 无论是否检测到有目标,都执行回调。',
'type' => 'boolean',
'required' => false,
'example' => 'true',
'default' => 'false',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'JobId',
'description' => '请求ID。',
'type' => 'string',
'example' => '35B11E1B-800C-4598-B5AA-577E3BDBD917',
],
'Message' => [
'description' => '提交异步任务后的提示信息。',
'type' => 'string',
'example' => '该调用为异步调用,任务已提交成功,请以requestId的值作为jobId参数调用同类目下GetAsyncJobResult接口查询任务执行状态和结果。',
],
'Data' => [
'description' => '返回的结果数据内容。该数据需要在异步任务执行成功后,通过调用[GetAsyncJobResult](~~607824~~)接口,对其Result字段进行JSON反序列化之后得到。',
'type' => 'object',
'properties' => [
'Width' => [
'title' => '视频文件的分辨率(像素)',
'description' => '视频宽度分辨率,单位像素。',
'type' => 'integer',
'format' => 'int64',
'example' => '1280',
],
'Height' => [
'title' => '视频文件的分辨率(像素)',
'description' => '视频高度分辨率,单位像素。',
'type' => 'integer',
'format' => 'int64',
'example' => '720',
],
'Frames' => [
'title' => '视频帧的集合,未检测到目标的帧不列出',
'description' => '视频帧的集合,未检测到目标的帧不列出。',
'type' => 'array',
'items' => [
'description' => '1',
'type' => 'object',
'properties' => [
'Time' => [
'title' => '视频帧时间,startTimestamp+视频帧的相对时间的值,单位毫秒,如果startTimestamp为空,则是相对时间',
'description' => '时间戳,单位秒。',
'type' => 'integer',
'format' => 'int64',
'example' => '6124533574',
],
'Elements' => [
'description' => '检测到的目标集合,如果没有目标则为空。',
'type' => 'array',
'items' => [
'description' => '1',
'type' => 'object',
'properties' => [
'Type' => [
'description' => '检测框对应的物体名称。取值如下:'."\n"
."\n"
.'- PERSON:人'."\n"
.'- VEHICLE:车辆'."\n"
.'- PET:宠物',
'type' => 'string',
'example' => 'PERSON',
],
'X' => [
'description' => '左上角X轴坐标,单位像素。',
'type' => 'integer',
'format' => 'int64',
'example' => '289',
],
'Y' => [
'description' => '左上角Y轴坐标,单位像素。',
'type' => 'integer',
'format' => 'int64',
'example' => '271',
],
'Width' => [
'description' => '检测框宽度,单位像素。',
'type' => 'integer',
'format' => 'int64',
'example' => '100',
],
'Height' => [
'description' => '检测框高度,单位像素。',
'type' => 'integer',
'format' => 'int64',
'example' => '156',
],
'Score' => [
'description' => '检测框的置信度,取值范围为\\[0.0,1.0]。',
'type' => 'number',
'format' => 'float',
'example' => '0.7812',
],
],
],
],
],
],
],
'InputFile' => [
'title' => '输入文件信息',
'description' => '输入文件信息。',
'type' => 'string',
'example' => 'oss://viapi-test/viapi-3.0domepic/objectdet/DetectVideoIPCObject/DetectVideoIPCObject4.mp4',
],
],
],
],
],
],
],
'errorCodes' => [
400 => [
[
'errorCode' => 'ParameterError',
'errorMessage' => 'The parameter is invalid. Please check again.',
],
],
403 => [
[
'errorCode' => 'AuthFailed',
'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.',
],
],
408 => [
[
'errorCode' => 'Timeout',
'errorMessage' => 'The request has timed out.',
],
],
503 => [
[
'errorCode' => 'ServiceUnavailable',
'errorMessage' => 'The service is unavailable.',
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"35B11E1B-800C-4598-B5AA-577E3BDBD917\\",\\n \\"Message\\": \\"该调用为异步调用,任务已提交成功,请以requestId的值作为jobId参数调用同类目下GetAsyncJobResult接口查询任务执行状态和结果。\\",\\n \\"Data\\": {\\n \\"Width\\": 1280,\\n \\"Height\\": 720,\\n \\"Frames\\": [\\n {\\n \\"Time\\": 6124533574,\\n \\"Elements\\": [\\n {\\n \\"Type\\": \\"PERSON\\",\\n \\"X\\": 289,\\n \\"Y\\": 271,\\n \\"Width\\": 100,\\n \\"Height\\": 156,\\n \\"Score\\": 0.7812\\n }\\n ]\\n }\\n ],\\n \\"InputFile\\": \\"oss://viapi-test/viapi-3.0domepic/objectdet/DetectVideoIPCObject/DetectVideoIPCObject4.mp4\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<DetectVideoIPCObjectResponse>\\n <RequestId>35B11E1B-800C-4598-B5AA-577E3BDBD917</RequestId>\\n <Message>该调用为异步调用,任务已提交成功,请以requestId的值作为jobId参数调用同类目下GetAsyncJobResult接口查询任务执行状态和结果。</Message>\\n</DetectVideoIPCObjectResponse>","errorExample":""}]',
'title' => 'IPC视频目标检测',
'description' => '## 功能描述'."\n"
.'IPC视频目标检测能力可以检测到输入视频中的目标物体,例如人、车辆、宠物等。'."\n"
."\n"
.'> - 您可以进入[在线咨询](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2)获取在线人工帮助。'."\n"
.'- 当前能力可在视觉智能开放平台有完整的免费产品体验,您可以单击[立即试用](https://vision.aliyun.com/experience/detail?&tagName=objectdet&children=DetectVideoIPCObject)对该能力进行更直观试用以及在线购买。'."\n"
.'- 阿里云视觉智能开放平台视觉AI能力API接入、接口使用或问题咨询等,请通过钉钉群(23109592)加入阿里云视觉智能开放平台咨询群联系我们。'."\n"
."\n"
.'## 应用场景'."\n"
."\n"
.'- 智能看家:家中有人或宠物移动时可生成高精度视频,实现检测提醒功能。且可以关注宠物在家中的活动状况。'."\n"
.'- 智能看店:可对门店起到安防作用,尤其是在夜间,可及时知道有人进店。'."\n"
.'- 智能看厂:安全是厂区非常重要的事情,对于人员在岗以及人员入侵可以起到良好的监管作用。'."\n"
."\n"
.'## 特色优势'."\n"
."\n"
.'- 适用场景多:适应多种广泛的日常场景的目标检测,室内、室外、家居、店铺、商场、白天、夜间等。'."\n"
.'- 检测范围广:可检测的目标大小范围广,适用于大目标检测,也适用于较远摄像头下的小目标检测。'."\n"
.'- 检测效率高:高并发处理,处理时间短。'."\n"
."\n\n"
.'## 接入指引'."\n"
.'1. 注册阿里云账号:打开[阿里云官网](https://www.aliyun.com),在阿里云官网右上角,单击**立即注册**,按照操作提示完成账号注册。'."\n"
.'2. 开通能力:请确保您已开通[目标检测服务](https://vision.aliyun.com/objectdet),若未开通服务请[立即开通](https://common-buy.aliyun.com/?commodityCode=viapi_objectdet_public_cn#/open)。'."\n"
.'3. 创建AccessKey:请确保您已[创建AccessKey](~~175144~~),如果您使用的是子账号AccessKey,您需要给子账号赋予AliyunVIAPIFullAccess权限,具体操作,请参见[RAM授权](~~145025~~)。'."\n"
.'4. 在线调试(可选):您可以通过[OpenAPI Explorer](https://next.api.aliyun.com/api/objectdet/2019-12-30/DetectVideoIPCObject?lang=JAVA&sdkStyle=old¶ms=%7B%22VideoURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Fobjectdet%2FDetectVideoIPCObject%2FDetectVideoIPCObject1.mp4%22%7D&tab=DEMO)在线调试能力,查看完整的调用示例代码及SDK依赖信息,也可以下载完整的工程。'."\n"
."\n"
.'5. 开发接入步骤:'."\n"
.'- 在[SDK总览](~~145033~~)中选择您要接入使用的SDK语言。'."\n"
.'- 在对应语言的SDK文档中找到AI类目为目标检测(objectdet)类目的SDK包进行安装。'."\n"
.'- 参考文档中提供的示例代码进行适当修改后调用。'."\n"
."\n"
.'6. 示例代码:该能力常用语言查询异步任务结果的示例代码,请参见[查询异步任务结果示例代码](~~607974~~)。'."\n"
."\n"
.'7. 客户端直接调用:该能力常用的客户端调用方式包括以下几种。'."\n"
.'- [Web前端直接调用](~~467779~~)'."\n"
.'- [小程序场景下直接调用](~~467780~~)'."\n"
.'- [Android端直接调用](~~467781~~)'."\n"
.'- [iOS端直接调用](~~467782~~)'."\n"
."\n"
.'## 输入限制'."\n"
."\n"
.'- 视频格式:H264、H265。'."\n"
.'- 视频分辨率:大于20×20像素,小于4096×4096像素。'."\n"
.'- 视频帧率:要求在35帧以内。'."\n"
.'- 视频大小:不超过10 MB。'."\n"
.'- 视频时长:不超过10秒。'."\n"
.'- URL地址中不能包含中文字符。'."\n"
."\n"
.'## 计费说明'."\n"
.'关于IPC视频目标检测的计费方式及报价,请参见[计费介绍](~~202484~~)。'."\n"
."\n"
.'> 下方调试接口为付费接口,如需免费体验调试请前往[体验中心](https://vision.aliyun.com/experience/detail?&tagName=objectdet&children=DetectVideoIPCObject)。'."\n"
."\n"
.'## 调用步骤'."\n"
.'该能力为异步能力,需分两步进行调用。'."\n"
.'第一步调用DetectVideoIPCObject接口提交任务,请求成功后,得到一个任务ID。'."\n"
.'第二步调用[GetAsyncJobResult](~~607824~~)接口查询结果,根据任务ID查询任务执行状态和结果。如果任务还在处理中,可稍等一段时间后再进行查询。',
'responseParamsDescription' => '## 查询结果'."\n"
.'该接口为异步接口,当前并未返回真实的请求结果,您需要通过返回的RequestId调用GetAsyncJobResult接口来获取该接口的真实请求结果。详情请参见[GetAsyncJobResult](~~607824~~)。'."\n"
."\n"
.'## SDK参考'."\n"
.'阿里云视觉AI目标检测类目下的IPC视频目标检测能力推荐使用SDK调用,支持多种编程语言,调用时请选择AI类目为目标检测(objectdet)的SDK包,文件参数通过SDK调用可支持本地文件及任意URL,具体可参见[SDK总览](~~145033~~)。'."\n"
."\n"
.'## 示例代码'."\n"
.'该能力常用语言查询异步任务结果的示例代码,请参见[查询异步任务结果示例代码](~~607974~~)。',
'extraInfo' => '## 错误码'."\n"
.'关于IPC视频目标检测的错误码,详情请参见[常见错误码](~~146760~~)。'."\n"
."\n"
.'## 安全声明'."\n"
.'- 请确保上传的图片或文件来源符合相应的法律法规。'."\n"
.'- 通过体验调试上传的临时文件有效期为1小时,在24小时后会被系统自动清理删除。',
],
'DetectWorkwear' => [
'summary' => '本文为您介绍目标检测(objectdet)类目下的着装检测DetectWorkwear的语法及示例。',
'methods' => [
'post',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'Clothes',
'in' => 'formData',
'style' => 'json',
'schema' => [
'description' => '着装参数设置',
'type' => 'object',
'properties' => [
'MaxNum' => [
'description' => '设定最多识别多少人体。最大值为5。',
'type' => 'integer',
'format' => 'int64',
'required' => false,
'example' => '1',
],
'Threshold' => [
'description' => '设定阈值。取值范围0.0~1.0,数值越大,要求和样本数据相似度越高,默认0.4。',
'type' => 'number',
'format' => 'double',
'required' => false,
'example' => '0.4',
],
],
'required' => false,
'example' => 'AiStore',
],
],
[
'name' => 'ImageUrl',
'in' => 'formData',
'schema' => [
'description' => '图像URL地址。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。',
'type' => 'string',
'required' => false,
'example' => 'https://viapi-test.oss-cn-shanghai.aliyuncs.com/test-team/zhangchaorun/tiyan/xxxx.jpg',
'isFileTransferUrl' => true,
],
],
[
'name' => 'Labels',
'in' => 'formData',
'style' => 'repeatList',
'schema' => [
'type' => 'array',
'items' => [
'description' => '检测的属性,取值如下:'."\n"
."\n"
.'- mask:口罩'."\n"
.'- hat:帽子'."\n"
.'- clothes:衣服'."\n"
.'> clothes属性已废弃,检测结果将不再输出clothes(衣服)检测的结果。'."\n",
'type' => 'string',
'required' => false,
'example' => 'hat',
],
'required' => false,
'maxItems' => 3,
'minItems' => 0,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'Id of the request',
'description' => '请求ID。',
'type' => 'string',
'example' => '16CA8094-D7BC-51D4-8D55-6AC59AB20E0B',
],
'Data' => [
'description' => '返回的结果数据内容。',
'type' => 'object',
'properties' => [
'Elements' => [
'description' => '检测结果。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Property' => [
'description' => '检测结果属性。仅当**Type**返回0或1时,该字段显示返回结果,否则返回为空。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Label' => [
'description' => '检测的属性。',
'type' => 'string',
'example' => 'hat',
],
'Probability' => [
'description' => '检测概率数据。',
'type' => 'object',
'properties' => [
'No' => [
'description' => '确定未戴口罩、未穿工装、未戴帽子的概率。',
'type' => 'number',
'format' => 'double',
'example' => '0.00036084422',
],
'Threshold' => [
'description' => '系统推荐的阈值。',
'type' => 'integer',
'format' => 'int64',
'example' => '0',
],
'Unknown' => [
'description' => '未知概率。',
'type' => 'number',
'format' => 'double',
'example' => '0.0006906331',
],
'Yes' => [
'description' => '确定戴口罩、穿工装、戴帽子的概率。',
'type' => 'number',
'format' => 'double',
'example' => '0.9989485',
],
],
],
],
],
],
'Rectangles' => [
'description' => '检测结果位置信息。',
'type' => 'object',
'properties' => [
'Height' => [
'description' => '高度,单位像素。',
'type' => 'integer',
'format' => 'int64',
'example' => '96',
],
'Left' => [
'description' => '左上角Y坐标,单位像素。',
'type' => 'integer',
'format' => 'int64',
'example' => '1067',
],
'Top' => [
'description' => '左上角X坐标,单位像素。',
'type' => 'integer',
'format' => 'int64',
'example' => '426',
],
'Width' => [
'description' => '宽度,单位像素。',
'type' => 'integer',
'format' => 'int64',
'example' => '88',
],
],
],
'Score' => [
'description' => '检测结果概率值。',
'type' => 'number',
'format' => 'double',
'example' => '0.63913465',
],
'Type' => [
'description' => '检测结果类型。取值如下:'."\n"
."\n"
.'- 0:人体'."\n"
.'- 1:人头'."\n"
.'- 2:人脸'."\n"
.'- 3:手',
'type' => 'string',
'example' => '1',
],
],
],
],
],
],
],
],
],
],
'errorCodes' => [
400 => [
[
'errorCode' => 'ParameterError',
'errorMessage' => 'The parameter is invalid. Please check again.',
],
],
403 => [
[
'errorCode' => 'AuthFailed',
'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.',
],
],
408 => [
[
'errorCode' => 'Timeout',
'errorMessage' => 'The request has timed out.',
],
],
503 => [
[
'errorCode' => 'ServiceUnavailable',
'errorMessage' => 'The service is unavailable.',
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"16CA8094-D7BC-51D4-8D55-6AC59AB20E0B\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"Property\\": [\\n {\\n \\"Label\\": \\"hat\\",\\n \\"Probability\\": {\\n \\"No\\": 0.00036084422,\\n \\"Threshold\\": 0,\\n \\"Unknown\\": 0.0006906331,\\n \\"Yes\\": 0.9989485\\n }\\n }\\n ],\\n \\"Rectangles\\": {\\n \\"Height\\": 96,\\n \\"Left\\": 1067,\\n \\"Top\\": 426,\\n \\"Width\\": 88\\n },\\n \\"Score\\": 0.63913465,\\n \\"Type\\": \\"1\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DetectWorkwearResponse>\\r\\n <RequestId>16CA8094-D7BC-51D4-8D55-6AC59AB20E0B</RequestId>\\r\\n <Data>\\r\\n <Elements>\\r\\n <Property>\\r\\n <Label>hat</Label>\\r\\n <Probability>\\r\\n <No>0.00036084422</No>\\r\\n <Threshold>0</Threshold>\\r\\n <Unknown>0.0006906331</Unknown>\\r\\n <Yes>0.9989485</Yes>\\r\\n </Probability>\\r\\n </Property>\\r\\n <Rectangles>\\r\\n <Height>96</Height>\\r\\n <Left>1067</Left>\\r\\n <Top>426</Top>\\r\\n <Width>88</Width>\\r\\n </Rectangles>\\r\\n <Score>0.63913465</Score>\\r\\n <Type>1</Type>\\r\\n </Elements>\\r\\n </Data>\\r\\n</DetectWorkwearResponse>","errorExample":""}]',
'title' => '着装检测',
'description' => '## 服务说明'."\n"
.'由于产品业务调整,着装检测服务于 即日起停止新用户开通调用,历史开通过该服务的老用户可继续调用,2026年04月20日后该服务将下架,不再支持新老用户调用,请尽早寻找替代方案。如果对着装检测 API 服务使用有疑问,可通过搜索钉钉群(23109592)加入阿里云视觉智能开放平台咨询群联系我们。'."\n"
."\n"
.'## 功能描述'."\n"
.'着装检测能力基于视觉AI算法、物联网、大数据分析技术,检测指定场景范围内的人员帽子、口罩、工作服等穿戴情况,对不规范穿戴行为进行实时预警。'."\n"
."\n"
.'> - 您可以进入[在线咨询](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2)获取在线人工帮助。'."\n"
.'- 阿里云视觉智能开放平台视觉AI能力API接入、接口使用或问题咨询等,请通过钉钉群(23109592)加入阿里云视觉智能开放平台咨询群联系我们。'."\n"
."\n\n"
.'## 应用场景'."\n"
.'工作人员规范着装识别:检测餐厅(后厨、前场)、服务大厅、工地、工厂、油田等场景下的工作人员着装(衣服、帽子、口罩等)是否合规,针对不规范行为进行实时预警,并提醒进行相应整改。'."\n"
."\n\n"
.'## 特色优势'."\n"
."\n"
.'- 识别准确:基于大量场景样本的基础上,对不同环境、光线、角度、目标状态等进行针对性的训练学习,算法模型识别精度高。'."\n"
.'- 适应性强:算法模型场景适应性强,可直接用于不同空间布局的场景、各类餐厅后厨及用餐前场。'."\n"
.'- 自研算法:通过多端多场景风险发现互通,形成检测、预警、整改、优化全链路闭环,结合数据分析、规则提取实现反哺生产,进而优化模型性能。'."\n"
."\n\n"
.'## 输入限制'."\n"
."\n"
.'- 图像格式:JPG、JPEG、PNG、BMP。'."\n"
.'- 图像大小:不超过2 MB,长宽比建议为16:9。'."\n"
.'- 图像分辨率:大于1080×720像素。'."\n"
.'- URL地址中不能包含中文字符。'."\n"
.'- 推荐的图像和检测目标的分辨率如下表所示。'."\n"
.''."\n"
."\n"
.'## 安全声明'."\n"
.'- 请确保上传的图片或文件来源符合相应的法律法规。'."\n"
.'- 通过体验调试上传的临时文件有效期为1小时,在24小时后会被系统自动清理删除。'."\n"
."\n"
.'## 计费说明'."\n"
.'关于着装检测的计费方式及报价,请参见[计费介绍](~~202484~~)。'."\n"
."\n"
.'> 下方调试接口为付费接口。',
'responseParamsDescription' => '## SDK参考'."\n"
.'阿里云视觉AI目标检测类目下的着装检测能力推荐使用SDK调用,支持多种编程语言,调用时请选择AI类目为目标检测(objectdet)的SDK包,文件参数通过SDK调用可支持本地文件及任意URL,具体可参见[SDK总览](~~145033~~)。'."\n"
."\n"
.'## 示例代码'."\n"
.'该能力常用语言的示例代码,请参见[着装检测示例代码](~~477842~~)。',
],
'DetectKitchenAnimals' => [
'summary' => '本文为您介绍目标检测(objectdet)类目下的猫鼠识别DetectKitchenAnimals的语法及示例。',
'methods' => [
'post',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'ImageURLA',
'in' => 'formData',
'schema' => [
'description' => '图像A的URL地址。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。',
'type' => 'string',
'required' => true,
'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/objectdet/DetectKitchenAnimals/DetectKitchenAnimals-left1.png',
'isFileTransferUrl' => true,
],
],
[
'name' => 'ImageURLB',
'in' => 'formData',
'schema' => [
'description' => '图像B的URL地址。推荐使用上海地域的OSS链接,对于文件在本地或者非上海地域OSS链接的情况,请参见[文件URL处理](~~155645~~)。',
'type' => 'string',
'required' => true,
'example' => 'http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/objectdet/DetectKitchenAnimals/DetectKitchenAnimals-right1.png',
'isFileTransferUrl' => true,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => [
'title' => 'Id of the request',
'description' => '请求ID。',
'type' => 'string',
'example' => 'C306F16F-30E1-54F4-93DF-A52CCF6664D1',
],
'Data' => [
'description' => '返回的结果数据内容。',
'type' => 'object',
'properties' => [
'Elements' => [
'description' => '检测结果。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Type' => [
'description' => '检测结果类型。取值如下:'."\n"
."\n"
.'- mouse:老鼠'."\n"
.'- cat:猫',
'type' => 'string',
'example' => 'mouse',
],
'Score' => [
'description' => '检测结果概率值。',
'type' => 'number',
'format' => 'float',
'example' => '0.75105053',
],
'Rectangles' => [
'description' => '检测目标位置。',
'type' => 'object',
'properties' => [
'Top' => [
'description' => '左上角X坐标,单位像素。',
'type' => 'integer',
'format' => 'int64',
'example' => '1048',
],
'Left' => [
'description' => '左上角Y坐标,单位像素。',
'type' => 'integer',
'format' => 'int64',
'example' => '292',
],
'Height' => [
'description' => '高度,单位像素。',
'type' => 'integer',
'format' => 'int64',
'example' => '64',
],
'Width' => [
'description' => '宽度,单位像素。',
'type' => 'integer',
'format' => 'int64',
'example' => '64',
],
],
],
],
],
],
],
],
],
],
],
],
'errorCodes' => [
400 => [
[
'errorCode' => 'ParameterError',
'errorMessage' => 'The parameter is invalid. Please check again.',
],
],
403 => [
[
'errorCode' => 'AuthFailed',
'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.',
],
],
408 => [
[
'errorCode' => 'Timeout',
'errorMessage' => 'The request has timed out.',
],
],
503 => [
[
'errorCode' => 'ServiceUnavailable',
'errorMessage' => 'The service is unavailable.',
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"C306F16F-30E1-54F4-93DF-A52CCF6664D1\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"Type\\": \\"mouse\\",\\n \\"Score\\": 0.75105053,\\n \\"Rectangles\\": {\\n \\"Top\\": 1048,\\n \\"Left\\": 292,\\n \\"Height\\": 64,\\n \\"Width\\": 64\\n }\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DetectKitchenAnimalsResponse>\\n <RequestId>C306F16F-30E1-54F4-93DF-A52CCF6664D1</RequestId>\\n <Data>\\n <Elements>\\n <Type>mouse</Type>\\n <Score>0.75105053</Score>\\n <Rectangles>\\n <Left>292</Left>\\n <Top>1048</Top>\\n <Height>64</Height>\\n <Width>64</Width>\\n </Rectangles>\\n </Elements>\\n <Elements>\\n <Type>cat</Type>\\n <Score>0.4602436</Score>\\n <Rectangles>\\n <Left>1344</Left>\\n <Top>208</Top>\\n <Height>112</Height>\\n <Width>164</Width>\\n </Rectangles>\\n </Elements>\\n </Data>\\n</DetectKitchenAnimalsResponse>","errorExample":""}]',
'title' => '猫鼠识别',
'description' => '## 服务说明'."\n"
.'由于产品业务调整,猫鼠识别服务于 即日起停止新用户开通调用,历史开通过该服务的老用户可继续调用,2026年04月20日后该服务将下架,不再支持新老用户调用,请尽早寻找替代方案。如果对猫鼠识别 API 服务使用有疑问,可通过搜索钉钉群(23109592)加入阿里云视觉智能开放平台咨询群联系我们。'."\n"
."\n"
.'## 功能描述'."\n"
.'猫鼠识别能力基于视觉AI算法、物联网和大数据分析技术,可以检测出场景中是否有猫、老鼠等动物,实现实时预警。'."\n"
."\n"
.'> - 您可以进入[在线咨询](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2)获取在线人工帮助。'."\n"
.'- 阿里云视觉智能开放平台视觉AI能力API接入、接口使用或问题咨询等,请通过钉钉群(23109592)加入阿里云视觉智能开放平台咨询群联系我们。'."\n"
."\n"
.'## 应用场景'."\n"
.'餐饮后厨或仓库:针对后厨操作间、食材存储仓库等场地,实时检测是否有猫、老鼠等动物,并进行实时预警,提醒工作人员进行相应处理防范。'."\n"
."\n"
.'## 特色优势'."\n"
."\n"
.'- 识别准确:基于大量场景样本的基础上,对不同环境、光线、角度、目标状态等进行针对性的训练学习,算法模型识别精度高。'."\n"
.'- 适应性强:算法模型场景适应性强,可直接用于不同空间布局的场景、各类餐厅后厨及用餐前场。'."\n"
.'- 自研算法:通过多端多场景风险发现互通,形成检测、预警、整改、优化全链路闭环,结合数据分析、规则提取实现反哺生产,进而优化模型性能。'."\n"
."\n\n"
."\n"
.'## 输入限制'."\n"
."\n"
.'- 图像格式:JPG、JPEG、PNG、BMP。'."\n"
.'- 图像大小:不超过4 MB,长宽比建议为16:9。'."\n"
.'- 图像分辨率:大于1080×720像素。'."\n"
.'- 输入的连续图像尺寸需要保持一致。'."\n"
.'- 需要采集摄像头视角的图像。'."\n"
.'- 图像URL地址中不能包含中文字符。'."\n"
.'- 推荐的图像和检测目标的分辨率如下表所示。'."\n"
.''."\n"
.'## 安全声明'."\n"
.'- 请确保上传的图片或文件来源符合相应的法律法规。'."\n"
.'- 通过体验调试上传的临时文件有效期为1小时,在24小时后会被系统自动清理删除。'."\n"
.'## 计费说明'."\n"
.'关于猫鼠识别的计费方式及报价,请参见[计费介绍](~~202484~~)。'."\n"
."\n"
.'> 下方调试接口为付费接口,如需免费体验调试请前往[体验中心](https://vision.aliyun.com/experience/detail?&tagName=objectdet&children=DetectKitchenAnimals)。',
'responseParamsDescription' => '## SDK参考'."\n"
.'阿里云视觉AI目标检测类目下的猫鼠识别能力推荐使用SDK调用,支持多种编程语言,调用时请选择AI类目为目标检测(objectdet)的SDK包,文件参数通过SDK调用可支持本地文件及任意URL,具体可参见[SDK总览](~~145033~~)。'."\n"
."\n"
.'## 示例代码'."\n"
.'该能力常用语言的示例代码,请参见[猫鼠识别示例代码](~~604399~~)。',
],
'GetAsyncJobResult' => [
'summary' => '查询异步任务结果GetAsyncJobResult的语法及示例。',
'methods' => [
'get',
'post',
],
'schemes' => [
'http',
'https',
],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'JobId',
'in' => 'formData',
'schema' => [
'description' => '异步接口返回的RequestId,输入后可以查询异步接口的真实请求结果。',
'type' => 'string',
'required' => true,
'example' => '35B11E1B-800C-4598-B5AA-577E3BDBD917',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '1',
'type' => 'object',
'properties' => [
'RequestId' => [
'description' => '请求ID。',
'type' => 'string',
'example' => '87FC80D2-2571-4BBD-BD61-AFF7912C556D',
],
'Data' => [
'description' => '返回的结果数据内容。',
'type' => 'object',
'properties' => [
'Status' => [
'description' => '异步任务状态。包括:'."\n"
."\n"
.'- QUEUING:任务排队中'."\n"
.'- PROCESSING:异步处理中'."\n"
.'- PROCESS_SUCCESS:处理成功'."\n"
.'- PROCESS_FAILED:处理失败'."\n"
.'- TIMEOUT_FAILED:任务超时未处理完成'."\n"
.'- LIMIT_RETRY_FAILED:超过最大重试次数',
'type' => 'string',
'example' => 'PROCESS_SUCCESS',
],
'ErrorMessage' => [
'description' => '异步任务错误码信息。',
'type' => 'string',
'example' => 'paramsIllegal',
],
'Result' => [
'description' => '异步任务返回的真实请求结果。',
'type' => 'string',
'example' => '{\\"inputFile\\":\\"oss://public-vigen-video/guotian.xgt/test_images/test_video\\",\\"width\\":1280,\\"height\\":720,\\"frames\\":[{\\"time\\":6124533574,\\"elements\\":[{\\"type\\":\\"PERSON\\",\\"score\\":0.7812,\\"x\\":289,\\"y\\":271,\\"width\\":100,\\"height\\":156},{\\"type\\":\\"PERSON\\",\\"score\\":0.4377,\\"x\\":917,\\"y\\":267,\\"width\\":34,\\"height\\":51}]}]}]}"}',
],
'ErrorCode' => [
'description' => '异步任务错误码。',
'type' => 'string',
'example' => 'InvalidParameter',
],
'JobId' => [
'description' => '异步任务ID。',
'type' => 'string',
'example' => '35B11E1B-800C-4598-B5AA-577E3BDBD917',
],
],
],
],
],
],
],
'errorCodes' => [
400 => [
[
'errorCode' => 'ParameterError',
'errorMessage' => 'The parameter is invalid. Please check again.',
],
],
403 => [
[
'errorCode' => 'AuthFailed',
'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.',
],
],
408 => [
[
'errorCode' => 'Timeout',
'errorMessage' => 'The request has timed out.',
],
],
503 => [
[
'errorCode' => 'ServiceUnavailable',
'errorMessage' => 'The service is unavailable.',
],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"87FC80D2-2571-4BBD-BD61-AFF7912C556D\\",\\n \\"Data\\": {\\n \\"Status\\": \\"PROCESS_SUCCESS\\",\\n \\"ErrorMessage\\": \\"paramsIllegal\\",\\n \\"Result\\": \\"{\\\\\\\\\\\\\\"inputFile\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"oss://public-vigen-video/guotian.xgt/test_images/test_video\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"width\\\\\\\\\\\\\\":1280,\\\\\\\\\\\\\\"height\\\\\\\\\\\\\\":720,\\\\\\\\\\\\\\"frames\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"time\\\\\\\\\\\\\\":6124533574,\\\\\\\\\\\\\\"elements\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PERSON\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"score\\\\\\\\\\\\\\":0.7812,\\\\\\\\\\\\\\"x\\\\\\\\\\\\\\":289,\\\\\\\\\\\\\\"y\\\\\\\\\\\\\\":271,\\\\\\\\\\\\\\"width\\\\\\\\\\\\\\":100,\\\\\\\\\\\\\\"height\\\\\\\\\\\\\\":156},{\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PERSON\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"score\\\\\\\\\\\\\\":0.4377,\\\\\\\\\\\\\\"x\\\\\\\\\\\\\\":917,\\\\\\\\\\\\\\"y\\\\\\\\\\\\\\":267,\\\\\\\\\\\\\\"width\\\\\\\\\\\\\\":34,\\\\\\\\\\\\\\"height\\\\\\\\\\\\\\":51}]}]}]}\\\\\\"}\\",\\n \\"ErrorCode\\": \\"InvalidParameter\\",\\n \\"JobId\\": \\"35B11E1B-800C-4598-B5AA-577E3BDBD917\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>87FC80D2-2571-4BBD-BD61-AFF7912C556D</RequestId>\\n<Data>\\n <Status>PROCESS_SUCCESS</Status>\\n <ErrorMessage>paramsIllegal</ErrorMessage>\\n <Result>{\\\\\\"inputFile\\\\\\":\\\\\\"oss://public-vigen-video/guotian.xgt/test_images/test_video\\\\\\",\\\\\\"width\\\\\\":1280,\\\\\\"height\\\\\\":720,\\\\\\"frames\\\\\\":[{\\\\\\"time\\\\\\":6124533574,\\\\\\"elements\\\\\\":[{\\\\\\"type\\\\\\":\\\\\\"PERSON\\\\\\",\\\\\\"score\\\\\\":0.7812,\\\\\\"x\\\\\\":289,\\\\\\"y\\\\\\":271,\\\\\\"width\\\\\\":100,\\\\\\"height\\\\\\":156},{\\\\\\"type\\\\\\":\\\\\\"PERSON\\\\\\",\\\\\\"score\\\\\\":0.4377,\\\\\\"x\\\\\\":917,\\\\\\"y\\\\\\":267,\\\\\\"width\\\\\\":34,\\\\\\"height\\\\\\":51}]}]}]}\\"}</Result>\\n <ErrorCode>InvalidParameter</ErrorCode>\\n <JobId>35B11E1B-800C-4598-B5AA-577E3BDBD917</JobId>\\n</Data>","errorExample":""}]',
'title' => '查询异步任务结果',
'description' => '## 功能描述'."\n"
.'针对异步接口,调用API接口后,返回的并不是真正的请求结果,您需要保存返回结果中的RequestId,然后调用GetAsyncJobResult来获取真正的请求结果。'."\n"
."\n"
.'> - 异步任务的文件有过期时间,有效期是30分钟。如需长期使用,需及时将文件下载到本地服务器或存储在OSS中。有关OSS更多操作信息,请参见[上传文件](~~31886~~)。'."\n"
.'- 阿里云视觉智能开放平台视觉AI能力API接入、接口使用或问题咨询等,请通过钉钉群(23109592)加入阿里云视觉智能开放平台咨询群联系我们。'."\n"
."\n\n"
.'当前目标检测类目中IPC视频目标检测(DetectVideoIPCObject)为异步接口,需要调用GetAsyncJobResult来获取真实的请求结果。',
'extraInfo' => '## 错误码'."\n"
.'关于查询异步任务结果的错误码,详情请参见[常见错误码](~~146760~~)。'."\n"
."\n"
.'## SDK参考'."\n"
.'阿里云视觉AI能力支持使用SDK调用,具体可参见[SDK总览](~~145033~~)下载安装。'."\n"
."\n"
.'## 安全声明'."\n"
.'- 请确保上传的图片或文件来源符合相应的法律法规。'."\n"
.'- 通过体验调试上传的临时文件有效期为1小时,在24小时后会被系统自动清理删除。',
],
],
'endpoints' => [
[
'regionId' => 'cn-shanghai',
'endpoint' => 'objectdet.cn-shanghai.aliyuncs.com',
],
],
];
|