diff --git a/ChangeLog.txt b/ChangeLog.txt index b17e0dc6d4..78fb126c89 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2023-03-15 Version: v1.62.241 +- Generated 2019-09-30 for `imagerecog`. +- Update sdk. + 2023-03-15 Version: v1.62.240 - Generated 2017-08-01 for `polardb`. - Support hot standby cluster and proxy for SENormal. diff --git a/services/imagerecog/recognize_logo.go b/services/imagerecog/recognize_logo.go deleted file mode 100644 index 8aa5c56301..0000000000 --- a/services/imagerecog/recognize_logo.go +++ /dev/null @@ -1,108 +0,0 @@ -package imagerecog - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// RecognizeLogo invokes the imagerecog.RecognizeLogo API synchronously -func (client *Client) RecognizeLogo(request *RecognizeLogoRequest) (response *RecognizeLogoResponse, err error) { - response = CreateRecognizeLogoResponse() - err = client.DoAction(request, response) - return -} - -// RecognizeLogoWithChan invokes the imagerecog.RecognizeLogo API asynchronously -func (client *Client) RecognizeLogoWithChan(request *RecognizeLogoRequest) (<-chan *RecognizeLogoResponse, <-chan error) { - responseChan := make(chan *RecognizeLogoResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.RecognizeLogo(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// RecognizeLogoWithCallback invokes the imagerecog.RecognizeLogo API asynchronously -func (client *Client) RecognizeLogoWithCallback(request *RecognizeLogoRequest, callback func(response *RecognizeLogoResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *RecognizeLogoResponse - var err error - defer close(result) - response, err = client.RecognizeLogo(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// RecognizeLogoRequest is the request struct for api RecognizeLogo -type RecognizeLogoRequest struct { - *requests.RpcRequest - FormatResultToJson requests.Boolean `position:"Query" name:"FormatResultToJson"` - OssFile string `position:"Query" name:"OssFile"` - Tasks *[]RecognizeLogoTasks `position:"Body" name:"Tasks" type:"Repeated"` - RequestProxyBy string `position:"Query" name:"RequestProxyBy"` -} - -// RecognizeLogoTasks is a repeated param struct in RecognizeLogoRequest -type RecognizeLogoTasks struct { - ImageURL string `name:"ImageURL"` -} - -// RecognizeLogoResponse is the response struct for api RecognizeLogo -type RecognizeLogoResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Data Data `json:"Data" xml:"Data"` -} - -// CreateRecognizeLogoRequest creates a request to invoke RecognizeLogo API -func CreateRecognizeLogoRequest() (request *RecognizeLogoRequest) { - request = &RecognizeLogoRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("imagerecog", "2019-09-30", "RecognizeLogo", "", "") - request.Method = requests.POST - return -} - -// CreateRecognizeLogoResponse creates a response to parse from RecognizeLogo response -func CreateRecognizeLogoResponse() (response *RecognizeLogoResponse) { - response = &RecognizeLogoResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/imagerecog/struct_data.go b/services/imagerecog/struct_data.go index acd1caef96..27a6cdb0fc 100644 --- a/services/imagerecog/struct_data.go +++ b/services/imagerecog/struct_data.go @@ -26,7 +26,7 @@ type Data struct { ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` Styles []string `json:"Styles" xml:"Styles"` TopFives []TopFivesItem `json:"TopFives" xml:"TopFives"` - Elements []Element `json:"Elements" xml:"Elements"` Tags []Tag `json:"Tags" xml:"Tags"` ColorTemplateList []ColorTemplate `json:"ColorTemplateList" xml:"ColorTemplateList"` + Elements []Element `json:"Elements" xml:"Elements"` } diff --git a/services/imagerecog/struct_data_in_tagging_ad_image.go b/services/imagerecog/struct_data_in_tagging_ad_image.go index 8c90e0bac7..93655cfd2d 100644 --- a/services/imagerecog/struct_data_in_tagging_ad_image.go +++ b/services/imagerecog/struct_data_in_tagging_ad_image.go @@ -18,5 +18,5 @@ package imagerecog // DataInTaggingAdImage is a nested struct in imagerecog response type DataInTaggingAdImage struct { TagInfo map[string]interface{} `json:"TagInfo" xml:"TagInfo"` - Tags []Tags `json:"Tags" xml:"Tags"` + Tags []TagsItem `json:"Tags" xml:"Tags"` } diff --git a/services/imagerecog/struct_element.go b/services/imagerecog/struct_element.go index d357486b00..15e9d46e8d 100644 --- a/services/imagerecog/struct_element.go +++ b/services/imagerecog/struct_element.go @@ -17,19 +17,16 @@ package imagerecog // Element is a nested struct in imagerecog response type Element struct { + CategoryScore float64 `json:"CategoryScore" xml:"CategoryScore"` Category string `json:"Category" xml:"Category"` Name string `json:"Name" xml:"Name"` + X int `json:"X" xml:"X"` Score float64 `json:"Score" xml:"Score"` Y int `json:"Y" xml:"Y"` - RubbishScore float64 `json:"RubbishScore" xml:"RubbishScore"` - CategoryScore float64 `json:"CategoryScore" xml:"CategoryScore"` - X int `json:"X" xml:"X"` - TaskId string `json:"TaskId" xml:"TaskId"` - ImageURL string `json:"ImageURL" xml:"ImageURL"` Width int `json:"Width" xml:"Width"` Height int `json:"Height" xml:"Height"` Rubbish string `json:"Rubbish" xml:"Rubbish"` + RubbishScore float64 `json:"RubbishScore" xml:"RubbishScore"` Type string `json:"Type" xml:"Type"` Box []float64 `json:"Box" xml:"Box"` - Results []Result `json:"Results" xml:"Results"` } diff --git a/services/imagerecog/struct_elements_in_recognize_logo.go b/services/imagerecog/struct_elements_in_recognize_logo.go deleted file mode 100644 index a41a6e0f93..0000000000 --- a/services/imagerecog/struct_elements_in_recognize_logo.go +++ /dev/null @@ -1,21 +0,0 @@ -package imagerecog - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// ElementsInRecognizeLogo is a nested struct in imagerecog response -type ElementsInRecognizeLogo struct { - Element []Element `json:"Element" xml:"Element"` -} diff --git a/services/imagerecog/struct_logo_data.go b/services/imagerecog/struct_logo_data.go deleted file mode 100644 index 91e90e08c8..0000000000 --- a/services/imagerecog/struct_logo_data.go +++ /dev/null @@ -1,26 +0,0 @@ -package imagerecog - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// LogoData is a nested struct in imagerecog response -type LogoData struct { - Type string `json:"Type" xml:"Type"` - W float64 `json:"W" xml:"W"` - H float64 `json:"H" xml:"H"` - Y float64 `json:"Y" xml:"Y"` - Name string `json:"Name" xml:"Name"` - X float64 `json:"X" xml:"X"` -} diff --git a/services/imagerecog/struct_logos_data.go b/services/imagerecog/struct_logos_data.go deleted file mode 100644 index 82ea065eef..0000000000 --- a/services/imagerecog/struct_logos_data.go +++ /dev/null @@ -1,21 +0,0 @@ -package imagerecog - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// LogosData is a nested struct in imagerecog response -type LogosData struct { - LogoData []LogoData `json:"LogoData" xml:"LogoData"` -} diff --git a/services/imagerecog/struct_result.go b/services/imagerecog/struct_result.go deleted file mode 100644 index 6e3c824d29..0000000000 --- a/services/imagerecog/struct_result.go +++ /dev/null @@ -1,24 +0,0 @@ -package imagerecog - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Result is a nested struct in imagerecog response -type Result struct { - Suggestion string `json:"Suggestion" xml:"Suggestion"` - Label string `json:"Label" xml:"Label"` - Rate float64 `json:"Rate" xml:"Rate"` - LogosData []LogoData `json:"LogosData" xml:"LogosData"` -} diff --git a/services/imagerecog/struct_results.go b/services/imagerecog/struct_results.go deleted file mode 100644 index 8c256dd2ec..0000000000 --- a/services/imagerecog/struct_results.go +++ /dev/null @@ -1,21 +0,0 @@ -package imagerecog - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Results is a nested struct in imagerecog response -type Results struct { - Result []Result `json:"Result" xml:"Result"` -} diff --git a/services/imagerecog/struct_tags_in_tagging_ad_image.go b/services/imagerecog/struct_tags_in_tagging_ad_image.go index 08c436c06e..e4332e11c4 100644 --- a/services/imagerecog/struct_tags_in_tagging_ad_image.go +++ b/services/imagerecog/struct_tags_in_tagging_ad_image.go @@ -17,5 +17,5 @@ package imagerecog // TagsInTaggingAdImage is a nested struct in imagerecog response type TagsInTaggingAdImage struct { - Tags []Tags `json:"tags" xml:"tags"` + TagsItem []TagsItem `json:"tags" xml:"tags"` } diff --git a/services/imagerecog/struct_tags.go b/services/imagerecog/struct_tags_item.go similarity index 91% rename from services/imagerecog/struct_tags.go rename to services/imagerecog/struct_tags_item.go index b500d640fb..af0db1ed2c 100644 --- a/services/imagerecog/struct_tags.go +++ b/services/imagerecog/struct_tags_item.go @@ -15,8 +15,8 @@ package imagerecog // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// Tags is a nested struct in imagerecog response -type Tags struct { +// TagsItem is a nested struct in imagerecog response +type TagsItem struct { Value string `json:"Value" xml:"Value"` Confidence float64 `json:"Confidence" xml:"Confidence"` }