Skip to content

Commit

Permalink
modify ocr tea
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzuochao committed Feb 3, 2020
1 parent b4f0b02 commit 7647f08
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
28 changes: 14 additions & 14 deletions ocr-20191230/golang/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3126,7 +3126,7 @@ func (client *Client) RecognizeCharacterAdvance(request *RecognizeCharacterAdvan
ossClient.PostObject(uploadRequest, runtime)
recognizeCharacterreq := &RecognizeCharacterRequest{}
common.Convert(request, recognizeCharacterreq)
recognizeCharacterreq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(ossConfig.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeCharacterreq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(authResponse.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeCharacterResp, _err := client.RecognizeCharacter(recognizeCharacterreq, runtime)
if _err != nil {
return nil, _err
Expand Down Expand Up @@ -3206,7 +3206,7 @@ func (client *Client) RecognizeDriverLicenseAdvance(request *RecognizeDriverLice
ossClient.PostObject(uploadRequest, runtime)
recognizeDriverLicensereq := &RecognizeDriverLicenseRequest{}
common.Convert(request, recognizeDriverLicensereq)
recognizeDriverLicensereq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(ossConfig.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeDriverLicensereq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(authResponse.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeDriverLicenseResp, _err := client.RecognizeDriverLicense(recognizeDriverLicensereq, runtime)
if _err != nil {
return nil, _err
Expand Down Expand Up @@ -3286,7 +3286,7 @@ func (client *Client) RecognizeLicensePlateAdvance(request *RecognizeLicensePlat
ossClient.PostObject(uploadRequest, runtime)
recognizeLicensePlatereq := &RecognizeLicensePlateRequest{}
common.Convert(request, recognizeLicensePlatereq)
recognizeLicensePlatereq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(ossConfig.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeLicensePlatereq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(authResponse.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeLicensePlateResp, _err := client.RecognizeLicensePlate(recognizeLicensePlatereq, runtime)
if _err != nil {
return nil, _err
Expand Down Expand Up @@ -3366,7 +3366,7 @@ func (client *Client) RecognizeTableAdvance(request *RecognizeTableAdvanceReques
ossClient.PostObject(uploadRequest, runtime)
recognizeTablereq := &RecognizeTableRequest{}
common.Convert(request, recognizeTablereq)
recognizeTablereq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(ossConfig.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeTablereq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(authResponse.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeTableResp, _err := client.RecognizeTable(recognizeTablereq, runtime)
if _err != nil {
return nil, _err
Expand Down Expand Up @@ -3446,7 +3446,7 @@ func (client *Client) RecognizeStampAdvance(request *RecognizeStampAdvanceReques
ossClient.PostObject(uploadRequest, runtime)
recognizeStampreq := &RecognizeStampRequest{}
common.Convert(request, recognizeStampreq)
recognizeStampreq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(ossConfig.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeStampreq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(authResponse.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeStampResp, _err := client.RecognizeStamp(recognizeStampreq, runtime)
if _err != nil {
return nil, _err
Expand Down Expand Up @@ -3526,7 +3526,7 @@ func (client *Client) RecognizeAccountPageAdvance(request *RecognizeAccountPageA
ossClient.PostObject(uploadRequest, runtime)
recognizeAccountPagereq := &RecognizeAccountPageRequest{}
common.Convert(request, recognizeAccountPagereq)
recognizeAccountPagereq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(ossConfig.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeAccountPagereq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(authResponse.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeAccountPageResp, _err := client.RecognizeAccountPage(recognizeAccountPagereq, runtime)
if _err != nil {
return nil, _err
Expand Down Expand Up @@ -3606,7 +3606,7 @@ func (client *Client) RecognizeTaxiInvoiceAdvance(request *RecognizeTaxiInvoiceA
ossClient.PostObject(uploadRequest, runtime)
recognizeTaxiInvoicereq := &RecognizeTaxiInvoiceRequest{}
common.Convert(request, recognizeTaxiInvoicereq)
recognizeTaxiInvoicereq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(ossConfig.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeTaxiInvoicereq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(authResponse.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeTaxiInvoiceResp, _err := client.RecognizeTaxiInvoice(recognizeTaxiInvoicereq, runtime)
if _err != nil {
return nil, _err
Expand Down Expand Up @@ -3686,7 +3686,7 @@ func (client *Client) RecognizeIdentityCardAdvance(request *RecognizeIdentityCar
ossClient.PostObject(uploadRequest, runtime)
recognizeIdentityCardreq := &RecognizeIdentityCardRequest{}
common.Convert(request, recognizeIdentityCardreq)
recognizeIdentityCardreq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(ossConfig.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeIdentityCardreq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(authResponse.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeIdentityCardResp, _err := client.RecognizeIdentityCard(recognizeIdentityCardreq, runtime)
if _err != nil {
return nil, _err
Expand Down Expand Up @@ -3766,7 +3766,7 @@ func (client *Client) RecognizeBusinessCardAdvance(request *RecognizeBusinessCar
ossClient.PostObject(uploadRequest, runtime)
recognizeBusinessCardreq := &RecognizeBusinessCardRequest{}
common.Convert(request, recognizeBusinessCardreq)
recognizeBusinessCardreq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(ossConfig.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeBusinessCardreq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(authResponse.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeBusinessCardResp, _err := client.RecognizeBusinessCard(recognizeBusinessCardreq, runtime)
if _err != nil {
return nil, _err
Expand Down Expand Up @@ -3846,7 +3846,7 @@ func (client *Client) RecognizeBankCardAdvance(request *RecognizeBankCardAdvance
ossClient.PostObject(uploadRequest, runtime)
recognizeBankCardreq := &RecognizeBankCardRequest{}
common.Convert(request, recognizeBankCardreq)
recognizeBankCardreq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(ossConfig.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeBankCardreq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(authResponse.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeBankCardResp, _err := client.RecognizeBankCard(recognizeBankCardreq, runtime)
if _err != nil {
return nil, _err
Expand Down Expand Up @@ -3926,7 +3926,7 @@ func (client *Client) RecognizeVINCodeAdvance(request *RecognizeVINCodeAdvanceRe
ossClient.PostObject(uploadRequest, runtime)
recognizeVINCodereq := &RecognizeVINCodeRequest{}
common.Convert(request, recognizeVINCodereq)
recognizeVINCodereq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(ossConfig.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeVINCodereq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(authResponse.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeVINCodeResp, _err := client.RecognizeVINCode(recognizeVINCodereq, runtime)
if _err != nil {
return nil, _err
Expand Down Expand Up @@ -4006,7 +4006,7 @@ func (client *Client) RecognizeBusinessLicenseAdvance(request *RecognizeBusiness
ossClient.PostObject(uploadRequest, runtime)
recognizeBusinessLicensereq := &RecognizeBusinessLicenseRequest{}
common.Convert(request, recognizeBusinessLicensereq)
recognizeBusinessLicensereq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(ossConfig.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeBusinessLicensereq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(authResponse.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeBusinessLicenseResp, _err := client.RecognizeBusinessLicense(recognizeBusinessLicensereq, runtime)
if _err != nil {
return nil, _err
Expand Down Expand Up @@ -4086,7 +4086,7 @@ func (client *Client) RecognizeTrainTicketAdvance(request *RecognizeTrainTicketA
ossClient.PostObject(uploadRequest, runtime)
recognizeTrainTicketreq := &RecognizeTrainTicketRequest{}
common.Convert(request, recognizeTrainTicketreq)
recognizeTrainTicketreq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(ossConfig.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeTrainTicketreq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(authResponse.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeTrainTicketResp, _err := client.RecognizeTrainTicket(recognizeTrainTicketreq, runtime)
if _err != nil {
return nil, _err
Expand Down Expand Up @@ -4166,7 +4166,7 @@ func (client *Client) RecognizeDrivingLicenseAdvance(request *RecognizeDrivingLi
ossClient.PostObject(uploadRequest, runtime)
recognizeDrivingLicensereq := &RecognizeDrivingLicenseRequest{}
common.Convert(request, recognizeDrivingLicensereq)
recognizeDrivingLicensereq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(ossConfig.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeDrivingLicensereq.ImageURL = tea.String("http://" + tea.StringValue(authResponse.Bucket) + "." + tea.StringValue(authResponse.Endpoint) + "/" + tea.StringValue(authResponse.ObjectKey))
recognizeDrivingLicenseResp, _err := client.RecognizeDrivingLicense(recognizeDrivingLicensereq, runtime)
if _err != nil {
return nil, _err
Expand Down
28 changes: 14 additions & 14 deletions ocr-20191230/main.tea
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ module ocr {
// Step 2: request final api
var recognizeCharacterreq = new RecognizeCharacterRequest{};
Common.convert(request, recognizeCharacterreq);
recognizeCharacterreq.imageURL = `http://${authResponse.bucket}.${ossConfig.endpoint}/${authResponse.objectKey}`;
recognizeCharacterreq.imageURL = `http://${authResponse.bucket}.${authResponse.endpoint}/${authResponse.objectKey}`;
var recognizeCharacterResp = recognizeCharacter(recognizeCharacterreq, runtime);
return recognizeCharacterResp;
}
Expand Down Expand Up @@ -272,7 +272,7 @@ module ocr {
// Step 2: request final api
var recognizeDriverLicensereq = new RecognizeDriverLicenseRequest{};
Common.convert(request, recognizeDriverLicensereq);
recognizeDriverLicensereq.imageURL = `http://${authResponse.bucket}.${ossConfig.endpoint}/${authResponse.objectKey}`;
recognizeDriverLicensereq.imageURL = `http://${authResponse.bucket}.${authResponse.endpoint}/${authResponse.objectKey}`;
var recognizeDriverLicenseResp = recognizeDriverLicense(recognizeDriverLicensereq, runtime);
return recognizeDriverLicenseResp;
}
Expand Down Expand Up @@ -361,7 +361,7 @@ module ocr {
// Step 2: request final api
var recognizeLicensePlatereq = new RecognizeLicensePlateRequest{};
Common.convert(request, recognizeLicensePlatereq);
recognizeLicensePlatereq.imageURL = `http://${authResponse.bucket}.${ossConfig.endpoint}/${authResponse.objectKey}`;
recognizeLicensePlatereq.imageURL = `http://${authResponse.bucket}.${authResponse.endpoint}/${authResponse.objectKey}`;
var recognizeLicensePlateResp = recognizeLicensePlate(recognizeLicensePlatereq, runtime);
return recognizeLicensePlateResp;
}
Expand Down Expand Up @@ -467,7 +467,7 @@ module ocr {
// Step 2: request final api
var recognizeTablereq = new RecognizeTableRequest{};
Common.convert(request, recognizeTablereq);
recognizeTablereq.imageURL = `http://${authResponse.bucket}.${ossConfig.endpoint}/${authResponse.objectKey}`;
recognizeTablereq.imageURL = `http://${authResponse.bucket}.${authResponse.endpoint}/${authResponse.objectKey}`;
var recognizeTableResp = recognizeTable(recognizeTablereq, runtime);
return recognizeTableResp;
}
Expand Down Expand Up @@ -562,7 +562,7 @@ module ocr {
// Step 2: request final api
var recognizeStampreq = new RecognizeStampRequest{};
Common.convert(request, recognizeStampreq);
recognizeStampreq.imageURL = `http://${authResponse.bucket}.${ossConfig.endpoint}/${authResponse.objectKey}`;
recognizeStampreq.imageURL = `http://${authResponse.bucket}.${authResponse.endpoint}/${authResponse.objectKey}`;
var recognizeStampResp = recognizeStamp(recognizeStampreq, runtime);
return recognizeStampResp;
}
Expand Down Expand Up @@ -684,7 +684,7 @@ module ocr {
// Step 2: request final api
var recognizeAccountPagereq = new RecognizeAccountPageRequest{};
Common.convert(request, recognizeAccountPagereq);
recognizeAccountPagereq.imageURL = `http://${authResponse.bucket}.${ossConfig.endpoint}/${authResponse.objectKey}`;
recognizeAccountPagereq.imageURL = `http://${authResponse.bucket}.${authResponse.endpoint}/${authResponse.objectKey}`;
var recognizeAccountPageResp = recognizeAccountPage(recognizeAccountPagereq, runtime);
return recognizeAccountPageResp;
}
Expand Down Expand Up @@ -786,7 +786,7 @@ module ocr {
// Step 2: request final api
var recognizeTaxiInvoicereq = new RecognizeTaxiInvoiceRequest{};
Common.convert(request, recognizeTaxiInvoicereq);
recognizeTaxiInvoicereq.imageURL = `http://${authResponse.bucket}.${ossConfig.endpoint}/${authResponse.objectKey}`;
recognizeTaxiInvoicereq.imageURL = `http://${authResponse.bucket}.${authResponse.endpoint}/${authResponse.objectKey}`;
var recognizeTaxiInvoiceResp = recognizeTaxiInvoice(recognizeTaxiInvoicereq, runtime);
return recognizeTaxiInvoiceResp;
}
Expand Down Expand Up @@ -899,7 +899,7 @@ module ocr {
// Step 2: request final api
var recognizeIdentityCardreq = new RecognizeIdentityCardRequest{};
Common.convert(request, recognizeIdentityCardreq);
recognizeIdentityCardreq.imageURL = `http://${authResponse.bucket}.${ossConfig.endpoint}/${authResponse.objectKey}`;
recognizeIdentityCardreq.imageURL = `http://${authResponse.bucket}.${authResponse.endpoint}/${authResponse.objectKey}`;
var recognizeIdentityCardResp = recognizeIdentityCard(recognizeIdentityCardreq, runtime);
return recognizeIdentityCardResp;
}
Expand Down Expand Up @@ -975,7 +975,7 @@ module ocr {
// Step 2: request final api
var recognizeBusinessCardreq = new RecognizeBusinessCardRequest{};
Common.convert(request, recognizeBusinessCardreq);
recognizeBusinessCardreq.imageURL = `http://${authResponse.bucket}.${ossConfig.endpoint}/${authResponse.objectKey}`;
recognizeBusinessCardreq.imageURL = `http://${authResponse.bucket}.${authResponse.endpoint}/${authResponse.objectKey}`;
var recognizeBusinessCardResp = recognizeBusinessCard(recognizeBusinessCardreq, runtime);
return recognizeBusinessCardResp;
}
Expand Down Expand Up @@ -1053,7 +1053,7 @@ module ocr {
// Step 2: request final api
var recognizeBankCardreq = new RecognizeBankCardRequest{};
Common.convert(request, recognizeBankCardreq);
recognizeBankCardreq.imageURL = `http://${authResponse.bucket}.${ossConfig.endpoint}/${authResponse.objectKey}`;
recognizeBankCardreq.imageURL = `http://${authResponse.bucket}.${authResponse.endpoint}/${authResponse.objectKey}`;
var recognizeBankCardResp = recognizeBankCard(recognizeBankCardreq, runtime);
return recognizeBankCardResp;
}
Expand Down Expand Up @@ -1129,7 +1129,7 @@ module ocr {
// Step 2: request final api
var recognizeVINCodereq = new RecognizeVINCodeRequest{};
Common.convert(request, recognizeVINCodereq);
recognizeVINCodereq.imageURL = `http://${authResponse.bucket}.${ossConfig.endpoint}/${authResponse.objectKey}`;
recognizeVINCodereq.imageURL = `http://${authResponse.bucket}.${authResponse.endpoint}/${authResponse.objectKey}`;
var recognizeVINCodeResp = recognizeVINCode(recognizeVINCodereq, runtime);
return recognizeVINCodeResp;
}
Expand Down Expand Up @@ -1238,7 +1238,7 @@ module ocr {
// Step 2: request final api
var recognizeBusinessLicensereq = new RecognizeBusinessLicenseRequest{};
Common.convert(request, recognizeBusinessLicensereq);
recognizeBusinessLicensereq.imageURL = `http://${authResponse.bucket}.${ossConfig.endpoint}/${authResponse.objectKey}`;
recognizeBusinessLicensereq.imageURL = `http://${authResponse.bucket}.${authResponse.endpoint}/${authResponse.objectKey}`;
var recognizeBusinessLicenseResp = recognizeBusinessLicense(recognizeBusinessLicensereq, runtime);
return recognizeBusinessLicenseResp;
}
Expand Down Expand Up @@ -1321,7 +1321,7 @@ module ocr {
// Step 2: request final api
var recognizeTrainTicketreq = new RecognizeTrainTicketRequest{};
Common.convert(request, recognizeTrainTicketreq);
recognizeTrainTicketreq.imageURL = `http://${authResponse.bucket}.${ossConfig.endpoint}/${authResponse.objectKey}`;
recognizeTrainTicketreq.imageURL = `http://${authResponse.bucket}.${authResponse.endpoint}/${authResponse.objectKey}`;
var recognizeTrainTicketResp = recognizeTrainTicket(recognizeTrainTicketreq, runtime);
return recognizeTrainTicketResp;
}
Expand Down Expand Up @@ -1422,7 +1422,7 @@ module ocr {
// Step 2: request final api
var recognizeDrivingLicensereq = new RecognizeDrivingLicenseRequest{};
Common.convert(request, recognizeDrivingLicensereq);
recognizeDrivingLicensereq.imageURL = `http://${authResponse.bucket}.${ossConfig.endpoint}/${authResponse.objectKey}`;
recognizeDrivingLicensereq.imageURL = `http://${authResponse.bucket}.${authResponse.endpoint}/${authResponse.objectKey}`;
var recognizeDrivingLicenseResp = recognizeDrivingLicense(recognizeDrivingLicensereq, runtime);
return recognizeDrivingLicenseResp;
}
Expand Down

0 comments on commit 7647f08

Please sign in to comment.