ci:CreateDetectLabelJob in the action of the authorization policy. For details on CI access permission, please refer to Cloud Infinite action.GET /<ObjectKey>?ci-process=detect-label&scenes=<scenes> HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>
GET /?ci-process=detect-label&scenes=<scenes>&detect-url=<detect-url> HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>
Parameter Name | Description | Type | Required or Not |
ObjectKey | object filename, such as picture.jpg | string | No |
ci-process | fixed value detect-label | string | Yes |
scenes | Supported recognition scenarios for this call, with the following options: web Image optimization for networks camera image optimization for mobile camera shooting {mobile phone album} {cloud storage product} {product optimization} Optimized for news, information, broadcasting and television industries if this parameter is not provided, default to camera Support multi-scene (scenes) detection together, separated by ,. For example, use scenes = web, camera to apply two models to detect one image simultaneously, outputting two sets of recognition results. | String | No |
detect-url | You can process any publicly accessible image link by filling in detect-url. If detect-url is not filled in, the backend will process the ObjectKey by default. If detect-url is filled in, the backend will process the detect-url link, and there is no need to fill in ObjectKey. detect-url example: http://www.example.com/abc.jpg, which needs to be url-encoded and processed into http%25253A%25252F%25252Fwww.example.com%25252Fabc.jpg. | String | No |
Parameter Name | Description | Type |
RecognitionResult | Image tag recognition results | Container |
Parameter Name | Description | Type |
AlbumLabels | Album edition tag result array If the album scenario is not selected, this item does not exist. This field may be empty, indicating that no valid value can be obtained. | Container |
CameraLabels | Camera edition tag result array If the camera scenario is not selected, this item does not exist. This field may be empty, indicating that no valid value can be obtained. | Container |
NewsLabels | News edition tag result array. If the news scenario is not selected, this item does not exist. This field may be empty, indicating that no valid value can be obtained. | Container |
WebLabels | Web edition tag result array If the web scenario is not selected, this item does not exist. This field may be empty, indicating that no valid value can be obtained. | Container |
Parameter Name | Description | Type |
Labels | Tag information | Container |
Parameter Name | Description | Type |
Confidence | The confidence score of this tag. The higher the score, the higher the accuracy of the tag. | Int |
FirstCategory | Primary category of the tag | String |
Name | Recognized image tags | String |
SecondCategory | Secondary category of a tag | String |
GET /picture.jpg?ci-process=detect-label&scenes=web,camera,album,news HTTP/1.1Host: examplebucket-1250000000.cos.ap-chengdu.myqcloud.comDate: Tue, 03 Apr 2019 09:06:15 GMTAuthorization: <Auth String>
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 645Date: Tue, 03 Apr 2018 09:06:16 GMTStatus: 200 OKx-cos-request-id: NWFjMzQ0MDZfOTBmYTUwXzZkZV8z****<RecognitionResult><AlbumLabels><Labels><Confidence>72</Confidence><FirstCategory>Animals and plants</FirstCategory><Name>Deer</Name><SecondCategory>Mammals</SecondCategory></Labels></AlbumLabels><CameraLabels><Labels><Confidence>26</Confidence><FirstCategory>Animals and plants</FirstCategory><Name>Antelope</Name><SecondCategory>Mammals</SecondCategory></Labels><Labels><Confidence>21</Confidence><FirstCategory>Animals and plants</FirstCategory><Name>Rabbit</Name><SecondCategory>Mammals</SecondCategory></Labels><Labels><Confidence>18</Confidence><FirstCategory>Animals and plants</FirstCategory><Name>Deer</Name><SecondCategory>Mammals</SecondCategory></Labels><Labels><Confidence>10</Confidence><FirstCategory>Animals and plants</FirstCategory><Name>Lion</Name><SecondCategory>Mammals</SecondCategory></Labels><Labels><Confidence>5</Confidence><FirstCategory>Animals and plants</FirstCategory><Name>Leopard</Name><SecondCategory>Mammals</SecondCategory></Labels></CameraLabels><NewsLabels><Labels><Confidence>60</Confidence><FirstCategory>Plants and other organisms</FirstCategory><Name>Plant</Name><SecondCategory>Plant category</SecondCategory></Labels><Labels><Confidence>38</Confidence><FirstCategory>Plant</FirstCategory><Name>Tree</Name><SecondCategory>Tree</SecondCategory></Labels></NewsLabels><WebLabels><Labels><Confidence>97</Confidence><FirstCategory>Animals and plants</FirstCategory><Name>Wildlife</Name><SecondCategory>Other</SecondCategory></Labels><Labels><Confidence>82</Confidence><FirstCategory>Animals and plants</FirstCategory><Name>Mammals</Name><SecondCategory>Mammals</SecondCategory></Labels><Labels><Confidence>78</Confidence><FirstCategory>Animals and plants</FirstCategory><Name>Animal</Name><SecondCategory>Other</SecondCategory></Labels><Labels><Confidence>71</Confidence><FirstCategory>Animals and plants</FirstCategory><Name>Deer</Name><SecondCategory>Mammals</SecondCategory></Labels><Labels><Confidence>41</Confidence><FirstCategory>Animals and plants</FirstCategory><Name>White-tailed Deer</Name><SecondCategory>Mammals</SecondCategory></Labels></WebLabels></RecognitionResult>
Feedback