diff --git a/ChangeLog.txt b/ChangeLog.txt index af4e5121e3..a4573882c6 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,9 @@ +2023-12-06 Version: v1.62.622 +- Generated 2019-12-30 for `ocr`. +- Update RecognizeIdentityCard. +- Update RecognizeDriverLicense. +- Update RecognizeDrivingLicense. + 2023-12-05 Version: v1.62.621 - Generated 2016-06-15 for `Oms`. - Add DeleteMeasureData diff --git a/services/ocr/recognize_business_card.go b/services/ocr/recognize_business_card.go deleted file mode 100644 index ae8b8c58a4..0000000000 --- a/services/ocr/recognize_business_card.go +++ /dev/null @@ -1,101 +0,0 @@ -package ocr - -//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" -) - -// RecognizeBusinessCard invokes the ocr.RecognizeBusinessCard API synchronously -func (client *Client) RecognizeBusinessCard(request *RecognizeBusinessCardRequest) (response *RecognizeBusinessCardResponse, err error) { - response = CreateRecognizeBusinessCardResponse() - err = client.DoAction(request, response) - return -} - -// RecognizeBusinessCardWithChan invokes the ocr.RecognizeBusinessCard API asynchronously -func (client *Client) RecognizeBusinessCardWithChan(request *RecognizeBusinessCardRequest) (<-chan *RecognizeBusinessCardResponse, <-chan error) { - responseChan := make(chan *RecognizeBusinessCardResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.RecognizeBusinessCard(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// RecognizeBusinessCardWithCallback invokes the ocr.RecognizeBusinessCard API asynchronously -func (client *Client) RecognizeBusinessCardWithCallback(request *RecognizeBusinessCardRequest, callback func(response *RecognizeBusinessCardResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *RecognizeBusinessCardResponse - var err error - defer close(result) - response, err = client.RecognizeBusinessCard(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// RecognizeBusinessCardRequest is the request struct for api RecognizeBusinessCard -type RecognizeBusinessCardRequest struct { - *requests.RpcRequest - ImageType requests.Integer `position:"Body" name:"ImageType"` - ImageURL string `position:"Body" name:"ImageURL"` -} - -// RecognizeBusinessCardResponse is the response struct for api RecognizeBusinessCard -type RecognizeBusinessCardResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Data Data `json:"Data" xml:"Data"` -} - -// CreateRecognizeBusinessCardRequest creates a request to invoke RecognizeBusinessCard API -func CreateRecognizeBusinessCardRequest() (request *RecognizeBusinessCardRequest) { - request = &RecognizeBusinessCardRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("ocr", "2019-12-30", "RecognizeBusinessCard", "ocr", "openAPI") - request.Method = requests.POST - return -} - -// CreateRecognizeBusinessCardResponse creates a response to parse from RecognizeBusinessCard response -func CreateRecognizeBusinessCardResponse() (response *RecognizeBusinessCardResponse) { - response = &RecognizeBusinessCardResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/ocr/recognize_stamp.go b/services/ocr/recognize_stamp.go deleted file mode 100644 index bca2e2ff3b..0000000000 --- a/services/ocr/recognize_stamp.go +++ /dev/null @@ -1,101 +0,0 @@ -package ocr - -//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" -) - -// RecognizeStamp invokes the ocr.RecognizeStamp API synchronously -func (client *Client) RecognizeStamp(request *RecognizeStampRequest) (response *RecognizeStampResponse, err error) { - response = CreateRecognizeStampResponse() - err = client.DoAction(request, response) - return -} - -// RecognizeStampWithChan invokes the ocr.RecognizeStamp API asynchronously -func (client *Client) RecognizeStampWithChan(request *RecognizeStampRequest) (<-chan *RecognizeStampResponse, <-chan error) { - responseChan := make(chan *RecognizeStampResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.RecognizeStamp(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// RecognizeStampWithCallback invokes the ocr.RecognizeStamp API asynchronously -func (client *Client) RecognizeStampWithCallback(request *RecognizeStampRequest, callback func(response *RecognizeStampResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *RecognizeStampResponse - var err error - defer close(result) - response, err = client.RecognizeStamp(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// RecognizeStampRequest is the request struct for api RecognizeStamp -type RecognizeStampRequest struct { - *requests.RpcRequest - ImageType requests.Integer `position:"Body" name:"ImageType"` - ImageURL string `position:"Body" name:"ImageURL"` -} - -// RecognizeStampResponse is the response struct for api RecognizeStamp -type RecognizeStampResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Data DataInRecognizeStamp `json:"Data" xml:"Data"` -} - -// CreateRecognizeStampRequest creates a request to invoke RecognizeStamp API -func CreateRecognizeStampRequest() (request *RecognizeStampRequest) { - request = &RecognizeStampRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("ocr", "2019-12-30", "RecognizeStamp", "ocr", "openAPI") - request.Method = requests.POST - return -} - -// CreateRecognizeStampResponse creates a response to parse from RecognizeStamp response -func CreateRecognizeStampResponse() (response *RecognizeStampResponse) { - response = &RecognizeStampResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/ocr/struct_addresses.go b/services/ocr/struct_addresses.go deleted file mode 100644 index d423045747..0000000000 --- a/services/ocr/struct_addresses.go +++ /dev/null @@ -1,21 +0,0 @@ -package ocr - -//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. - -// Addresses is a nested struct in ocr response -type Addresses struct { - Address []string `json:"Address" xml:"Address"` -} diff --git a/services/ocr/struct_cell_phone_numbers.go b/services/ocr/struct_cell_phone_numbers.go deleted file mode 100644 index 6bfebf1503..0000000000 --- a/services/ocr/struct_cell_phone_numbers.go +++ /dev/null @@ -1,21 +0,0 @@ -package ocr - -//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. - -// CellPhoneNumbers is a nested struct in ocr response -type CellPhoneNumbers struct { - CellPhoneNumber []string `json:"CellPhoneNumber" xml:"CellPhoneNumber"` -} diff --git a/services/ocr/struct_companies.go b/services/ocr/struct_companies.go deleted file mode 100644 index 0346f4206f..0000000000 --- a/services/ocr/struct_companies.go +++ /dev/null @@ -1,21 +0,0 @@ -package ocr - -//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. - -// Companies is a nested struct in ocr response -type Companies struct { - Company []string `json:"Company" xml:"Company"` -} diff --git a/services/ocr/struct_data.go b/services/ocr/struct_data.go index 886ef2391e..df68058592 100644 --- a/services/ocr/struct_data.go +++ b/services/ocr/struct_data.go @@ -17,56 +17,49 @@ package ocr // Data is a nested struct in ocr response type Data struct { - Date string `json:"Date" xml:"Date"` - Seat string `json:"Seat" xml:"Seat"` - EstablishDate string `json:"EstablishDate" xml:"EstablishDate"` - FileContent string `json:"FileContent" xml:"FileContent"` - ValidPeriod string `json:"ValidPeriod" xml:"ValidPeriod"` - Type string `json:"Type" xml:"Type"` - LegalPerson string `json:"LegalPerson" xml:"LegalPerson"` - RegisterNumber string `json:"RegisterNumber" xml:"RegisterNumber"` - Price float64 `json:"Price" xml:"Price"` - Destination string `json:"Destination" xml:"Destination"` - Height int64 `json:"Height" xml:"Height"` - DepartureStation string `json:"DepartureStation" xml:"DepartureStation"` - Status string `json:"Status" xml:"Status"` - BankName string `json:"BankName" xml:"BankName"` - Name string `json:"Name" xml:"Name"` - ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` - Capital string `json:"Capital" xml:"Capital"` - CardNumber string `json:"CardNumber" xml:"CardNumber"` - VinCode string `json:"VinCode" xml:"VinCode"` - ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` - Business string `json:"Business" xml:"Business"` - Angle float64 `json:"Angle" xml:"Angle"` - JobId string `json:"JobId" xml:"JobId"` - Result string `json:"Result" xml:"Result"` - ValidDate string `json:"ValidDate" xml:"ValidDate"` - Level string `json:"Level" xml:"Level"` - Address string `json:"Address" xml:"Address"` - Number string `json:"Number" xml:"Number"` - InputFile string `json:"InputFile" xml:"InputFile"` - Width int64 `json:"Width" xml:"Width"` - Departments []string `json:"Departments" xml:"Departments"` - Companies []string `json:"Companies" xml:"Companies"` - Emails []string `json:"Emails" xml:"Emails"` - CellPhoneNumbers []string `json:"CellPhoneNumbers" xml:"CellPhoneNumbers"` - OfficePhoneNumbers []string `json:"OfficePhoneNumbers" xml:"OfficePhoneNumbers"` - Titles []string `json:"Titles" xml:"Titles"` - Addresses []string `json:"Addresses" xml:"Addresses"` - BackResult BackResult `json:"BackResult" xml:"BackResult"` - FaceResult FaceResult `json:"FaceResult" xml:"FaceResult"` - Box Box `json:"Box" xml:"Box"` - Content Content `json:"Content" xml:"Content"` - Stamp Stamp `json:"Stamp" xml:"Stamp"` - Emblem Emblem `json:"Emblem" xml:"Emblem"` - FrontResult FrontResult `json:"FrontResult" xml:"FrontResult"` - Title Title `json:"Title" xml:"Title"` - QRCode QRCode `json:"QRCode" xml:"QRCode"` - Plates []Plate `json:"Plates" xml:"Plates"` - Elements []Element `json:"Elements" xml:"Elements"` - Frames []Frame `json:"Frames" xml:"Frames"` - Invoices []Invoice `json:"Invoices" xml:"Invoices"` - Results []Result `json:"Results" xml:"Results"` - Tables []Table `json:"Tables" xml:"Tables"` + BankName string `json:"BankName" xml:"BankName"` + Name string `json:"Name" xml:"Name"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + Date string `json:"Date" xml:"Date"` + Capital string `json:"Capital" xml:"Capital"` + Seat string `json:"Seat" xml:"Seat"` + EstablishDate string `json:"EstablishDate" xml:"EstablishDate"` + FileContent string `json:"FileContent" xml:"FileContent"` + CardNumber string `json:"CardNumber" xml:"CardNumber"` + ValidPeriod string `json:"ValidPeriod" xml:"ValidPeriod"` + VinCode string `json:"VinCode" xml:"VinCode"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + Type string `json:"Type" xml:"Type"` + Business string `json:"Business" xml:"Business"` + Angle float64 `json:"Angle" xml:"Angle"` + JobId string `json:"JobId" xml:"JobId"` + Result string `json:"Result" xml:"Result"` + LegalPerson string `json:"LegalPerson" xml:"LegalPerson"` + ValidDate string `json:"ValidDate" xml:"ValidDate"` + RegisterNumber string `json:"RegisterNumber" xml:"RegisterNumber"` + Price float64 `json:"Price" xml:"Price"` + Destination string `json:"Destination" xml:"Destination"` + Level string `json:"Level" xml:"Level"` + Address string `json:"Address" xml:"Address"` + Number string `json:"Number" xml:"Number"` + Height int64 `json:"Height" xml:"Height"` + DepartureStation string `json:"DepartureStation" xml:"DepartureStation"` + InputFile string `json:"InputFile" xml:"InputFile"` + Width int64 `json:"Width" xml:"Width"` + Status string `json:"Status" xml:"Status"` + BackResult BackResult `json:"BackResult" xml:"BackResult"` + Stamp Stamp `json:"Stamp" xml:"Stamp"` + FaceResult FaceResult `json:"FaceResult" xml:"FaceResult"` + Emblem Emblem `json:"Emblem" xml:"Emblem"` + FrontResult FrontResult `json:"FrontResult" xml:"FrontResult"` + Box Box `json:"Box" xml:"Box"` + Content Content `json:"Content" xml:"Content"` + Title Title `json:"Title" xml:"Title"` + QRCode QRCode `json:"QRCode" xml:"QRCode"` + Plates []Plate `json:"Plates" xml:"Plates"` + Elements []Element `json:"Elements" xml:"Elements"` + Frames []Frame `json:"Frames" xml:"Frames"` + Invoices []Invoice `json:"Invoices" xml:"Invoices"` + Results []Result `json:"Results" xml:"Results"` + Tables []Table `json:"Tables" xml:"Tables"` } diff --git a/services/ocr/struct_data_in_recognize_stamp.go b/services/ocr/struct_data_in_recognize_stamp.go deleted file mode 100644 index 51667dc253..0000000000 --- a/services/ocr/struct_data_in_recognize_stamp.go +++ /dev/null @@ -1,21 +0,0 @@ -package ocr - -//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. - -// DataInRecognizeStamp is a nested struct in ocr response -type DataInRecognizeStamp struct { - Results []ResultsItem `json:"Results" xml:"Results"` -} diff --git a/services/ocr/struct_departments.go b/services/ocr/struct_departments.go deleted file mode 100644 index 387249beb4..0000000000 --- a/services/ocr/struct_departments.go +++ /dev/null @@ -1,21 +0,0 @@ -package ocr - -//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. - -// Departments is a nested struct in ocr response -type Departments struct { - Department []string `json:"Department" xml:"Department"` -} diff --git a/services/ocr/struct_emails.go b/services/ocr/struct_emails.go deleted file mode 100644 index 36dd447141..0000000000 --- a/services/ocr/struct_emails.go +++ /dev/null @@ -1,21 +0,0 @@ -package ocr - -//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. - -// Emails is a nested struct in ocr response -type Emails struct { - Email []string `json:"Email" xml:"Email"` -} diff --git a/services/ocr/struct_general_text.go b/services/ocr/struct_general_text.go deleted file mode 100644 index 7a074f6935..0000000000 --- a/services/ocr/struct_general_text.go +++ /dev/null @@ -1,21 +0,0 @@ -package ocr - -//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. - -// GeneralText is a nested struct in ocr response -type GeneralText struct { - GeneralTextItem []GeneralTextItem `json:"GeneralText" xml:"GeneralText"` -} diff --git a/services/ocr/struct_general_text_item.go b/services/ocr/struct_general_text_item.go deleted file mode 100644 index 84824d52fc..0000000000 --- a/services/ocr/struct_general_text_item.go +++ /dev/null @@ -1,22 +0,0 @@ -package ocr - -//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. - -// GeneralTextItem is a nested struct in ocr response -type GeneralTextItem struct { - Confidence float64 `json:"Confidence" xml:"Confidence"` - Content string `json:"Content" xml:"Content"` -} diff --git a/services/ocr/struct_office_phone_numbers.go b/services/ocr/struct_office_phone_numbers.go deleted file mode 100644 index 1edc994a1f..0000000000 --- a/services/ocr/struct_office_phone_numbers.go +++ /dev/null @@ -1,21 +0,0 @@ -package ocr - -//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. - -// OfficePhoneNumbers is a nested struct in ocr response -type OfficePhoneNumbers struct { - OfficePhoneNumber []string `json:"OfficePhoneNumber" xml:"OfficePhoneNumber"` -} diff --git a/services/ocr/struct_results_in_recognize_stamp.go b/services/ocr/struct_results_in_recognize_stamp.go deleted file mode 100644 index ead2580434..0000000000 --- a/services/ocr/struct_results_in_recognize_stamp.go +++ /dev/null @@ -1,21 +0,0 @@ -package ocr - -//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. - -// ResultsInRecognizeStamp is a nested struct in ocr response -type ResultsInRecognizeStamp struct { - ResultsItem []ResultsItem `json:"Results" xml:"Results"` -} diff --git a/services/ocr/struct_results_item.go b/services/ocr/struct_results_item.go index e742f97a1c..a78053750b 100644 --- a/services/ocr/struct_results_item.go +++ b/services/ocr/struct_results_item.go @@ -19,10 +19,7 @@ package ocr type ResultsItem struct { Index int64 `json:"Index" xml:"Index"` Type string `json:"Type" xml:"Type"` - Roi Roi `json:"Roi" xml:"Roi"` Content Content `json:"Content" xml:"Content"` - Text Text `json:"Text" xml:"Text"` KeyValueInfos []KeyValueInfosItem `json:"KeyValueInfos" xml:"KeyValueInfos"` - GeneralText []GeneralTextItem `json:"GeneralText" xml:"GeneralText"` SliceRectangle []SliceRectangleItem `json:"SliceRectangle" xml:"SliceRectangle"` } diff --git a/services/ocr/struct_roi.go b/services/ocr/struct_roi.go index d3b206cdf6..cb08be98f3 100644 --- a/services/ocr/struct_roi.go +++ b/services/ocr/struct_roi.go @@ -17,12 +17,8 @@ package ocr // Roi is a nested struct in ocr response type Roi struct { - H int `json:"H" xml:"H"` - X int `json:"X" xml:"X"` - W int `json:"W" xml:"W"` - Y int `json:"Y" xml:"Y"` - Width int `json:"Width" xml:"Width"` - Height int `json:"Height" xml:"Height"` - Top int `json:"Top" xml:"Top"` - Left int `json:"Left" xml:"Left"` + W int `json:"W" xml:"W"` + H int `json:"H" xml:"H"` + Y int `json:"Y" xml:"Y"` + X int `json:"X" xml:"X"` } diff --git a/services/ocr/struct_text.go b/services/ocr/struct_text.go deleted file mode 100644 index 44da2c6e8c..0000000000 --- a/services/ocr/struct_text.go +++ /dev/null @@ -1,22 +0,0 @@ -package ocr - -//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. - -// Text is a nested struct in ocr response -type Text struct { - Confidence float64 `json:"Confidence" xml:"Confidence"` - Content string `json:"Content" xml:"Content"` -} diff --git a/services/ocr/struct_titles.go b/services/ocr/struct_titles.go deleted file mode 100644 index 9316bfee8c..0000000000 --- a/services/ocr/struct_titles.go +++ /dev/null @@ -1,21 +0,0 @@ -package ocr - -//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. - -// Titles is a nested struct in ocr response -type Titles struct { - Title []string `json:"Title" xml:"Title"` -}