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
|
<?php return [
'version' => '1.0',
'info' => ['style' => 'RPC', 'product' => 'imagerecog', 'version' => '2019-09-30'],
'directories' => [
[
'children' => ['EvaluateCertificateQuality'],
'type' => 'directory',
'title' => 'Results',
],
[
'children' => ['TaggingImage'],
'type' => 'directory',
'title' => 'Annotation',
],
[
'children' => ['ClassifyingRubbish', 'DetectImageElements', 'RecognizeImageColor', 'RecognizeImageStyle', 'RecognizeScene'],
'type' => 'directory',
'title' => 'Recognition',
],
[
'children' => ['GetAsyncJobResult', 'TaggingAdImage'],
'title' => 'Others',
'type' => 'directory',
],
],
'components' => [
'schemas' => [],
],
'apis' => [
'ClassifyingRubbish' => [
'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. 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/imagerecog/ClassifyingRubbish/ClassifyingRubbish6.jpg', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '1619647E-92ED-5641-A1D9-F05C33FD294A', 'title' => ''],
'Data' => [
'description' => 'The returned result data.',
'type' => 'object',
'properties' => [
'Sensitive' => ['description' => 'Indicates whether the image contains sensitive information.'."\n"
."\n"
.'- true: The image contains sensitive information. Specific waste classification information is not returned.'."\n"
."\n"
.'- false: The image does not contain sensitive information.', 'type' => 'boolean', 'example' => 'false', 'title' => ''],
'Elements' => [
'description' => 'The waste recognition results.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'CategoryScore' => ['description' => 'The confidence score of the recognized waste category.', 'type' => 'number', 'format' => 'float', 'example' => '0.9406', 'title' => ''],
'Rubbish' => ['description' => 'The specific item name.', 'type' => 'string', 'example' => '纸板箱', 'title' => ''],
'RubbishScore' => ['description' => 'The confidence score of the item name.', 'type' => 'number', 'format' => 'float', 'example' => '0.9406', 'title' => ''],
'Category' => ['description' => 'The waste category. Valid values: 可回收垃圾 (recyclable waste), 干垃圾 (dry waste), 湿垃圾 (wet waste), and 有害垃圾 (hazardous waste).', 'type' => 'string', 'example' => '可回收垃圾', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => ''],
],
403 => [
['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => ''],
],
408 => [
['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1619647E-92ED-5641-A1D9-F05C33FD294A\\",\\n \\"Data\\": {\\n \\"Sensitive\\": false,\\n \\"Elements\\": [\\n {\\n \\"CategoryScore\\": 0.9406,\\n \\"Rubbish\\": \\"纸板箱\\",\\n \\"RubbishScore\\": 0.9406,\\n \\"Category\\": \\"可回收垃圾\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => 'Waste classification and recognition',
'summary' => 'Describes the syntax and provides examples for the ClassifyingRubbish operation.',
'description' => '## Feature description'."\n"
.'The waste classification and recognition feature classifies waste items in images and returns specific item names.'."\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 platform. Click [Try Now](https://vision.aliyun.com/experience/detail?&tagName=imagerecog&children=ClassifyingRubbish) to experience this feature or purchase it online.'."\n"
.'- For questions about API integration or usage of Alibaba Cloud Vision Intelligence 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 [image recognition service](https://vision.aliyun.com/imagerecog). If you have not activated the service, [activate it now](https://common-buy.aliyun.com/?commodityCode=viapi_imagerecog_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/imagerecog/2019-09-30/ClassifyingRubbish?lang=JAVA&sdkStyle=dara¶ms=%7B%22ImageURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Fimagerecog%2FClassifyingRubbish%2FClassifyingRubbish1.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 and install the SDK package for the image recognition (imagerecog) AI 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 common programming languages, see [Waste categorization sample code](~~601145~~).'."\n"
."\n"
.'7. 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 type: JPEG, JPG, or PNG.'."\n"
.'- Image size: up to 3 MB.'."\n"
.'- Image resolution: No limit on image resolution, but a very 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 the billable methods and pricing of waste categorization and recognition, see [Billing overview](~~202481~~).'."\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=imagerecog&children=ClassifyingRubbish).',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '## Common waste output values'."\n"
.'- 湿垃圾 (Wet waste):'."\n"
.'八宝粥,冰激凌,冰糖葫芦,饼干,菠萝,菠萝蜜,菜根菜叶,残渣剩饭,草莓,茶叶,肠,橙子,蛋,蛋糕,蛋挞,地瓜,豆,豆腐,番茄,粉条,甘蔗,骨头,瓜子,果冻,果壳,果皮,哈密瓜,核桃,火龙果,火腿,鸡翅,坚果,秸秆杯,秸秆碗,咖啡,烤鸡,辣椒,梨,萝卜,面包,蘑菇,泡菜,苹果,巧克力,肉类,圣女果,蔬菜,薯片,薯条,水果,蒜,鱼骨。'."\n"
."\n"
.'- 可回收垃圾 (Recyclable waste):'."\n"
.'包,保温杯,保鲜膜内芯,玻璃壶,玻璃瓶,玻璃器皿,玻璃球,玻璃制品,不锈钢制品,布制品,餐垫,餐具,插头电线,插线板,尺子,充电宝,充电头,充电线,充电牙刷,吹风机,磁铁,搓衣板,打包绳,打气筒,打印机,单车,档案袋,刀,地球仪,地铁票,灯罩,登机牌,凳子,电磁炉,电动卷发棒,电动剃须刀,电饭煲,电风扇,电话,电路板,显示器,电视机,电熨斗,电子秤,垫子,吊牌,调料瓶,钉子,订书机,豆浆机,耳机,耳套,放大镜,盖子,购物纸袋,锅,锅盖,果冻杯,过滤网,盒子,呼啦圈,护肤品瓶,话筒,计算器,键盘,金属罐,金属制品,酒瓶,卡片,空气加湿器,空气净化器,裤子,快递纸袋,拉杆箱,量杯,笼子,路由器,铝制用品,轮胎,帽子,灭火器,模具,木雕,木棍,木桶,木制切菜板,木质锅铲,木质梳子,奶粉罐,闹铃,尼龙绳,镊子,暖宝宝,盘子,泡沫板,乒乓球拍,棋子,铅球,裙子,燃气瓶,燃气灶,热水瓶,日历,扫地机器人,沙发,食用油桶,饰品,收音机,手表,手电筒,手机,手链,书,鼠标,水杯,水壶,塑料碗盆,塑料制品,台灯,太阳能热水器,毯子,体重秤,铁丝球,拖鞋,袜子,玩具,碗,网卡,望远镜,洗发水瓶,箱子,鞋,鞋子,信封,烟灰缸,遥控器,钥匙,衣服,衣架,音响,饮料瓶,鱼缸,瑜伽球,雨伞,枕头,纸牌,纸箱,纸制品,桌子。'."\n"
."\n"
.'- 干垃圾 (Dry waste):'."\n"
.'百洁布,笔,便利贴,彩票,餐盒,餐巾纸,苍蝇拍,草帽,茶壶碎片,唱片,车票,除湿袋,厨房抹布,厨房手套,串串竹签,创可贴,搓澡巾,打火机,起泡网,大龙虾头,电蚊香,电影票,防霉防蛀片,干燥剂,鸡毛掸,胶带,胶水包装,酒精棉,空调滤芯,口罩,毛巾,奶茶杯,破碎陶瓷,湿纸巾,塑料袋,图钉,涂改带,卫生纸,牙签,牙刷,烟蒂,眼镜,眼镜布,验孕棒,一次性杯子,一次性棉签,竹筷,U型回形针,陶瓷。'."\n"
."\n"
.'- 有害垃圾 (Hazardous waste):'."\n"
.'灯,电池,电池板,胶水,纽扣电池,杀虫剂,温度计,蓄电池,血压计,药膏,药片,药品包装,药瓶,指甲油。'."\n"
."\n"
.'## SDK reference'."\n"
.'For the waste classification and recognition feature under the Alibaba Cloud Vision AI image recognition category, we recommend using the SDK. Multiple programming languages are supported. When calling the operation, select the SDK package for the image recognition (imagerecog) AI category. The SDK supports both local files and arbitrary URLs as file parameters. For more information, see [SDK overview](~~145033~~).'."\n"
."\n"
.'## Sample code'."\n"
.'For sample code in common programming languages, see [ClassifyingRubbish sample code](~~601145~~).',
'extraInfo' => '## Error codes'."\n"
.'For error codes of waste classification and recognition, see [Common error codes](~~145022~~).'."\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-03-30T03:34:17.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ClassifyingRubbish'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'viapi-imagerecog:ClassifyingRubbish',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'DetectImageElements' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'Url',
'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/imagerecog/DetectImageElements/DetectImageElements5.jpg', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '7EE82437-AEC4-5AAF-819F-AB28C23EE0FC', 'title' => ''],
'Data' => [
'description' => 'The returned result data.',
'type' => 'object',
'properties' => [
'Elements' => [
'description' => 'The element list.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Type' => ['description' => 'The element type. Valid values:'."\n"
.'UnType (undefined type), AllType (all types), RootType (root type), Synthesis (composite element), Embedded (all nested types), Format (element format), MajorObject (subject), Character (text), Identifier (identifier), Background (background), Decoration (decoration), MajorHuman (human model), MajorAuction (product), MajorThing (object), MajorOther (other subject), CharMain (main text), CharSub (secondary text), CharAction (call-to-action text), CharContent (content text), CharNumber (numeric text), CharOther (other text), IdentLogo (logo identifier), IdentLight (highlight identifier), IdentCode (code identifier), IdentOther (other identifier), BackBitmap (bitmap background), BackVector (vector background), BackOther (other background), DecoTile (tiled decoration), DecoRegion (regional decoration), DecoPieces (fragment decoration), DecoEdge (edge decoration), DecoLine (linear decoration), DecoBox (box decoration), DecoChar (call-to-action text decoration), DecoOther (other decoration), SynthMajor (subject group), SynthChar (text group), SynthIdent (identifier group), SynthBack (background group), SynthDeco (decoration group), SynthOther (other group), EmbedSvg (SVG nested format), EmbedJson (JSON nested format), EmbedHtml (HTML nested format).', 'type' => 'string', 'example' => 'majorhuman', 'title' => ''],
'Width' => ['description' => 'The width of the element.', 'type' => 'integer', 'format' => 'int32', 'example' => '285', 'title' => ''],
'Height' => ['description' => 'The height of the element.', 'type' => 'integer', 'format' => 'int32', 'example' => '354', 'title' => ''],
'Y' => ['description' => 'The Y-coordinate of the upper-left corner of the element.', 'type' => 'integer', 'format' => 'int32', 'example' => '78', 'title' => ''],
'Score' => ['description' => 'The confidence score. A higher confidence score indicates a higher probability that the element type is correctly identified. Value range: [0.0, 1.0].', 'type' => 'number', 'format' => 'float', 'example' => '0.997097373008728', 'title' => ''],
'X' => ['description' => 'The X-coordinate of the upper-left corner of the element.', 'type' => 'integer', 'format' => 'int32', 'example' => '287', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => ''],
],
403 => [
['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => ''],
],
408 => [
['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7EE82437-AEC4-5AAF-819F-AB28C23EE0FC\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"Type\\": \\"majorhuman\\",\\n \\"Width\\": 285,\\n \\"Height\\": 354,\\n \\"Y\\": 78,\\n \\"Score\\": 0.997097373008728,\\n \\"X\\": 287\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => 'Element recognition',
'summary' => 'This topic describes the syntax and examples of the DetectImageElements operation for element recognition.',
'description' => '## Feature description'."\n"
.'The element recognition feature identifies the elements contained in an input image, annotates their positions with bounding boxes, and classifies them into primitive data types (person, decoration, and text).'."\n"
."\n"
.'- Input image:'."\n"
.''."\n"
.'- Output image:'."\n"
.''."\n"
."\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=imagerecog&children=DetectImageElements) 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 [image recognition service](https://vision.aliyun.com/imagerecog). If you have not activated the service, [activate it now](https://common-buy.aliyun.com/?commodityCode=viapi_imagerecog_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/imagerecog/2019-09-30/DetectImageElements?lang=JAVA&sdkStyle=dara¶ms=%7B%22Url%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Fimagerecog%2FDetectImageElements%2FDetectImageElements1.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 image recognition (imagerecog) 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. Sample code: For sample code in commonly used languages, see [Element recognition sample code](~~601121~~).'."\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: JPG, JPEG, BMP, or PNG.'."\n"
.'- Image size: up to 3 MB.'."\n"
.'- Image resolution: up to 1280 × 1280 pixels.'."\n"
.'- The URL cannot contain Chinese characters.'."\n"
."\n"
.'## Billing description'."\n"
.'For the billable methods and pricing of element recognition, see [Billing overview](~~202481~~).'."\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=imagerecog&children=DetectImageElements).',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '## SDK reference'."\n"
.'We recommend that you use an SDK to call the element recognition feature under the Alibaba Cloud Vision AI image recognition category. The SDK supports multiple programming languages. When calling the operation, select the SDK package for the image recognition (imagerecog) AI 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 [Element recognition sample code](~~601121~~).',
'extraInfo' => '## Error codes'."\n"
.'For error codes of element recognition, see [Common error codes](~~145022~~).'."\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-03-30T03:34:17.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DetectImageElements'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'viapi-imagerecog:DetectImageElements',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'EvaluateCertificateQuality' => [
'methods' => ['post', 'get'],
'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) URL in the Shanghai region. If the file is stored locally or the OSS URL is not in the Shanghai region, see [File URL processing](~~155645~~).', 'type' => 'string', 'required' => true, 'isFileTransferUrl' => true, 'example' => 'https://viapi-doc.oss-cn-shanghai.aliyuncs.com/imagerecog/xxxxx.jpg', 'title' => ''],
],
[
'name' => 'Type',
'in' => 'formData',
'schema' => ['description' => 'The document type. Valid values:'."\n"
."\n"
.'- IDCard: identity card.'."\n"
.'- BusinessLicense: electronic business license.', 'type' => 'string', 'required' => true, 'example' => 'BusinessLicense', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '656318DC-3856-43E3-9147-859532721AD6', 'title' => ''],
'Data' => [
'description' => 'The returned result data.',
'type' => 'object',
'properties' => [
'Elements' => [
'description' => 'The list of identified quality issues.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Value' => ['description' => 'The issue type. Valid values:'."\n"
."\n"
.'- lackoffront: front-facing photo is missing.'."\n"
.'- copy: the photo is a photocopy.'."\n"
.'- imageincomplete: the document image is incomplete.'."\n"
.'- nationalemblemincomplete: the national emblem on the business license is incomplete.'."\n"
.'- lackofseal: a seal is missing.'."\n"
.'- electronic: the photo is from an electronic file.'."\n"
.'- reflection: glare is detected.'."\n"
."\n"
.'> - If the request parameter **Type** is set to IDCard, the lackofseal value is not applicable.'."\n"
.'- If the request parameter **Type** is set to BusinessLicense, the lackoffront value is not applicable.', 'type' => 'string', 'example' => 'lackoffront', 'title' => ''],
'Pass' => ['description' => 'Indicates whether the check is passed. Valid values:'."\n"
."\n"
.'- true: The check is passed.'."\n"
.'- false: The check is not passed.'."\n"
.'- verify: The document quality cannot be verified. Confirm manually.'."\n"
.'- ERROR: The algorithm inference for this module failed.', 'type' => 'string', 'example' => 'false', 'title' => ''],
'Score' => ['description' => 'The quality issue score. A higher score indicates a more severe issue. The value is an integer from 0 to 100.'."\n"
."\n"
.'- If the system cannot provide a score, the output is `score`.'."\n"
.'- If the **Pass** field is `ERROR`, the output is `null`.', 'type' => 'string', 'example' => '0.06514739990234375', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => ''],
],
403 => [
['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => ''],
],
408 => [
['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"656318DC-3856-43E3-9147-859532721AD6\\",\\n \\"Data\\": {\\n \\"Elements\\": [\\n {\\n \\"Value\\": \\"lackoffront\\",\\n \\"Pass\\": \\"false\\",\\n \\"Score\\": \\"0.06514739990234375\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => 'ID photo quality review',
'summary' => 'This topic describes the syntax and provides examples of the EvaluateCertificateQuality operation for ID photo quality review.',
'description' => '## Feature description'."\n"
.'The ID photo quality review feature identifies whether a captured ID photo has quality issues and specifies the types of quality issues detected.'."\n"
."\n"
.'> - You can visit [Online Consultation](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2) for online assistance.'."\n"
.'- To learn more about Alibaba Cloud Vision Intelligence Open Platform visual AI API integration, usage, or consultation, join the DingTalk group (23109592) to contact us.'."\n"
."\n"
.'## Common scenarios'."\n"
."\n"
.'- Online verification: During online verification, you need to submit photos of identity cards, business licenses, passports, checks, and other documents. The quality of captured photos varies, and some photos may not meet the clarity requirements for verification due to shooting conditions or watermarks. The ID photo quality review feature can automatically identify quality issues in document images, reducing the need for manual review.'."\n"
.'- Registration: During offline registration, you need to capture electronic copies of documents. However, shooting conditions vary, and some photos may have quality issues. The ID photo quality review feature can filter out photos with quality issues to prevent operation failures and errors during subsequent use and recognition.'."\n"
."\n"
.'## Advantages'."\n"
."\n"
.'- Comprehensive inspection: Performs a comprehensive inspection of photo quality factors that affect verification. The inspection items include: whether the photo is of the target document type, whether a front-facing photo is missing, whether the photo is a photocopy, whether the document image is complete, whether a seal is missing, whether the photo is from an electronic file, whether there is glare, whether there is watermark coverage, and text clarity. These aspects are evaluated to determine whether the photo affects verification validity.'."\n"
.'- Real-world business experience: This algorithm is refined through real-world business practices at Alibaba and summarizes various quality issues that affect registration review, helping to automate business processes.'."\n"
."\n"
.'## Integration guide'."\n"
.'1. Create an Alibaba Cloud account: Go to the [Alibaba Cloud official website](https://www.aliyun.com), click **China Site Account** in the upper-right corner, and follow the instructions to create an account.'."\n"
.'2. Activate the feature: Make sure that you have activated the [image recognition service](https://vision.aliyun.com/imagerecog). If you have not activated the service, [activate it now](https://common-buy.aliyun.com/?commodityCode=viapi_imagerecog_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/imagerecog/2019-09-30/EvaluateCertificateQuality?lang=JAVA) to debug the 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 that you want to use from [SDK overview](~~145033~~).'."\n"
.'- Find the SDK package for the image recognition (imagerecog) 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. Sample code: For sample code in commonly used programming languages, see [EvaluateCertificateQuality sample code](~~601120~~).'."\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 a mini program](~~467780~~)'."\n"
.'- [Direct call from Android](~~467781~~)'."\n"
.'- [Direct call from iOS](~~467782~~).'."\n"
."\n"
.'## Input limits'."\n"
.'- Image type: JPEG, JPG, BMP, or PNG.'."\n"
.'- Image size: less than 10 MB.'."\n"
.'- Image resolution: greater than 100 × 100 pixels and less than 5000 × 5000 pixels.'."\n"
.'- The URL cannot contain Chinese characters.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '## SDK reference'."\n"
.'For the ID photo quality review feature under the Alibaba Cloud Vision AI image recognition category, we recommend that you use the SDK. The SDK supports multiple programming languages. When calling the operation, select the SDK package for the image recognition (imagerecog) AI 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 programming languages, see [EvaluateCertificateQuality sample code](~~601120~~).',
'extraInfo' => '## Error codes'."\n"
.'For error codes of the ID photo quality review feature, see [Common error codes](~~145022~~).'."\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 console are valid for 1 hour and are automatically deleted by the system after 24 hours.',
'changeSet' => [
['createdAt' => '2022-03-30T03:34:17.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EvaluateCertificateQuality'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'viapi-imagerecog:EvaluateCertificateQuality',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'GetAsyncJobResult' => [
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'JobId',
'in' => 'query',
'schema' => ['description' => 'The RequestId returned by the asynchronous operation. You can use this parameter to query the actual result of the asynchronous operation.', 'type' => 'string', 'required' => true, 'example' => '72CFDC08-3FEF-56AA-91E5-B14DE31C09C2', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '1',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '572974F0-1014-5C60-97EE-DBFFC0FF7616', 'title' => ''],
'Data' => [
'description' => 'The returned result 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 returned by the asynchronous task.', 'type' => 'string', 'example' => '{\\"tags\\":[{\\"confidence\\":-1,\\"value\\":\\"{\\\\\\"tagInfo\\\\\\": {\\\\\\"humanInfo\\\\\\": [[{\\\\\\"category\\\\\\": \\\\\\"human-real-normal\\\\\\", \\\\\\"score\\\\\\": 0.9690580798778683, \\\\\\"bbox\\\\\\": [77, 280, 431, 569], \\\\\\"cloth_category\\\\\\": \\\\\\"modern\\\\\\", \\\\\\"cloth_category_score\\\\\\": 0.7393399477005005}]], \\\\\\"sceneInfo\\\\\\": [[{\\\\\\"category\\\\\\": \\\\\\"gamescreen-gameeffect\\\\\\", \\\\\\"score\\\\\\": 0.44200169294841274}]], \\\\\\"objectInfo\\\\\\": [null]}}\\"}]}', 'title' => ''],
'ErrorCode' => ['description' => 'The error code of the asynchronous task.', 'type' => 'string', 'example' => 'InvalidParameter', 'title' => ''],
'JobId' => ['description' => 'The asynchronous task ID.', 'type' => 'string', 'example' => '72CFDC08-3FEF-56AA-91E5-B14DE31C09C2', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => ''],
],
403 => [
['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => ''],
],
408 => [
['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"572974F0-1014-5C60-97EE-DBFFC0FF7616\\",\\n \\"Data\\": {\\n \\"Status\\": \\"PROCESS_SUCCESS\\",\\n \\"ErrorMessage\\": \\"paramsIllegal\\",\\n \\"Result\\": \\"{\\\\\\\\\\\\\\"tags\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"confidence\\\\\\\\\\\\\\":-1,\\\\\\\\\\\\\\"value\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"tagInfo\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": {\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"humanInfo\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": [[{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"category\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"human-real-normal\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"score\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": 0.9690580798778683, \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"bbox\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": [77, 280, 431, 569], \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"cloth_category\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"modern\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"cloth_category_score\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": 0.7393399477005005}]], \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"sceneInfo\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": [[{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"category\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"gamescreen-gameeffect\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"score\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": 0.44200169294841274}]], \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"objectInfo\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": [null]}}\\\\\\\\\\\\\\"}]}\\",\\n \\"ErrorCode\\": \\"InvalidParameter\\",\\n \\"JobId\\": \\"72CFDC08-3FEF-56AA-91E5-B14DE31C09C2\\"\\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"
.'For asynchronous operations, the response returned after you invoke an API operation is not 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 them for long-term use, download the files to a local server or store them in Object Storage Service (OSS) promptly. For more information about OSS operations, see [Upload objects](~~31886~~).'."\n"
.'> - To learn more about accessing Alibaba Cloud Vision Intelligence Open Platform visual AI API operations, using the operations, or consulting on related issues, join the DingTalk group (23109592) to contact us.'."\n"
."\n\n"
.'In the image recognition category, the TaggingAdImage operation for ad creative analysis is an asynchronous operation. You must invoke GetAsyncJobResult to obtain the actual result.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '## SDK reference'."\n"
.'We recommend that you use the Alibaba Cloud Vision AI SDK, which supports multiple programming languages. You can use the SDK to call operations with local files or URLs as file parameters. For more information, see [SDK overview](~~145033~~).',
'extraInfo' => '## Error codes'."\n"
.'For error codes of the asynchronous task result query operation, see [Common error codes](~~145022~~).'."\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' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAsyncJobResult'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'viapi-imagerecog:GetAsyncJobResult',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'RecognizeImageColor' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'Url',
'in' => 'formData',
'schema' => ['description' => 'The URL of the image. We recommend that you use an Object Storage Service (OSS) URL 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/imagerecog/RecognizeImageColor/RecognizeImageColor1.jpg', 'title' => ''],
],
[
'name' => 'ColorCount',
'in' => 'formData',
'schema' => ['description' => 'The expected number of colors in the output palette. Valid values: 1 to 10. Default value: 3.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '16', 'minimum' => '1', 'pattern' => '^\\d+$', 'default' => '3', 'example' => '5', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'CCC7C1D9-8C0F-58AD-ADE3-C331B83BD6F2', 'title' => ''],
'Data' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'ColorTemplateList' => [
'description' => 'The color palette list.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Color' => ['description' => 'The RGB color value in hexadecimal format, such as 291A18.', 'type' => 'string', 'example' => '270315', 'title' => ''],
'Percentage' => ['description' => 'The proportion of the current color label. Value range: `[0.0, 1.0]`.', 'type' => 'number', 'format' => 'float', 'example' => '0.459527', 'title' => ''],
'Label' => ['description' => 'The color label. A total of 11 labels are supported: black, white, gray, red, orange, yellow, green, cyan, blue, purple, and magenta.', 'type' => 'string', 'example' => 'red', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => ''],
],
403 => [
['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => ''],
],
408 => [
['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"CCC7C1D9-8C0F-58AD-ADE3-C331B83BD6F2\\",\\n \\"Data\\": {\\n \\"ColorTemplateList\\": [\\n {\\n \\"Color\\": \\"270315\\",\\n \\"Percentage\\": 0.459527,\\n \\"Label\\": \\"red\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => 'Color recognition',
'summary' => 'This topic describes the syntax and examples of the RecognizeImageColor operation.',
'description' => '## Feature description'."\n"
.'The color recognition feature analyzes the color information of an input image and outputs color values (in RGB and HEX formats) along with their corresponding proportions.'."\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=imagerecog&children=RecognizeImageColor) 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 feature: Make sure you have activated the [image recognition service](https://vision.aliyun.com/imagerecog). If you have not activated the service, [activate it now](https://common-buy.aliyun.com/?commodityCode=viapi_imagerecog_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/imagerecog/2019-09-30/RecognizeImageColor?lang=JAVA&sdkStyle=dara¶ms={%22Url%22:%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Fimagerecog%2FRecognizeImageColor%2FRecognizeImageColor1.jpg%22,%22ColorCount%22:3}&tab=DEBUG) 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 image recognition (imagerecog) 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. Sample code: For sample code in commonly used languages, see [Color recognition sample code](~~478784~~).'."\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, or BMP.'."\n"
.'- Image size: up to 9.5 MB.'."\n"
.'- Image resolution: less than 2500 × 2500 pixels.'."\n"
.'- Images must be in RGB 3-channel format.'."\n"
."\n"
.'- The URL cannot contain Chinese characters.'."\n"
."\n"
.'## Billing description'."\n"
.'For information about the billable methods and pricing of color recognition, see [Billing overview](~~202481~~).'."\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=imagerecog&children=RecognizeImageColor).',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '## SDK reference'."\n"
.'For the color recognition feature under the Alibaba Cloud Vision AI image recognition category, we recommend that you use the SDK. The SDK supports multiple programming languages. When calling the operation, select the SDK package for the image recognition (imagerecog) AI 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 [Color recognition sample code](~~478784~~).',
'extraInfo' => '## Error codes'."\n"
.'For error codes of color recognition, see [Common error codes](~~145022~~).'."\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 feature are valid for 1 hour and are automatically deleted by the system after 24 hours.',
'changeSet' => [
['createdAt' => '2022-03-30T03:34:17.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeImageColor'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'viapi-imagerecog:RecognizeImageColor',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'RecognizeImageStyle' => [
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'Url',
'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/imagerecog/RecognizeImageStyle/RecognizeImageStyle1.jpg', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '66FC3009-9A7A-4D29-8B70-D6EB256EF590', 'title' => ''],
'Data' => [
'description' => 'The returned result data.',
'type' => 'object',
'properties' => [
'Styles' => [
'type' => 'array',
'items' => ['description' => 'The list of recognized styles. Styles include: chinese, watercolor, cartoon, real, standard, simple, lively, colourful, luxury, technology, morbidezza, strong, simpleelegant, coolcold, promotion, and protrude.', 'type' => 'string', 'example' => 'technology', 'title' => ''],
'description' => '',
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => ''],
],
403 => [
['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => ''],
],
408 => [
['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"66FC3009-9A7A-4D29-8B70-D6EB256EF590\\",\\n \\"Data\\": {\\n \\"Styles\\": [\\n \\"technology\\"\\n ]\\n }\\n}","type":"json"}]',
'title' => 'Recognize image style',
'summary' => 'This topic describes the syntax and examples of the RecognizeImageStyle operation.',
'description' => '## Feature description'."\n"
.'The image style recognition feature analyzes the style type of an input image and identifies possible style and semantic labels. Recognizable styles include: chinese, watercolor, cartoon, real, standard, simple, lively, colourful, luxury, technology, morbidezza, strong, simpleelegant, coolcold, promotion, and protrude.'."\n"
.'The following figure shows an example of this operation: '."\n"
.'The visual style is Chinese, and the semantic style is promotion.'."\n"
.''."\n"
."\n"
.'> - You can join [online consultation](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2) to get help from online support.'."\n"
.'- You can try this feature for free on the Vision Intelligence Open Platform. Click [Try Now](https://vision.aliyun.com/experience/detail?&tagName=imagerecog&children=RecognizeImageStyle) to experience this feature or purchase it online.'."\n"
.'- To connect to the Alibaba Cloud Vision Intelligence Open Platform, use the visual AI APIs, or consult about issues, 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 **Sign Up** in the upper-right corner, and follow the instructions to create an account.'."\n"
.'2. Activate the service: Make sure you have activated the [image recognition service](https://vision.aliyun.com/imagerecog). If you have not activated the service, [activate it now](https://common-buy.aliyun.com/?commodityCode=viapi_imagerecog_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/imagerecog/2019-09-30/RecognizeImageStyle?lang=JAVA&sdkStyle=dara¶ms=%7B%22Url%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Fimagerecog%2FRecognizeImageStyle%2FRecognizeImageStyle1.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 image recognition (imagerecog) 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 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, or WEBP.'."\n"
.'- Image size: up to 9.5 MB.'."\n"
.'- Image resolution: less than 3000 × 3000 pixels.'."\n"
.'- Images must be in RGB 3-channel format.'."\n"
.'- The URL cannot contain Chinese characters.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '## SDK reference'."\n"
.'For the image style recognition feature under the Alibaba Cloud Vision AI image recognition category, we recommend using the SDK. The SDK supports multiple programming languages. When calling the operation, select the SDK package for the image recognition (imagerecog) AI 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 the image style recognition operation, see [Common error codes](~~145022~~).'."\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-11-07T01:44:30.000Z', 'description' => 'Error codes changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeImageStyle'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'viapi-imagerecog:RecognizeImageStyle',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'RecognizeScene' => [
'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) URL 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/imagerecog/RecognizeScene/RecognizeScene1.jpg', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'AC79F887-5CCB-42BE-8AC3-4D455EFEDB94', 'title' => ''],
'Data' => [
'description' => 'The returned result data.',
'type' => 'object',
'properties' => [
'Tags' => [
'description' => 'The tag names. A maximum of five tag names are returned. If a category tag is not returned, the corresponding `confidence` is zero.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Value' => ['description' => 'The tag name.', 'type' => 'string', 'example' => '船', 'title' => ''],
'Confidence' => ['description' => 'The confidence score of the tag name. Valid values: 0 to 100.', 'type' => 'number', 'format' => 'float', 'example' => '79', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => ''],
],
403 => [
['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => ''],
],
408 => [
['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AC79F887-5CCB-42BE-8AC3-4D455EFEDB94\\",\\n \\"Data\\": {\\n \\"Tags\\": [\\n {\\n \\"Value\\": \\"船\\",\\n \\"Confidence\\": 79\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => 'Scene recognition',
'summary' => 'This topic describes the syntax and examples of the scene recognition feature (RecognizeScene).',
'description' => '## Feature description'."\n"
.'The scene recognition feature identifies the scene environment in images. It supports dozens of common scenes, including:'."\n"
.'- People, animals, dogs, cats, fish, birds, flowers, lawns, vegetables, plants, fruits, restaurants, food, banquets, barbecues'."\n"
.'- Objects, mobile phones, monitors'."\n"
.'- Outdoors, squares, buildings, amusement parks, outdoor areas, highways, streams, mountain peaks, night scenes, skies, travel, sunrises, sunsets, forests, beaches, deserts, seasides, lakes, camping, street views, streets, sports, stadiums, weddings, performances'."\n"
.'- Subways, cars, trains, bicycles, boats, airplanes'."\n"
.'- Others'."\n"
."\n"
.'> - You can visit [Online Consultation](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2) to get online help.'."\n"
.'- You can try this feature for free on the Vision Intelligence Open Platform. Click [Try Now](https://vision.aliyun.com/experience/detail?&tagName=imagerecog&children=RecognizeScene) to try 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 feature: Make sure you have activated the [image recognition service](https://vision.aliyun.com/imagerecog). If you have not activated the service, [activate it now](https://common-buy.aliyun.com/?commodityCode=viapi_imagerecog_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/imagerecog/2019-09-30/RecognizeScene?lang=JAVA&sdkStyle=dara¶ms=%7B%22ImageURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Fimagerecog%2FRecognizeScene%2FRecognizeScene1.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:'."\n"
.'- Select the SDK language you want to use from [SDK overview](~~145033~~).'."\n"
.'- Find the SDK package for the image recognition (imagerecog) AI category in the corresponding SDK documentation and install it.'."\n"
.'- Modify the sample code provided in the references as needed and invoke it.'."\n"
."\n"
.'6. Sample code: For sample code in common programming languages, see [Scene recognition sample code](~~601110~~).'."\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 3 MB.'."\n"
.'- Image resolution: greater than 5 × 5 pixels.'."\n"
.'- The URL cannot contain Chinese characters.'."\n"
."\n"
.'## Billing description'."\n"
.'For information about the billable methods and pricing of scene recognition, see [Billing overview](~~202481~~).'."\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=imagerecog&children=RecognizeScene).',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '## SDK reference'."\n"
.'To use the scene recognition feature under the Alibaba Cloud Vision AI image recognition (imagerecog) category, use the SDK. Multiple programming languages are supported. Select the SDK package for the image recognition (imagerecog) AI category. File parameters passed through the SDK support local files and arbitrary URLs. For more information, see [SDK overview](~~145033~~).'."\n"
."\n"
.'## Sample code'."\n"
.'For sample code in common programming languages, see [Scene recognition sample code](~~601110~~).',
'extraInfo' => '## Error codes'."\n"
.'For error codes of scene recognition, see [Common error codes](~~145022~~).'."\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' => 'RecognizeScene'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'viapi-imagerecog:RecognizeScene',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'TaggingAdImage' => [
'summary' => 'This topic describes the syntax and provides examples of TaggingAdImage.',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'ImageURL',
'in' => 'formData',
'schema' => ['description' => 'The URL of the image. We recommend that you use an OSS URL 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' => 'https://viapi-demo.oss-cn-shanghai.aliyuncs.com/viapi-demo/images/DetectImageElements/xxxx.png', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '572974F0-1014-5C60-97EE-DBFFC0FF7616'],
'Data' => [
'description' => 'The returned result data. After the asynchronous task executes successfully, call the [GetAsyncJobResult](~~607824~~) operation and perform JSON deserialization on the Result field to obtain this data.',
'type' => 'object',
'properties' => [
'TagInfo' => ['description' => 'The labels. Currently, only scene and human are returned. For specific values, see the "TagInfo field parameter description" table below.', 'type' => 'object', 'title' => '', 'example' => ''],
],
'title' => '',
'example' => '',
],
'Message' => ['description' => 'The message returned after the asynchronous task is submitted.', 'type' => 'string', 'example' => '该调用为异步调用,任务已提交成功,请以requestId的值作为jobId参数调用同类目下GetAsyncJobResult接口查询任务执行状态和结果。', 'title' => ''],
],
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => ''],
],
403 => [
['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => ''],
],
408 => [
['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"572974F0-1014-5C60-97EE-DBFFC0FF7616\\",\\n \\"Data\\": {\\n \\"TagInfo\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"Message\\": \\"该调用为异步调用,任务已提交成功,请以requestId的值作为jobId参数调用同类目下GetAsyncJobResult接口查询任务执行状态和结果。\\"\\n}","type":"json"}]',
'title' => 'Ad image analysis',
'description' => '## Feature description'."\n"
.'The ad image analysis feature tags elements in ad images, including people (celebrities, non-celebrities, and CG characters) and scenes. It supports thousands of content tags with broad coverage.'."\n"
."\n"
.'> - You can visit [Online Consultation](https://www.aliyun.com/core/online-consult?from=aZgW6LJHr2) for online assistance.'."\n"
.'- To inquire about API integration, usage, or other issues related to the Alibaba Cloud Vision Intelligence Open Platform, join the DingTalk group (23109592) to contact us.'."\n"
."\n"
.'## Common scenarios'."\n"
."\n"
.'- Ad analysis: Analyzes Internet ad content and delivery performance data to provide insights for ad placement and analysis.'."\n"
.'- Precision targeting: Uses image tags and customer portraits to enable precise ad delivery.'."\n"
.'- Image retrieval: Quickly retrieves and locates images of a specified type.'."\n"
."\n"
.'## Advantages'."\n"
."\n"
.'- Strong analysis capability: Accurately tags complex scenes that contain celebrities, non-celebrities, and CG characters.'."\n"
.'- Precise tagging: Returns object and person tags simultaneously and precisely marks tag positions.'."\n"
."\n"
.'## Integration guide'."\n"
.'1. Register an Alibaba Cloud account: Go to the [Alibaba Cloud official website](https://www.aliyun.com), click **China Site Account** in the upper-right corner, and follow the instructions to complete registration.'."\n"
.'2. Activate the service: Make sure you have activated the [image recognition service](https://vision.aliyun.com/imagerecog). If you have not activated the service, [activate it now](https://common-buy.aliyun.com/?commodityCode=viapi_imagerecog_public_cn#/open).'."\n"
."\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/imagerecog/2019-09-30/TaggingAdImage?lang=JAVA) 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 and install the SDK package for the image recognition (imagerecog) AI category in the corresponding SDK documentation.'."\n"
.'- Modify the sample code provided in the references as needed and call the operation.'."\n"
."\n"
.'6. Sample code: For sample code in common languages for this feature, see [Ad image analysis sample code](~~601117~~). For sample code to query asynchronous task results in common languages, see [Query asynchronous task result sample code](~~607974~~).'."\n"
."\n"
.'7. 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"
."\n"
.'- Image format: JPEG, JPG, PNG, or BMP.'."\n"
.'- Image size: up to 3 MB.'."\n"
.'- Image resolution: greater than 5 × 5 pixels.'."\n"
.'- The URL cannot contain Chinese characters.'."\n"
."\n"
.'## Billing description'."\n"
.'For information about the billable methods and pricing of ad image analysis, see [Billing overview](~~202481~~).'."\n"
."\n"
.'> The debugging API below is a paid API.'."\n"
."\n"
.'## Call procedure'."\n"
.'This feature is asynchronous and requires two steps to call.'."\n"
.'Step 1: Call the TaggingAdImage operation to submit a task. After the request succeeds, a task ID is returned.'."\n"
.'Step 2: Call the [GetAsyncJobResult](~~607824~~) operation to query the result based on the task ID. If the task is still being processed, wait a moment before querying again. Do not submit duplicate tasks while the same task is still being processed.',
'responseParamsDescription' => '## TagInfo field parameter description'."\n"
."\n"
.'| Field | Type | Required | Example value | Description |'."\n"
.'| -------------------- | ------ | -------- | --------------------------- | ------------------------------------------------------------ |'."\n"
.'| Cloth_category | string | Yes | modern | If this is a HumanInfo field, the clothing label of the identified person. For specific categories, see the "Category label values" figure below. If this is not a HumanInfo field, ignore this field. |'."\n"
.'| Cloth_category_score | float | Yes | 0.8 | If this is a HumanInfo field, the confidence score of the clothing label. Value range: [0, 1.0]. If this is not a HumanInfo field, ignore this field. |'."\n"
.'| Bbox | list | Yes | [77,280,431,569] | The relative position of the element in the video. |'."\n"
.'| Score | float | Yes | 0.9 | The confidence score of the label. Value range: [0, 1.0]. |'."\n"
.'| Category | string | Yes | human-real-celebrity-明星姓名 | The label name. For specific categories, see the "Category label values" figure below. |'."\n"
."\n"
.'## Category tag values'."\n"
.'.'."\n"
."\n"
.'## Query results'."\n"
.'This is an asynchronous operation that does not return actual results immediately. Call the GetAsyncJobResult operation with the returned RequestId to obtain the actual results. For more information, see [GetAsyncJobResult](~~607824~~).'."\n"
."\n"
.'## SDK reference'."\n"
.'For the ad image analysis feature under the Alibaba Cloud Vision AI image recognition category, we recommend using the SDK. The SDK supports multiple programming languages. When making calls, select the SDK package for the image recognition (imagerecog) AI category. File parameters can be passed as local files or any URL through the SDK. For more information, see [SDK overview](~~145033~~).'."\n"
."\n"
.'## Sample code'."\n"
.'For sample code in common languages for this feature, see [Ad image analysis sample code](~~601117~~). For sample code to query asynchronous task results in common languages, see [Query asynchronous task result sample code](~~607974~~).',
'extraInfo' => '## Error codes'."\n"
.'For error codes of ad image analysis, see [Common error codes](~~145022~~).'."\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 console are valid for 1 hour and are automatically deleted by the system after 24 hours.',
'changeSet' => [
['createdAt' => '2022-10-17T02:04:34.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2021-08-04T09:35:30.000Z', 'description' => 'OpenAPI offline'],
['createdAt' => '2021-08-04T09:35:30.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2021-08-04T09:35:30.000Z', 'description' => 'Response parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TaggingAdImage'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'viapi-imagerecog:TaggingAdImage',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'TaggingImage' => [
'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) URL in the Shanghai region. If the file is stored locally or the OSS URL 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/imagerecog/TaggingImage/TaggingImage1.jpg', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '1',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '70ED13B0-BC22-576D-9CCF-1CC12FEAC477', 'title' => ''],
'Data' => [
'description' => 'The returned result data.',
'type' => 'object',
'properties' => [
'Tags' => [
'description' => 'The tagging results. A maximum of five tagging results are returned. If a category label is not returned, the corresponding `confidence` value is zero.',
'type' => 'array',
'items' => [
'description' => '1',
'type' => 'object',
'properties' => [
'Value' => ['description' => 'The label name. For specific values, [download the Label file](https://viapi-oss.oss-cn-shanghai.aliyuncs.com/doc/imagerecog/label.txt).', 'type' => 'string', 'example' => '沙发', 'title' => ''],
'Confidence' => ['description' => 'The confidence score of the label. Valid values: 0 to 100.', 'type' => 'number', 'format' => 'float', 'example' => '65', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ParameterError', 'errorMessage' => 'The parameter is invalid. Please check again.', 'description' => ''],
],
403 => [
['errorCode' => 'AuthFailed', 'errorMessage' => 'An error occurred while performing authorization. Please check your RAM configuration.', 'description' => ''],
],
408 => [
['errorCode' => 'Timeout', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'The service is unavailable.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"70ED13B0-BC22-576D-9CCF-1CC12FEAC477\\",\\n \\"Data\\": {\\n \\"Tags\\": [\\n {\\n \\"Value\\": \\"沙发\\",\\n \\"Confidence\\": 65\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => 'General image tagging',
'summary' => 'This topic describes the syntax and provides examples of the TaggingImage operation for general image tagging.',
'description' => '## Feature description'."\n"
.'The general image tagging feature identifies the main content in an image and assigns type labels. It supports thousands of content labels that cover common object categories.'."\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=imagerecog&children=TaggingImage) to experience this feature or purchase it online.'."\n"
.'- To consult about API access, usage, or issues related to Alibaba Cloud Vision Intelligence Open Platform, join the DingTalk group (23109592) to contact us.'."\n"
."\n"
.'## Getting started'."\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 [image recognition service](https://vision.aliyun.com/imagerecog). If you have not activated the service, [activate it now](https://common-buy.aliyun.com/?commodityCode=viapi_imagerecog_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/imagerecog/2019-09-30/TaggingImage?lang=JAVA&sdkStyle=dara¶ms=%7B%22ImageURL%22%3A%22http%3A%2F%2Fviapi-test.oss-cn-shanghai.aliyuncs.com%2Fviapi-3.0domepic%2Fimagerecog%2FTaggingImage%2FTaggingImage1.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 and integration steps:'."\n"
.'- Select the SDK language you want to use from [SDK overview](~~145033~~).'."\n"
.'- Find the SDK package for the image recognition (imagerecog) 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. Sample code: For sample code in common programming languages, see [General image tagging sample code](~~601100~~).'."\n"
."\n"
.'7. Direct client calls: Common client-side 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 3 MB.'."\n"
.'- Image resolution: greater than 5 × 5 pixels.'."\n"
.'- The URL cannot contain Chinese characters.'."\n"
."\n"
.'## Billing description'."\n"
.'For information about the billable methods and pricing of general image tagging, see [Billing overview](~~202481~~).'."\n"
."\n"
.'> The debugging operation below is a paid operation. To try it for free, go to [Experience Center](https://vision.aliyun.com/experience/detail?&tagName=imagerecog&children=TaggingImage).',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '## SDK reference'."\n"
.'For the general image tagging feature under the Alibaba Cloud Vision AI image recognition category, use the SDK for calls. Multiple programming languages are supported. Select the SDK package for the image recognition (imagerecog) AI 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 common programming languages, see [General image tagging sample code](~~601100~~).',
'extraInfo' => '## Error codes'."\n"
.'For error codes of general image tagging, see [Common error codes](~~145022~~).'."\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' => '2021-08-02T07:27:34.000Z', 'description' => 'Request parameters changed'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TaggingImage'],
],
],
'ramActions' => [
[
'operationType' => '',
'ramAction' => [
'action' => 'viapi-imagerecog:TaggingImage',
'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' => 'imagerecog.cn-shanghai.aliyuncs.com', 'endpoint' => 'imagerecog.cn-shanghai.aliyuncs.com', 'vpc' => 'imagerecog-vpc.cn-shanghai.aliyuncs.com'],
],
'errorCodes' => [],
'changeSet' => [
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'RecognizeLogo'],
],
'createdAt' => '2022-11-10T08:56:07.000Z',
'description' => '多url支持本地文件上传',
],
[
'apis' => [
['description' => 'Error codes changed', 'api' => 'RecognizeImageStyle'],
],
'createdAt' => '2022-11-07T01:44:57.000Z',
'description' => '调整用户和API频率',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'TaggingAdImage'],
],
'createdAt' => '2022-10-17T02:04:46.000Z',
'description' => '修改异步任务Message为可见',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'RecognizeFood'],
],
'createdAt' => '2022-09-27T09:40:50.000Z',
'description' => '修改obj为可见',
],
[
'apis' => [
['description' => 'Error codes changed', 'api' => 'ClassifyingRubbish'],
['description' => 'Error codes changed', 'api' => 'DetectFruits'],
['description' => 'Error codes changed', 'api' => 'DetectImageElements'],
['description' => 'Error codes changed', 'api' => 'EvaluateCertificateQuality'],
['description' => 'Error codes changed', 'api' => 'RecognizeImageColor'],
['description' => 'Error codes changed', 'api' => 'RecognizeVehicleType'],
],
'createdAt' => '2022-03-30T09:05:15.000Z',
'description' => '调整用户调用频率',
],
[
'apis' => [
['description' => 'Error codes changed', 'api' => 'RecognizeLogo'],
],
'createdAt' => '2021-12-14T09:27:28.000Z',
'description' => '修改线上请求路径',
],
[
'apis' => [
['description' => 'Response parameters changed', 'api' => 'TaggingAdImage'],
],
'createdAt' => '2021-08-10T01:41:06.000Z',
'description' => '新增出参参数',
],
[
'apis' => [
['description' => 'Request parameters changed', 'api' => 'TaggingAdImage'],
],
'createdAt' => '2021-08-06T04:04:03.000Z',
'description' => '设置imageType',
],
[
'apis' => [
['description' => 'OpenAPI offline', 'api' => 'TaggingAdImage'],
['description' => 'Request parameters changed', 'api' => 'TaggingImage'],
],
'createdAt' => '2021-08-06T04:03:23.000Z',
'description' => '新增pop接口',
],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAsyncJobResult'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DetectImageElements'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeFood'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeImageStyle'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeScene'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TaggingAdImage'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ClassifyingRubbish'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RecognizeImageColor'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TaggingImage'],
['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EvaluateCertificateQuality'],
],
],
'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' => 'RecognizeFood',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'viapi-imagerecog:RecognizeFood',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'EvaluateCertificateQuality',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'viapi-imagerecog:EvaluateCertificateQuality',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetAsyncJobResult',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'viapi-imagerecog:GetAsyncJobResult',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ClassifyingRubbish',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'viapi-imagerecog:ClassifyingRubbish',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'TaggingAdImage',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'viapi-imagerecog:TaggingAdImage',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'RecognizeImageStyle',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'viapi-imagerecog:RecognizeImageStyle',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'RecognizeImageColor',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'viapi-imagerecog:RecognizeImageColor',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DetectImageElements',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'viapi-imagerecog:DetectImageElements',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'TaggingImage',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'viapi-imagerecog:TaggingImage',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'RecognizeScene',
'description' => '',
'operationType' => '',
'ramAction' => [
'action' => 'viapi-imagerecog:RecognizeScene',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'VisualIntelligenceAPI', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'resourceTypes' => [],
],
];
|