diff --git a/ChangeLog-Go.txt b/ChangeLog-Go.txt index e517151e68..d7837887be 100644 --- a/ChangeLog-Go.txt +++ b/ChangeLog-Go.txt @@ -1,3 +1,6 @@ +2020-02-25 Version: v0.1.2 +- Update Ocr. + 2020-02-19 Version: v0.1.1 - Update go.mod. diff --git a/ocr-20191230/Teafile b/ocr-20191230/Teafile index e019b3ad39..9d27cd180f 100644 --- a/ocr-20191230/Teafile +++ b/ocr-20191230/Teafile @@ -5,7 +5,7 @@ "main": "./main.tea", "releases": { "java": "com.aliyun:ocr:0.0.5", - "go": "github.com/aliyun/alibabacloud-sdk/ocr-20191230/golang/client:v0.1.0", + "go": "github.com/aliyun/alibabacloud-sdk/ocr-20191230/golang/client:v0.1.2", "csharp":"AlibabaCloud.SDK.Ocr:0.0.4" }, "libraries": { diff --git a/ocr-20191230/golang/client/client.go b/ocr-20191230/golang/client/client.go index 1f12146606..ad4c199650 100644 --- a/ocr-20191230/golang/client/client.go +++ b/ocr-20191230/golang/client/client.go @@ -15,23 +15,23 @@ import ( type Config struct { AccessKeyId *string `json:"accessKeyId" xml:"accessKeyId"` AccessKeySecret *string `json:"accessKeySecret" xml:"accessKeySecret"` - Type *string `json:"type" xml:"type" require:"true"` - SecurityToken *string `json:"securityToken" xml:"securityToken" require:"true"` + Type *string `json:"type" xml:"type"` + SecurityToken *string `json:"securityToken" xml:"securityToken"` Endpoint *string `json:"endpoint" xml:"endpoint" require:"true"` - Protocol *string `json:"protocol" xml:"protocol" require:"true"` + Protocol *string `json:"protocol" xml:"protocol"` RegionId *string `json:"regionId" xml:"regionId" require:"true"` - UserAgent *string `json:"userAgent" xml:"userAgent" require:"true"` - ReadTimeout *int `json:"readTimeout" xml:"readTimeout" require:"true"` - ConnectTimeout *int `json:"connectTimeout" xml:"connectTimeout" require:"true"` - LocalAddr *string `json:"localAddr" xml:"localAddr" require:"true"` - HttpProxy *string `json:"httpProxy" xml:"httpProxy" require:"true"` - HttpsProxy *string `json:"httpsProxy" xml:"httpsProxy" require:"true"` - NoProxy *string `json:"noProxy" xml:"noProxy" require:"true"` - Socks5Proxy *string `json:"socks5Proxy" xml:"socks5Proxy" require:"true"` - Socks5NetWork *string `json:"socks5NetWork" xml:"socks5NetWork" require:"true"` - MaxIdleConns *int `json:"maxIdleConns" xml:"maxIdleConns" require:"true"` - EndpointType *string `json:"endpointType" xml:"endpointType" require:"true"` - OpenPlatformEndpoint *string `json:"openPlatformEndpoint" xml:"openPlatformEndpoint" require:"true"` + UserAgent *string `json:"userAgent" xml:"userAgent"` + ReadTimeout *int `json:"readTimeout" xml:"readTimeout"` + ConnectTimeout *int `json:"connectTimeout" xml:"connectTimeout"` + LocalAddr *string `json:"localAddr" xml:"localAddr"` + HttpProxy *string `json:"httpProxy" xml:"httpProxy"` + HttpsProxy *string `json:"httpsProxy" xml:"httpsProxy"` + NoProxy *string `json:"noProxy" xml:"noProxy"` + Socks5Proxy *string `json:"socks5Proxy" xml:"socks5Proxy"` + Socks5NetWork *string `json:"socks5NetWork" xml:"socks5NetWork"` + MaxIdleConns *int `json:"maxIdleConns" xml:"maxIdleConns"` + EndpointType *string `json:"endpointType" xml:"endpointType"` + OpenPlatformEndpoint *string `json:"openPlatformEndpoint" xml:"openPlatformEndpoint"` } func (s Config) String() string { @@ -138,7 +138,6 @@ func (s *Config) SetOpenPlatformEndpoint(v string) *Config { } type RecognizeCharacterRequest struct { - ImageType *int `json:"ImageType" xml:"ImageType"` ImageURL *string `json:"ImageURL" xml:"ImageURL" require:"true"` MinHeight *int `json:"MinHeight" xml:"MinHeight" require:"true"` OutputProbability *bool `json:"OutputProbability" xml:"OutputProbability" require:"true"` @@ -152,11 +151,6 @@ func (s RecognizeCharacterRequest) GoString() string { return s.String() } -func (s *RecognizeCharacterRequest) SetImageType(v int) *RecognizeCharacterRequest { - s.ImageType = &v - return s -} - func (s *RecognizeCharacterRequest) SetImageURL(v string) *RecognizeCharacterRequest { s.ImageURL = &v return s @@ -213,9 +207,9 @@ func (s *RecognizeCharacterResponseData) SetResults(v []*RecognizeCharacterRespo } type RecognizeCharacterResponseDataResults struct { - Probability *float32 `json:"Probability" xml:"Probability" require:"true"` - Text *string `json:"Text" xml:"Text" require:"true"` - TextRectangles []*RecognizeCharacterResponseDataResultsTextRectangles `json:"TextRectangles" xml:"TextRectangles" require:"true" type:"Repeated"` + Probability *float32 `json:"Probability" xml:"Probability" require:"true"` + Text *string `json:"Text" xml:"Text" require:"true"` + TextRectangles *RecognizeCharacterResponseDataResultsTextRectangles `json:"TextRectangles" xml:"TextRectangles" require:"true" type:"Struct"` } func (s RecognizeCharacterResponseDataResults) String() string { @@ -236,7 +230,7 @@ func (s *RecognizeCharacterResponseDataResults) SetText(v string) *RecognizeChar return s } -func (s *RecognizeCharacterResponseDataResults) SetTextRectangles(v []*RecognizeCharacterResponseDataResultsTextRectangles) *RecognizeCharacterResponseDataResults { +func (s *RecognizeCharacterResponseDataResults) SetTextRectangles(v *RecognizeCharacterResponseDataResultsTextRectangles) *RecognizeCharacterResponseDataResults { s.TextRectangles = v return s } @@ -284,7 +278,6 @@ func (s *RecognizeCharacterResponseDataResultsTextRectangles) SetHeight(v int) * type RecognizeCharacterAdvanceRequest struct { ImageURLObject io.Reader `json:"ImageURLObject" xml:"ImageURLObject" require:"true"` - ImageType *int `json:"ImageType" xml:"ImageType"` MinHeight *int `json:"MinHeight" xml:"MinHeight" require:"true"` OutputProbability *bool `json:"OutputProbability" xml:"OutputProbability" require:"true"` } @@ -302,11 +295,6 @@ func (s *RecognizeCharacterAdvanceRequest) SetImageURLObject(v io.Reader) *Recog return s } -func (s *RecognizeCharacterAdvanceRequest) SetImageType(v int) *RecognizeCharacterAdvanceRequest { - s.ImageType = &v - return s -} - func (s *RecognizeCharacterAdvanceRequest) SetMinHeight(v int) *RecognizeCharacterAdvanceRequest { s.MinHeight = &v return s @@ -318,8 +306,7 @@ func (s *RecognizeCharacterAdvanceRequest) SetOutputProbability(v bool) *Recogni } type RecognizeTaxiInvoiceRequest struct { - ImageType *int `json:"ImageType" xml:"ImageType"` - ImageURL *string `json:"ImageURL" xml:"ImageURL" require:"true"` + ImageURL *string `json:"ImageURL" xml:"ImageURL" require:"true"` } func (s RecognizeTaxiInvoiceRequest) String() string { @@ -330,11 +317,6 @@ func (s RecognizeTaxiInvoiceRequest) GoString() string { return s.String() } -func (s *RecognizeTaxiInvoiceRequest) SetImageType(v int) *RecognizeTaxiInvoiceRequest { - s.ImageType = &v - return s -} - func (s *RecognizeTaxiInvoiceRequest) SetImageURL(v string) *RecognizeTaxiInvoiceRequest { s.ImageURL = &v return s @@ -544,7 +526,6 @@ func (s *RecognizeTaxiInvoiceResponseDataInvoicesInvoiceRoi) SetY(v float32) *Re type RecognizeTaxiInvoiceAdvanceRequest struct { ImageURLObject io.Reader `json:"ImageURLObject" xml:"ImageURLObject" require:"true"` - ImageType *int `json:"ImageType" xml:"ImageType"` } func (s RecognizeTaxiInvoiceAdvanceRequest) String() string { @@ -560,15 +541,9 @@ func (s *RecognizeTaxiInvoiceAdvanceRequest) SetImageURLObject(v io.Reader) *Rec return s } -func (s *RecognizeTaxiInvoiceAdvanceRequest) SetImageType(v int) *RecognizeTaxiInvoiceAdvanceRequest { - s.ImageType = &v - return s -} - type RecognizeIdentityCardRequest struct { - ImageType *int `json:"ImageType" xml:"ImageType"` - ImageURL *string `json:"ImageURL" xml:"ImageURL" require:"true"` - Side *string `json:"Side" xml:"Side" require:"true"` + ImageURL *string `json:"ImageURL" xml:"ImageURL" require:"true"` + Side *string `json:"Side" xml:"Side" require:"true"` } func (s RecognizeIdentityCardRequest) String() string { @@ -579,11 +554,6 @@ func (s RecognizeIdentityCardRequest) GoString() string { return s.String() } -func (s *RecognizeIdentityCardRequest) SetImageType(v int) *RecognizeIdentityCardRequest { - s.ImageType = &v - return s -} - func (s *RecognizeIdentityCardRequest) SetImageURL(v string) *RecognizeIdentityCardRequest { s.ImageURL = &v return s @@ -857,7 +827,6 @@ func (s *RecognizeIdentityCardResponseDataBackResult) SetIssue(v string) *Recogn type RecognizeIdentityCardAdvanceRequest struct { ImageURLObject io.Reader `json:"ImageURLObject" xml:"ImageURLObject" require:"true"` - ImageType *int `json:"ImageType" xml:"ImageType"` Side *string `json:"Side" xml:"Side" require:"true"` } @@ -874,19 +843,13 @@ func (s *RecognizeIdentityCardAdvanceRequest) SetImageURLObject(v io.Reader) *Re return s } -func (s *RecognizeIdentityCardAdvanceRequest) SetImageType(v int) *RecognizeIdentityCardAdvanceRequest { - s.ImageType = &v - return s -} - func (s *RecognizeIdentityCardAdvanceRequest) SetSide(v string) *RecognizeIdentityCardAdvanceRequest { s.Side = &v return s } type RecognizeLicensePlateRequest struct { - ImageType *int `json:"ImageType" xml:"ImageType"` - ImageURL *string `json:"ImageURL" xml:"ImageURL" require:"true"` + ImageURL *string `json:"ImageURL" xml:"ImageURL" require:"true"` } func (s RecognizeLicensePlateRequest) String() string { @@ -897,11 +860,6 @@ func (s RecognizeLicensePlateRequest) GoString() string { return s.String() } -func (s *RecognizeLicensePlateRequest) SetImageType(v int) *RecognizeLicensePlateRequest { - s.ImageType = &v - return s -} - func (s *RecognizeLicensePlateRequest) SetImageURL(v string) *RecognizeLicensePlateRequest { s.ImageURL = &v return s @@ -1025,7 +983,6 @@ func (s *RecognizeLicensePlateResponseDataPlatesRoi) SetY(v int) *RecognizeLicen type RecognizeLicensePlateAdvanceRequest struct { ImageURLObject io.Reader `json:"ImageURLObject" xml:"ImageURLObject" require:"true"` - ImageType *int `json:"ImageType" xml:"ImageType"` } func (s RecognizeLicensePlateAdvanceRequest) String() string { @@ -1041,13 +998,7 @@ func (s *RecognizeLicensePlateAdvanceRequest) SetImageURLObject(v io.Reader) *Re return s } -func (s *RecognizeLicensePlateAdvanceRequest) SetImageType(v int) *RecognizeLicensePlateAdvanceRequest { - s.ImageType = &v - return s -} - type RecognizeTableRequest struct { - ImageType *int `json:"ImageType" xml:"ImageType"` ImageURL *string `json:"ImageURL" xml:"ImageURL" require:"true"` OutputFormat *string `json:"OutputFormat" xml:"OutputFormat" require:"true"` UseFinanceModel *bool `json:"UseFinanceModel" xml:"UseFinanceModel" require:"true"` @@ -1064,11 +1015,6 @@ func (s RecognizeTableRequest) GoString() string { return s.String() } -func (s *RecognizeTableRequest) SetImageType(v int) *RecognizeTableRequest { - s.ImageType = &v - return s -} - func (s *RecognizeTableRequest) SetImageURL(v string) *RecognizeTableRequest { s.ImageURL = &v return s @@ -1240,7 +1186,6 @@ func (s *RecognizeTableResponseDataTablesTableRowsTableColumns) SetWidth(v int) type RecognizeTableAdvanceRequest struct { ImageURLObject io.Reader `json:"ImageURLObject" xml:"ImageURLObject" require:"true"` - ImageType *int `json:"ImageType" xml:"ImageType"` OutputFormat *string `json:"OutputFormat" xml:"OutputFormat" require:"true"` UseFinanceModel *bool `json:"UseFinanceModel" xml:"UseFinanceModel" require:"true"` AssureDirection *bool `json:"AssureDirection" xml:"AssureDirection" require:"true"` @@ -1261,11 +1206,6 @@ func (s *RecognizeTableAdvanceRequest) SetImageURLObject(v io.Reader) *Recognize return s } -func (s *RecognizeTableAdvanceRequest) SetImageType(v int) *RecognizeTableAdvanceRequest { - s.ImageType = &v - return s -} - func (s *RecognizeTableAdvanceRequest) SetOutputFormat(v string) *RecognizeTableAdvanceRequest { s.OutputFormat = &v return s @@ -1292,9 +1232,8 @@ func (s *RecognizeTableAdvanceRequest) SetSkipDetection(v bool) *RecognizeTableA } type RecognizeDrivingLicenseRequest struct { - ImageType *int `json:"ImageType" xml:"ImageType"` - ImageURL *string `json:"ImageURL" xml:"ImageURL" require:"true"` - Side *string `json:"Side" xml:"Side" require:"true"` + ImageURL *string `json:"ImageURL" xml:"ImageURL" require:"true"` + Side *string `json:"Side" xml:"Side" require:"true"` } func (s RecognizeDrivingLicenseRequest) String() string { @@ -1305,11 +1244,6 @@ func (s RecognizeDrivingLicenseRequest) GoString() string { return s.String() } -func (s *RecognizeDrivingLicenseRequest) SetImageType(v int) *RecognizeDrivingLicenseRequest { - s.ImageType = &v - return s -} - func (s *RecognizeDrivingLicenseRequest) SetImageURL(v string) *RecognizeDrivingLicenseRequest { s.ImageURL = &v return s @@ -1510,7 +1444,6 @@ func (s *RecognizeDrivingLicenseResponseDataBackResult) SetPlateNumber(v string) type RecognizeDrivingLicenseAdvanceRequest struct { ImageURLObject io.Reader `json:"ImageURLObject" xml:"ImageURLObject" require:"true"` - ImageType *int `json:"ImageType" xml:"ImageType"` Side *string `json:"Side" xml:"Side" require:"true"` } @@ -1527,19 +1460,13 @@ func (s *RecognizeDrivingLicenseAdvanceRequest) SetImageURLObject(v io.Reader) * return s } -func (s *RecognizeDrivingLicenseAdvanceRequest) SetImageType(v int) *RecognizeDrivingLicenseAdvanceRequest { - s.ImageType = &v - return s -} - func (s *RecognizeDrivingLicenseAdvanceRequest) SetSide(v string) *RecognizeDrivingLicenseAdvanceRequest { s.Side = &v return s } type RecognizeBankCardRequest struct { - ImageType *int `json:"ImageType" xml:"ImageType"` - ImageURL *string `json:"ImageURL" xml:"ImageURL" require:"true"` + ImageURL *string `json:"ImageURL" xml:"ImageURL" require:"true"` } func (s RecognizeBankCardRequest) String() string { @@ -1550,11 +1477,6 @@ func (s RecognizeBankCardRequest) GoString() string { return s.String() } -func (s *RecognizeBankCardRequest) SetImageType(v int) *RecognizeBankCardRequest { - s.ImageType = &v - return s -} - func (s *RecognizeBankCardRequest) SetImageURL(v string) *RecognizeBankCardRequest { s.ImageURL = &v return s @@ -1614,7 +1536,6 @@ func (s *RecognizeBankCardResponseData) SetValidDate(v string) *RecognizeBankCar type RecognizeBankCardAdvanceRequest struct { ImageURLObject io.Reader `json:"ImageURLObject" xml:"ImageURLObject" require:"true"` - ImageType *int `json:"ImageType" xml:"ImageType"` } func (s RecognizeBankCardAdvanceRequest) String() string { @@ -1630,14 +1551,8 @@ func (s *RecognizeBankCardAdvanceRequest) SetImageURLObject(v io.Reader) *Recogn return s } -func (s *RecognizeBankCardAdvanceRequest) SetImageType(v int) *RecognizeBankCardAdvanceRequest { - s.ImageType = &v - return s -} - type RecognizeTrainTicketRequest struct { - ImageType *int `json:"ImageType" xml:"ImageType"` - ImageURL *string `json:"ImageURL" xml:"ImageURL" require:"true"` + ImageURL *string `json:"ImageURL" xml:"ImageURL" require:"true"` } func (s RecognizeTrainTicketRequest) String() string { @@ -1648,11 +1563,6 @@ func (s RecognizeTrainTicketRequest) GoString() string { return s.String() } -func (s *RecognizeTrainTicketRequest) SetImageType(v int) *RecognizeTrainTicketRequest { - s.ImageType = &v - return s -} - func (s *RecognizeTrainTicketRequest) SetImageURL(v string) *RecognizeTrainTicketRequest { s.ImageURL = &v return s @@ -1742,7 +1652,6 @@ func (s *RecognizeTrainTicketResponseData) SetPrice(v float32) *RecognizeTrainTi type RecognizeTrainTicketAdvanceRequest struct { ImageURLObject io.Reader `json:"ImageURLObject" xml:"ImageURLObject" require:"true"` - ImageType *int `json:"ImageType" xml:"ImageType"` } func (s RecognizeTrainTicketAdvanceRequest) String() string { @@ -1758,15 +1667,9 @@ func (s *RecognizeTrainTicketAdvanceRequest) SetImageURLObject(v io.Reader) *Rec return s } -func (s *RecognizeTrainTicketAdvanceRequest) SetImageType(v int) *RecognizeTrainTicketAdvanceRequest { - s.ImageType = &v - return s -} - type RecognizeDriverLicenseRequest struct { - ImageType *int `json:"ImageType" xml:"ImageType"` - ImageURL *string `json:"ImageURL" xml:"ImageURL" require:"true"` - Side *string `json:"Side" xml:"Side" require:"true"` + ImageURL *string `json:"ImageURL" xml:"ImageURL" require:"true"` + Side *string `json:"Side" xml:"Side" require:"true"` } func (s RecognizeDriverLicenseRequest) String() string { @@ -1777,11 +1680,6 @@ func (s RecognizeDriverLicenseRequest) GoString() string { return s.String() } -func (s *RecognizeDriverLicenseRequest) SetImageType(v int) *RecognizeDriverLicenseRequest { - s.ImageType = &v - return s -} - func (s *RecognizeDriverLicenseRequest) SetImageURL(v string) *RecognizeDriverLicenseRequest { s.ImageURL = &v return s @@ -1916,7 +1814,6 @@ func (s *RecognizeDriverLicenseResponseDataBackResult) SetArchiveNumber(v string type RecognizeDriverLicenseAdvanceRequest struct { ImageURLObject io.Reader `json:"ImageURLObject" xml:"ImageURLObject" require:"true"` - ImageType *int `json:"ImageType" xml:"ImageType"` Side *string `json:"Side" xml:"Side" require:"true"` } @@ -1933,19 +1830,13 @@ func (s *RecognizeDriverLicenseAdvanceRequest) SetImageURLObject(v io.Reader) *R return s } -func (s *RecognizeDriverLicenseAdvanceRequest) SetImageType(v int) *RecognizeDriverLicenseAdvanceRequest { - s.ImageType = &v - return s -} - func (s *RecognizeDriverLicenseAdvanceRequest) SetSide(v string) *RecognizeDriverLicenseAdvanceRequest { s.Side = &v return s } type RecognizeAccountPageRequest struct { - ImageType *int `json:"ImageType" xml:"ImageType"` - ImageURL *string `json:"ImageURL" xml:"ImageURL" require:"true"` + ImageURL *string `json:"ImageURL" xml:"ImageURL" require:"true"` } func (s RecognizeAccountPageRequest) String() string { @@ -1956,11 +1847,6 @@ func (s RecognizeAccountPageRequest) GoString() string { return s.String() } -func (s *RecognizeAccountPageRequest) SetImageType(v int) *RecognizeAccountPageRequest { - s.ImageType = &v - return s -} - func (s *RecognizeAccountPageRequest) SetImageURL(v string) *RecognizeAccountPageRequest { s.ImageURL = &v return s @@ -2261,7 +2147,6 @@ func (s *RecognizeAccountPageResponseDataTitleArea) SetWidth(v int) *RecognizeAc type RecognizeAccountPageAdvanceRequest struct { ImageURLObject io.Reader `json:"ImageURLObject" xml:"ImageURLObject" require:"true"` - ImageType *int `json:"ImageType" xml:"ImageType"` } func (s RecognizeAccountPageAdvanceRequest) String() string { @@ -2277,14 +2162,8 @@ func (s *RecognizeAccountPageAdvanceRequest) SetImageURLObject(v io.Reader) *Rec return s } -func (s *RecognizeAccountPageAdvanceRequest) SetImageType(v int) *RecognizeAccountPageAdvanceRequest { - s.ImageType = &v - return s -} - type RecognizeStampRequest struct { - ImageType *int `json:"ImageType" xml:"ImageType"` - ImageURL *string `json:"ImageURL" xml:"ImageURL" require:"true"` + ImageURL *string `json:"ImageURL" xml:"ImageURL" require:"true"` } func (s RecognizeStampRequest) String() string { @@ -2295,11 +2174,6 @@ func (s RecognizeStampRequest) GoString() string { return s.String() } -func (s *RecognizeStampRequest) SetImageType(v int) *RecognizeStampRequest { - s.ImageType = &v - return s -} - func (s *RecognizeStampRequest) SetImageURL(v string) *RecognizeStampRequest { s.ImageURL = &v return s @@ -2457,7 +2331,6 @@ func (s *RecognizeStampResponseDataResultsText) SetConfidence(v float32) *Recogn type RecognizeStampAdvanceRequest struct { ImageURLObject io.Reader `json:"ImageURLObject" xml:"ImageURLObject" require:"true"` - ImageType *int `json:"ImageType" xml:"ImageType"` } func (s RecognizeStampAdvanceRequest) String() string { @@ -2473,14 +2346,8 @@ func (s *RecognizeStampAdvanceRequest) SetImageURLObject(v io.Reader) *Recognize return s } -func (s *RecognizeStampAdvanceRequest) SetImageType(v int) *RecognizeStampAdvanceRequest { - s.ImageType = &v - return s -} - type RecognizeBusinessCardRequest struct { - ImageType *int `json:"ImageType" xml:"ImageType"` - ImageURL *string `json:"ImageURL" xml:"ImageURL" require:"true"` + ImageURL *string `json:"ImageURL" xml:"ImageURL" require:"true"` } func (s RecognizeBusinessCardRequest) String() string { @@ -2491,11 +2358,6 @@ func (s RecognizeBusinessCardRequest) GoString() string { return s.String() } -func (s *RecognizeBusinessCardRequest) SetImageType(v int) *RecognizeBusinessCardRequest { - s.ImageType = &v - return s -} - func (s *RecognizeBusinessCardRequest) SetImageURL(v string) *RecognizeBusinessCardRequest { s.ImageURL = &v return s @@ -2543,7 +2405,6 @@ func (s *RecognizeBusinessCardResponseData) SetName(v string) *RecognizeBusiness type RecognizeBusinessCardAdvanceRequest struct { ImageURLObject io.Reader `json:"ImageURLObject" xml:"ImageURLObject" require:"true"` - ImageType *int `json:"ImageType" xml:"ImageType"` } func (s RecognizeBusinessCardAdvanceRequest) String() string { @@ -2559,14 +2420,8 @@ func (s *RecognizeBusinessCardAdvanceRequest) SetImageURLObject(v io.Reader) *Re return s } -func (s *RecognizeBusinessCardAdvanceRequest) SetImageType(v int) *RecognizeBusinessCardAdvanceRequest { - s.ImageType = &v - return s -} - type RecognizeVINCodeRequest struct { - ImageType *int `json:"ImageType" xml:"ImageType"` - ImageURL *string `json:"ImageURL" xml:"ImageURL" require:"true"` + ImageURL *string `json:"ImageURL" xml:"ImageURL" require:"true"` } func (s RecognizeVINCodeRequest) String() string { @@ -2577,11 +2432,6 @@ func (s RecognizeVINCodeRequest) GoString() string { return s.String() } -func (s *RecognizeVINCodeRequest) SetImageType(v int) *RecognizeVINCodeRequest { - s.ImageType = &v - return s -} - func (s *RecognizeVINCodeRequest) SetImageURL(v string) *RecognizeVINCodeRequest { s.ImageURL = &v return s @@ -2629,7 +2479,6 @@ func (s *RecognizeVINCodeResponseData) SetVinCode(v string) *RecognizeVINCodeRes type RecognizeVINCodeAdvanceRequest struct { ImageURLObject io.Reader `json:"ImageURLObject" xml:"ImageURLObject" require:"true"` - ImageType *int `json:"ImageType" xml:"ImageType"` } func (s RecognizeVINCodeAdvanceRequest) String() string { @@ -2645,14 +2494,8 @@ func (s *RecognizeVINCodeAdvanceRequest) SetImageURLObject(v io.Reader) *Recogni return s } -func (s *RecognizeVINCodeAdvanceRequest) SetImageType(v int) *RecognizeVINCodeAdvanceRequest { - s.ImageType = &v - return s -} - type RecognizeBusinessLicenseRequest struct { - ImageType *int `json:"ImageType" xml:"ImageType"` - ImageURL *string `json:"ImageURL" xml:"ImageURL" require:"true"` + ImageURL *string `json:"ImageURL" xml:"ImageURL" require:"true"` } func (s RecognizeBusinessLicenseRequest) String() string { @@ -2663,11 +2506,6 @@ func (s RecognizeBusinessLicenseRequest) GoString() string { return s.String() } -func (s *RecognizeBusinessLicenseRequest) SetImageType(v int) *RecognizeBusinessLicenseRequest { - s.ImageType = &v - return s -} - func (s *RecognizeBusinessLicenseRequest) SetImageURL(v string) *RecognizeBusinessLicenseRequest { s.ImageURL = &v return s @@ -2933,7 +2771,6 @@ func (s *RecognizeBusinessLicenseResponseDataQRCode) SetWidth(v int) *RecognizeB type RecognizeBusinessLicenseAdvanceRequest struct { ImageURLObject io.Reader `json:"ImageURLObject" xml:"ImageURLObject" require:"true"` - ImageType *int `json:"ImageType" xml:"ImageType"` } func (s RecognizeBusinessLicenseAdvanceRequest) String() string { @@ -2949,11 +2786,6 @@ func (s *RecognizeBusinessLicenseAdvanceRequest) SetImageURLObject(v io.Reader) return s } -func (s *RecognizeBusinessLicenseAdvanceRequest) SetImageType(v int) *RecognizeBusinessLicenseAdvanceRequest { - s.ImageType = &v - return s -} - type Client struct { service.BaseClient } diff --git a/ocr-20191230/main.tea b/ocr-20191230/main.tea index 56dda55085..5225181f70 100644 --- a/ocr-20191230/main.tea +++ b/ocr-20191230/main.tea @@ -22,23 +22,23 @@ module ocr { model Config { accessKeyId?: string, accessKeySecret?: string, - type: string, - securityToken: string, + type?: string, + securityToken?: string, endpoint: string, - protocol: string, + protocol?: string, regionId: string, - userAgent: string, - readTimeout: number, - connectTimeout: number, - localAddr: string, - httpProxy: string, - httpsProxy: string, - noProxy: string, - socks5Proxy: string, - socks5NetWork: string, - maxIdleConns: number, - endpointType: string, - openPlatformEndpoint: string, + userAgent?: string, + readTimeout?: number, + connectTimeout?: number, + localAddr?: string, + httpProxy?: string, + httpsProxy?: string, + noProxy?: string, + socks5Proxy?: string, + socks5NetWork?: string, + maxIdleConns?: number, + endpointType?: string, + openPlatformEndpoint?: string, } init(config: Config); @@ -95,7 +95,6 @@ module ocr { } model RecognizeCharacterRequest = { - imageType?: integer(name='ImageType', description='imageType'), imageURL: string(name='ImageURL', description='imageUrl'), minHeight: integer(name='MinHeight', description='minHeight'), outputProbability: boolean(name='OutputProbability', description='outputProbability'), @@ -108,15 +107,13 @@ module ocr { { probability: float(name='Probability', description='probability'), text: string(name='Text', description='text'), - textRectangles: [ - { - angle: integer(name='Angle', description='angle'), - left: integer(name='Left', description='left'), - top: integer(name='Top', description='top'), - width: integer(name='Width', description='width'), - height: integer(name='Height', description='height'), - } - ](name='TextRectangles', description='textRectangles'), + textRectangles: { + angle: integer(name='Angle', description='angle'), + left: integer(name='Left', description='left'), + top: integer(name='Top', description='top'), + width: integer(name='Width', description='width'), + height: integer(name='Height', description='height'), + }(name='TextRectangles', description='textRectangles'), } ](name='Results', description='results'), }(name='Data', description='data'), @@ -128,7 +125,6 @@ module ocr { model RecognizeCharacterAdvanceRequest = { imageURLObject: readable(description='ImageURLObject', name='ImageURLObject'), - imageType?: integer(name='ImageType', description='imageType'), minHeight: integer(name='MinHeight', description='minHeight'), outputProbability: boolean(name='OutputProbability', description='outputProbability'), } @@ -188,7 +184,6 @@ module ocr { } model RecognizeTaxiInvoiceRequest = { - imageType?: integer(name='ImageType', description='imageType'), imageURL: string(name='ImageURL', description='imageUrl'), } @@ -231,7 +226,6 @@ module ocr { model RecognizeTaxiInvoiceAdvanceRequest = { imageURLObject: readable(description='ImageURLObject', name='ImageURLObject'), - imageType?: integer(name='ImageType', description='imageType'), } async function recognizeTaxiInvoiceAdvance(request: RecognizeTaxiInvoiceAdvanceRequest, runtime: Common.RuntimeObject): RecognizeTaxiInvoiceResponse { @@ -289,7 +283,6 @@ module ocr { } model RecognizeIdentityCardRequest = { - imageType?: integer(name='ImageType', description='imageType'), imageURL: string(name='ImageURL', description='imageUrl'), side: string(name='Side', description='side'), } @@ -342,7 +335,6 @@ module ocr { model RecognizeIdentityCardAdvanceRequest = { imageURLObject: readable(description='ImageURLObject', name='ImageURLObject'), - imageType?: integer(name='ImageType', description='imageType'), side: string(name='Side', description='side'), } @@ -401,7 +393,6 @@ module ocr { } model RecognizeLicensePlateRequest = { - imageType?: integer(name='ImageType', description='imageType'), imageURL: string(name='ImageURL', description='imageUrl'), } @@ -431,7 +422,6 @@ module ocr { model RecognizeLicensePlateAdvanceRequest = { imageURLObject: readable(description='ImageURLObject', name='ImageURLObject'), - imageType?: integer(name='ImageType', description='imageType'), } async function recognizeLicensePlateAdvance(request: RecognizeLicensePlateAdvanceRequest, runtime: Common.RuntimeObject): RecognizeLicensePlateResponse { @@ -489,7 +479,6 @@ module ocr { } model RecognizeTableRequest = { - imageType?: integer(name='ImageType', description='imageType'), imageURL: string(name='ImageURL', description='imageUrl'), outputFormat: string(name='OutputFormat', description='outputFormat'), useFinanceModel: boolean(name='UseFinanceModel', description='useFinanceModel'), @@ -531,7 +520,6 @@ module ocr { model RecognizeTableAdvanceRequest = { imageURLObject: readable(description='ImageURLObject', name='ImageURLObject'), - imageType?: integer(name='ImageType', description='imageType'), outputFormat: string(name='OutputFormat', description='outputFormat'), useFinanceModel: boolean(name='UseFinanceModel', description='useFinanceModel'), assureDirection: boolean(name='AssureDirection', description='assureDirection'), @@ -594,7 +582,6 @@ module ocr { } model RecognizeDrivingLicenseRequest = { - imageType?: integer(name='ImageType', description='imageType'), imageURL: string(name='ImageURL', description='imageUrl'), side: string(name='Side', description='side'), } @@ -635,7 +622,6 @@ module ocr { model RecognizeDrivingLicenseAdvanceRequest = { imageURLObject: readable(description='ImageURLObject', name='ImageURLObject'), - imageType?: integer(name='ImageType', description='imageType'), side: string(name='Side', description='side'), } @@ -694,7 +680,6 @@ module ocr { } model RecognizeBankCardRequest = { - imageType?: integer(name='ImageType', description='imageType'), imageURL: string(name='ImageURL', description='imageUrl'), } @@ -713,7 +698,6 @@ module ocr { model RecognizeBankCardAdvanceRequest = { imageURLObject: readable(description='ImageURLObject', name='ImageURLObject'), - imageType?: integer(name='ImageType', description='imageType'), } async function recognizeBankCardAdvance(request: RecognizeBankCardAdvanceRequest, runtime: Common.RuntimeObject): RecognizeBankCardResponse { @@ -771,7 +755,6 @@ module ocr { } model RecognizeTrainTicketRequest = { - imageType?: integer(name='ImageType', description='imageType'), imageURL: string(name='ImageURL', description='imageUrl'), } @@ -795,7 +778,6 @@ module ocr { model RecognizeTrainTicketAdvanceRequest = { imageURLObject: readable(description='ImageURLObject', name='ImageURLObject'), - imageType?: integer(name='ImageType', description='imageType'), } async function recognizeTrainTicketAdvance(request: RecognizeTrainTicketAdvanceRequest, runtime: Common.RuntimeObject): RecognizeTrainTicketResponse { @@ -853,7 +835,6 @@ module ocr { } model RecognizeDriverLicenseRequest = { - imageType?: integer(name='ImageType', description='imageType'), imageURL: string(name='ImageURL', description='imageUrl'), side: string(name='Side', description='side'), } @@ -883,7 +864,6 @@ module ocr { model RecognizeDriverLicenseAdvanceRequest = { imageURLObject: readable(description='ImageURLObject', name='ImageURLObject'), - imageType?: integer(name='ImageType', description='imageType'), side: string(name='Side', description='side'), } @@ -942,7 +922,6 @@ module ocr { } model RecognizeAccountPageRequest = { - imageType?: integer(name='ImageType', description='imageType'), imageURL: string(name='ImageURL', description='imageUrl'), } @@ -1005,7 +984,6 @@ module ocr { model RecognizeAccountPageAdvanceRequest = { imageURLObject: readable(description='ImageURLObject', name='ImageURLObject'), - imageType?: integer(name='ImageType', description='imageType'), } async function recognizeAccountPageAdvance(request: RecognizeAccountPageAdvanceRequest, runtime: Common.RuntimeObject): RecognizeAccountPageResponse { @@ -1063,7 +1041,6 @@ module ocr { } model RecognizeStampRequest = { - imageType?: integer(name='ImageType', description='imageType'), imageURL: string(name='ImageURL', description='imageUrl'), } @@ -1099,7 +1076,6 @@ module ocr { model RecognizeStampAdvanceRequest = { imageURLObject: readable(description='ImageURLObject', name='ImageURLObject'), - imageType?: integer(name='ImageType', description='imageType'), } async function recognizeStampAdvance(request: RecognizeStampAdvanceRequest, runtime: Common.RuntimeObject): RecognizeStampResponse { @@ -1157,7 +1133,6 @@ module ocr { } model RecognizeBusinessCardRequest = { - imageType?: integer(name='ImageType', description='imageType'), imageURL: string(name='ImageURL', description='imageUrl'), } @@ -1174,7 +1149,6 @@ module ocr { model RecognizeBusinessCardAdvanceRequest = { imageURLObject: readable(description='ImageURLObject', name='ImageURLObject'), - imageType?: integer(name='ImageType', description='imageType'), } async function recognizeBusinessCardAdvance(request: RecognizeBusinessCardAdvanceRequest, runtime: Common.RuntimeObject): RecognizeBusinessCardResponse { @@ -1232,7 +1206,6 @@ module ocr { } model RecognizeVINCodeRequest = { - imageType?: integer(name='ImageType', description='imageType'), imageURL: string(name='ImageURL', description='imageUrl'), } @@ -1249,7 +1222,6 @@ module ocr { model RecognizeVINCodeAdvanceRequest = { imageURLObject: readable(description='ImageURLObject', name='ImageURLObject'), - imageType?: integer(name='ImageType', description='imageType'), } async function recognizeVINCodeAdvance(request: RecognizeVINCodeAdvanceRequest, runtime: Common.RuntimeObject): RecognizeVINCodeResponse { @@ -1307,7 +1279,6 @@ module ocr { } model RecognizeBusinessLicenseRequest = { - imageType?: integer(name='ImageType', description='imageType'), imageURL: string(name='ImageURL', description='imageUrl'), } @@ -1357,7 +1328,6 @@ module ocr { model RecognizeBusinessLicenseAdvanceRequest = { imageURLObject: readable(description='ImageURLObject', name='ImageURLObject'), - imageType?: integer(name='ImageType', description='imageType'), } async function recognizeBusinessLicenseAdvance(request: RecognizeBusinessLicenseAdvanceRequest, runtime: Common.RuntimeObject): RecognizeBusinessLicenseResponse {