v20181119

package
v3.0.80+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "2018-11-19"

Variables

This section is empty.

Functions

This section is empty.

Types

type ArithmeticOCRRequest

type ArithmeticOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
	// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
	// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}

func NewArithmeticOCRRequest

func NewArithmeticOCRRequest() (request *ArithmeticOCRRequest)

func (*ArithmeticOCRRequest) FromJsonString

func (r *ArithmeticOCRRequest) FromJsonString(s string) error

func (*ArithmeticOCRRequest) ToJsonString

func (r *ArithmeticOCRRequest) ToJsonString() string

type ArithmeticOCRResponse

type ArithmeticOCRResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 检测到的文本信息,具体内容请点击左侧链接。
		TextDetections []*TextArithmetic `json:"TextDetections,omitempty" name:"TextDetections" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewArithmeticOCRResponse

func NewArithmeticOCRResponse() (response *ArithmeticOCRResponse)

func (*ArithmeticOCRResponse) FromJsonString

func (r *ArithmeticOCRResponse) FromJsonString(s string) error

func (*ArithmeticOCRResponse) ToJsonString

func (r *ArithmeticOCRResponse) ToJsonString() string

type BankCardOCRRequest

type BankCardOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
	// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
	// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}

func NewBankCardOCRRequest

func NewBankCardOCRRequest() (request *BankCardOCRRequest)

func (*BankCardOCRRequest) FromJsonString

func (r *BankCardOCRRequest) FromJsonString(s string) error

func (*BankCardOCRRequest) ToJsonString

func (r *BankCardOCRRequest) ToJsonString() string

type BankCardOCRResponse

type BankCardOCRResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 卡号
		CardNo *string `json:"CardNo,omitempty" name:"CardNo"`

		// 银行信息
		BankInfo *string `json:"BankInfo,omitempty" name:"BankInfo"`

		// 有效期
		ValidDate *string `json:"ValidDate,omitempty" name:"ValidDate"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewBankCardOCRResponse

func NewBankCardOCRResponse() (response *BankCardOCRResponse)

func (*BankCardOCRResponse) FromJsonString

func (r *BankCardOCRResponse) FromJsonString(s string) error

func (*BankCardOCRResponse) ToJsonString

func (r *BankCardOCRResponse) ToJsonString() string

type BizLicenseOCRRequest

type BizLicenseOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
	// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
	// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}

func NewBizLicenseOCRRequest

func NewBizLicenseOCRRequest() (request *BizLicenseOCRRequest)

func (*BizLicenseOCRRequest) FromJsonString

func (r *BizLicenseOCRRequest) FromJsonString(s string) error

func (*BizLicenseOCRRequest) ToJsonString

func (r *BizLicenseOCRRequest) ToJsonString() string

type BizLicenseOCRResponse

type BizLicenseOCRResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 注册号
		RegNum *string `json:"RegNum,omitempty" name:"RegNum"`

		// 公司名称
		Name *string `json:"Name,omitempty" name:"Name"`

		// 注册资本
		Capital *string `json:"Capital,omitempty" name:"Capital"`

		// 法定代表人
		Person *string `json:"Person,omitempty" name:"Person"`

		// 地址
		Address *string `json:"Address,omitempty" name:"Address"`

		// 经营范围
		Business *string `json:"Business,omitempty" name:"Business"`

		// 主体类型
		Type *string `json:"Type,omitempty" name:"Type"`

		// 营业期限
		Period *string `json:"Period,omitempty" name:"Period"`

		// 组成形式
		ComposingForm *string `json:"ComposingForm,omitempty" name:"ComposingForm"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewBizLicenseOCRResponse

func NewBizLicenseOCRResponse() (response *BizLicenseOCRResponse)

func (*BizLicenseOCRResponse) FromJsonString

func (r *BizLicenseOCRResponse) FromJsonString(s string) error

func (*BizLicenseOCRResponse) ToJsonString

func (r *BizLicenseOCRResponse) ToJsonString() string

type BusinessCardInfo

type BusinessCardInfo struct {

	// 识别出的字段名称(关键字,可能重复,比如多个手机),能识别的字段名为:
	// 姓名、英文姓名、英文地址、公司、英文公司、职位、英文职位、部门、英文部门、手机、电话、传真、社交帐号、QQ、MSN、微信、微博、邮箱、邮编、网址、公司账号、其他。
	Name *string `json:"Name,omitempty" name:"Name"`

	// 识别出的字段名称对应的值,也就是字段name对应的字符串结果。
	Value *string `json:"Value,omitempty" name:"Value"`
}

type BusinessCardOCRRequest

type BusinessCardOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
	// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
	// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`

	// 可选字段,根据需要选择是否请求对应字段。
	// 目前支持的字段为:
	// RetImageType-“PROPROCESS” 图像预处理,string 类型。
	// 图像预处理功能为,检测图片倾斜的角度,将原本倾斜的图片围绕中心点转正,最终输出一张正的名片抠图。
	//
	// SDK 设置方式参考:
	// Config = Json.stringify({"RetImageType":"PROPROCESS"})
	// API 3.0 Explorer 设置方式参考:
	// Config = {"RetImageType":"PROPROCESS"}
	Config *string `json:"Config,omitempty" name:"Config"`
}

func NewBusinessCardOCRRequest

func NewBusinessCardOCRRequest() (request *BusinessCardOCRRequest)

func (*BusinessCardOCRRequest) FromJsonString

func (r *BusinessCardOCRRequest) FromJsonString(s string) error

func (*BusinessCardOCRRequest) ToJsonString

func (r *BusinessCardOCRRequest) ToJsonString() string

type BusinessCardOCRResponse

type BusinessCardOCRResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 名片识别结果,具体内容请点击左侧链接。
		BusinessCardInfos []*BusinessCardInfo `json:"BusinessCardInfos,omitempty" name:"BusinessCardInfos" list`

		// 返回图像预处理后的图片,图像预处理未开启时返回内容为空。
		RetImageBase64 *string `json:"RetImageBase64,omitempty" name:"RetImageBase64"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewBusinessCardOCRResponse

func NewBusinessCardOCRResponse() (response *BusinessCardOCRResponse)

func (*BusinessCardOCRResponse) FromJsonString

func (r *BusinessCardOCRResponse) FromJsonString(s string) error

func (*BusinessCardOCRResponse) ToJsonString

func (r *BusinessCardOCRResponse) ToJsonString() string

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) ArithmeticOCR

func (c *Client) ArithmeticOCR(request *ArithmeticOCRRequest) (response *ArithmeticOCRResponse, err error)

本接口支持作业算式题目的自动识别,目前覆盖 K12 学力范围内的 14 种题型,包括加减乘除四则运算、分数四则运算、竖式四则运算、脱式计算等。

func (*Client) BankCardOCR

func (c *Client) BankCardOCR(request *BankCardOCRRequest) (response *BankCardOCRResponse, err error)

本接口支持对中国大陆主流银行卡的卡号、银行信息、有效期等关键字段的检测与识别。

func (*Client) BizLicenseOCR

func (c *Client) BizLicenseOCR(request *BizLicenseOCRRequest) (response *BizLicenseOCRResponse, err error)

本接口支持快速精准识别营业执照上的字段,包括注册号、公司名称、经营场所、主体类型、法定代表人、注册资金、组成形式、成立日期、营业期限和经营范围等字段。

func (*Client) BusinessCardOCR

func (c *Client) BusinessCardOCR(request *BusinessCardOCRRequest) (response *BusinessCardOCRResponse, err error)

本接口支持名片各字段的自动定位与识别,包含姓名、电话、手机号、邮箱、公司、部门、职位、网址、地址、QQ、微信、MSN等。

func (*Client) DriverLicenseOCR

func (c *Client) DriverLicenseOCR(request *DriverLicenseOCRRequest) (response *DriverLicenseOCRResponse, err error)

本接口支持对驾驶证主页所有字段的自动定位与识别,包含证号、姓名、性别、国籍、住址、出生日期、初次领证日期、准驾车型、有效期限等。

func (*Client) EnglishOCR

func (c *Client) EnglishOCR(request *EnglishOCRRequest) (response *EnglishOCRResponse, err error)

本接口支持图像英文文字的检测和识别,返回文字框位置与文字内容。支持多场景、任意版面下的英文、字母、数字和常见字符的识别,同时覆盖英文印刷体和英文手写体识别。

func (*Client) GeneralAccurateOCR

func (c *Client) GeneralAccurateOCR(request *GeneralAccurateOCRRequest) (response *GeneralAccurateOCRResponse, err error)

本接口支持图像整体文字的检测和识别,返回文字框位置与文字内容。相比通用印刷体识别接口,准确率和召回率更高。

func (*Client) GeneralBasicOCR

func (c *Client) GeneralBasicOCR(request *GeneralBasicOCRRequest) (response *GeneralBasicOCRResponse, err error)

本接口支持多场景、任意版面下整图文字的识别。支持自动识别语言类型,同时支持自选语言种类(推荐),除中英文外,支持日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语等多种语言。应用场景包括:印刷文档识别、网络图片识别、广告图文字识别、街景店招识别、菜单识别、视频标题识别、头像文字识别等。

func (*Client) GeneralFastOCR

func (c *Client) GeneralFastOCR(request *GeneralFastOCRRequest) (response *GeneralFastOCRResponse, err error)

本接口支持图片中整体文字的检测和识别,返回文字框位置与文字内容。相比通用印刷体识别接口,识别速度更快、支持的 QPS 更高。

func (*Client) GeneralHandwritingOCR

func (c *Client) GeneralHandwritingOCR(request *GeneralHandwritingOCRRequest) (response *GeneralHandwritingOCRResponse, err error)

本接口支持图片内手写体文字的检测和识别,针对手写字体无规则、字迹潦草、模糊等特点进行了识别能力的增强。

func (*Client) IDCardOCR

func (c *Client) IDCardOCR(request *IDCardOCRRequest) (response *IDCardOCRResponse, err error)

本接口支持中国大陆居民二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限;具备身份证照片、人像照片的裁剪功能和翻拍、PS、复印件告警功能,以及边框和框内遮挡告警、临时身份证告警和身份证有效期不合法告警等扩展功能。

func (*Client) LicensePlateOCR

func (c *Client) LicensePlateOCR(request *LicensePlateOCRRequest) (response *LicensePlateOCRResponse, err error)

本接口支持对中国大陆机动车车牌的自动定位和识别,返回地域编号和车牌号信息。

func (*Client) TableOCR

func (c *Client) TableOCR(request *TableOCRRequest) (response *TableOCRResponse, err error)

本接口支持图片内表格文档的检测和识别,返回每个单元格的文字内容,支持将识别结果保存为 Excel 格式。

func (*Client) VatInvoiceOCR

func (c *Client) VatInvoiceOCR(request *VatInvoiceOCRRequest) (response *VatInvoiceOCRResponse, err error)

本接口支持增值税专用发票、增值税普通发票、增值税电子发票全字段的内容检测和识别,包括发票代码、发票号码、开票日期、合计金额、校验码、税率、合计税额、价税合计、购买方识别号、复核、销售方识别号、开票人、密码区1、密码区2、密码区3、密码区4、发票名称、购买方名称、销售方名称、服务名称、备注、规格型号、数量、单价、金额、税额、收款人等字段。

func (*Client) VehicleLicenseOCR

func (c *Client) VehicleLicenseOCR(request *VehicleLicenseOCRRequest) (response *VehicleLicenseOCRResponse, err error)

本接口支持行驶证主页和副页所有字段的自动定位与识别,包含车牌号码、车辆类型、所有人、住址、使用性质、品牌型号、车辆识别代码、发动机号、注册日期、发证日期等。

func (*Client) VinOCR

func (c *Client) VinOCR(request *VinOCRRequest) (response *VinOCRResponse, err error)

本接口支持图片内车辆识别代号(VIN)的检测和识别。

func (*Client) WaybillOCR

func (c *Client) WaybillOCR(request *WaybillOCRRequest) (response *WaybillOCRResponse, err error)

本接口支持市面上主流版式电子运单的识别,包括收件人和寄件人的姓名、电话、地址以及运单号等字段。

type Coord

type Coord struct {

	// 横坐标
	X *int64 `json:"X,omitempty" name:"X"`

	// 纵坐标
	Y *int64 `json:"Y,omitempty" name:"Y"`
}

type DriverLicenseOCRRequest

type DriverLicenseOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
	// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
	// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}

func NewDriverLicenseOCRRequest

func NewDriverLicenseOCRRequest() (request *DriverLicenseOCRRequest)

func (*DriverLicenseOCRRequest) FromJsonString

func (r *DriverLicenseOCRRequest) FromJsonString(s string) error

func (*DriverLicenseOCRRequest) ToJsonString

func (r *DriverLicenseOCRRequest) ToJsonString() string

type DriverLicenseOCRResponse

type DriverLicenseOCRResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 姓名
		Name *string `json:"Name,omitempty" name:"Name"`

		// 性别
		Sex *string `json:"Sex,omitempty" name:"Sex"`

		// 国籍
		Nationality *string `json:"Nationality,omitempty" name:"Nationality"`

		// 住址
		Address *string `json:"Address,omitempty" name:"Address"`

		// 出生日期
		DateOfBirth *string `json:"DateOfBirth,omitempty" name:"DateOfBirth"`

		// 初次领证日期
		DateOfFirstIssue *string `json:"DateOfFirstIssue,omitempty" name:"DateOfFirstIssue"`

		// 准驾车型
		Class *string `json:"Class,omitempty" name:"Class"`

		// 有效期开始时间
		StartDate *string `json:"StartDate,omitempty" name:"StartDate"`

		// 有效期截止时间
		EndDate *string `json:"EndDate,omitempty" name:"EndDate"`

		// 证号
		CardCode *string `json:"CardCode,omitempty" name:"CardCode"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDriverLicenseOCRResponse

func NewDriverLicenseOCRResponse() (response *DriverLicenseOCRResponse)

func (*DriverLicenseOCRResponse) FromJsonString

func (r *DriverLicenseOCRResponse) FromJsonString(s string) error

func (*DriverLicenseOCRResponse) ToJsonString

func (r *DriverLicenseOCRResponse) ToJsonString() string

type EnglishOCRRequest

type EnglishOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
	// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
	// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}

func NewEnglishOCRRequest

func NewEnglishOCRRequest() (request *EnglishOCRRequest)

func (*EnglishOCRRequest) FromJsonString

func (r *EnglishOCRRequest) FromJsonString(s string) error

func (*EnglishOCRRequest) ToJsonString

func (r *EnglishOCRRequest) ToJsonString() string

type EnglishOCRResponse

type EnglishOCRResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 检测到的文本信息,具体内容请点击左侧链接。
		TextDetections []*TextDetectionEn `json:"TextDetections,omitempty" name:"TextDetections" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewEnglishOCRResponse

func NewEnglishOCRResponse() (response *EnglishOCRResponse)

func (*EnglishOCRResponse) FromJsonString

func (r *EnglishOCRResponse) FromJsonString(s string) error

func (*EnglishOCRResponse) ToJsonString

func (r *EnglishOCRResponse) ToJsonString() string

type GeneralAccurateOCRRequest

type GeneralAccurateOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
	// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
	// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}

func NewGeneralAccurateOCRRequest

func NewGeneralAccurateOCRRequest() (request *GeneralAccurateOCRRequest)

func (*GeneralAccurateOCRRequest) FromJsonString

func (r *GeneralAccurateOCRRequest) FromJsonString(s string) error

func (*GeneralAccurateOCRRequest) ToJsonString

func (r *GeneralAccurateOCRRequest) ToJsonString() string

type GeneralAccurateOCRResponse

type GeneralAccurateOCRResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 检测到的文本信息,具体内容请点击左侧链接。
		TextDetections []*TextDetection `json:"TextDetections,omitempty" name:"TextDetections" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewGeneralAccurateOCRResponse

func NewGeneralAccurateOCRResponse() (response *GeneralAccurateOCRResponse)

func (*GeneralAccurateOCRResponse) FromJsonString

func (r *GeneralAccurateOCRResponse) FromJsonString(s string) error

func (*GeneralAccurateOCRResponse) ToJsonString

func (r *GeneralAccurateOCRResponse) ToJsonString() string

type GeneralBasicOCRRequest

type GeneralBasicOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
	// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
	// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`

	// 保留字段。
	Scene *string `json:"Scene,omitempty" name:"Scene"`

	// 识别语言类型。
	// 支持自动识别语言类型,同时支持自选语言种类,默认中英文混合(zh)。
	// 可选值:
	// zh\auto\jap\kor\
	// spa\fre\ger\por\
	// vie\may\rus\ita\
	// hol\swe\fin\dan\
	// nor\hun\tha\lat
	// 可选值分别表示:
	// 中英文混合、自动识别、日语、韩语、
	// 西班牙语、法语、德语、葡萄牙语、
	// 越南语、马来语、俄语、意大利语、
	// 荷兰语、瑞典语、芬兰语、丹麦语、
	// 挪威语、匈牙利语、泰语、拉丁语系。
	LanguageType *string `json:"LanguageType,omitempty" name:"LanguageType"`
}

func NewGeneralBasicOCRRequest

func NewGeneralBasicOCRRequest() (request *GeneralBasicOCRRequest)

func (*GeneralBasicOCRRequest) FromJsonString

func (r *GeneralBasicOCRRequest) FromJsonString(s string) error

func (*GeneralBasicOCRRequest) ToJsonString

func (r *GeneralBasicOCRRequest) ToJsonString() string

type GeneralBasicOCRResponse

type GeneralBasicOCRResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 检测到的文本信息,具体内容请点击左侧链接。
		TextDetections []*TextDetection `json:"TextDetections,omitempty" name:"TextDetections" list`

		// 检测到的语言类型,目前支持的语言类型参考入参LanguageType说明。
		Language *string `json:"Language,omitempty" name:"Language"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewGeneralBasicOCRResponse

func NewGeneralBasicOCRResponse() (response *GeneralBasicOCRResponse)

func (*GeneralBasicOCRResponse) FromJsonString

func (r *GeneralBasicOCRResponse) FromJsonString(s string) error

func (*GeneralBasicOCRResponse) ToJsonString

func (r *GeneralBasicOCRResponse) ToJsonString() string

type GeneralFastOCRRequest

type GeneralFastOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
	// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
	// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}

func NewGeneralFastOCRRequest

func NewGeneralFastOCRRequest() (request *GeneralFastOCRRequest)

func (*GeneralFastOCRRequest) FromJsonString

func (r *GeneralFastOCRRequest) FromJsonString(s string) error

func (*GeneralFastOCRRequest) ToJsonString

func (r *GeneralFastOCRRequest) ToJsonString() string

type GeneralFastOCRResponse

type GeneralFastOCRResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 检测到的文本信息,具体内容请点击左侧链接。
		TextDetections []*TextDetection `json:"TextDetections,omitempty" name:"TextDetections" list`

		// 检测到的语言,目前支持的语种范围为:简体中文、繁体中文、英文、日文、韩文。未来将陆续新增对更多语种的支持。
		// 返回结果含义为:zh - 中英混合,jap - 日文,kor - 韩文。
		Language *string `json:"Language,omitempty" name:"Language"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewGeneralFastOCRResponse

func NewGeneralFastOCRResponse() (response *GeneralFastOCRResponse)

func (*GeneralFastOCRResponse) FromJsonString

func (r *GeneralFastOCRResponse) FromJsonString(s string) error

func (*GeneralFastOCRResponse) ToJsonString

func (r *GeneralFastOCRResponse) ToJsonString() string

type GeneralHandwritingOCRRequest

type GeneralHandwritingOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
	// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
	// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}

func NewGeneralHandwritingOCRRequest

func NewGeneralHandwritingOCRRequest() (request *GeneralHandwritingOCRRequest)

func (*GeneralHandwritingOCRRequest) FromJsonString

func (r *GeneralHandwritingOCRRequest) FromJsonString(s string) error

func (*GeneralHandwritingOCRRequest) ToJsonString

func (r *GeneralHandwritingOCRRequest) ToJsonString() string

type GeneralHandwritingOCRResponse

type GeneralHandwritingOCRResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 检测到的文本信息,具体内容请点击左侧链接。
		TextDetections []*TextGeneralHandwriting `json:"TextDetections,omitempty" name:"TextDetections" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewGeneralHandwritingOCRResponse

func NewGeneralHandwritingOCRResponse() (response *GeneralHandwritingOCRResponse)

func (*GeneralHandwritingOCRResponse) FromJsonString

func (r *GeneralHandwritingOCRResponse) FromJsonString(s string) error

func (*GeneralHandwritingOCRResponse) ToJsonString

func (r *GeneralHandwritingOCRResponse) ToJsonString() string

type IDCardOCRRequest

type IDCardOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
	// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
	// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`

	// FRONT 为身份证有照片的一面(人像面),
	// BACK 为身份证有国徽的一面(国徽面)。
	CardSide *string `json:"CardSide,omitempty" name:"CardSide"`

	// 可选字段,根据需要选择是否请求对应字段。
	// 目前包含的字段为:
	// CropIdCard,身份证照片裁剪,bool 类型,默认false,
	// CropPortrait,人像照片裁剪,bool 类型,默认false,
	// CopyWarn,复印件告警,bool 类型,默认false,
	// BorderCheckWarn,边框和框内遮挡告警,bool 类型,默认false,
	// ReshootWarn,翻拍告警,bool 类型,默认false,
	// DetectPsWarn,PS检测告警,bool类型,默认false,
	// TempIdWarn,临时身份证告警,bool类型,默认false,
	// InvalidDateWarn,身份证有效日期不合法告警,bool类型,默认false。
	//
	// SDK 设置方式参考:
	// Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})
	// API 3.0 Explorer 设置方式参考:
	// Config = {"CropIdCard":true,"CropPortrait":true}
	Config *string `json:"Config,omitempty" name:"Config"`
}

func NewIDCardOCRRequest

func NewIDCardOCRRequest() (request *IDCardOCRRequest)

func (*IDCardOCRRequest) FromJsonString

func (r *IDCardOCRRequest) FromJsonString(s string) error

func (*IDCardOCRRequest) ToJsonString

func (r *IDCardOCRRequest) ToJsonString() string

type IDCardOCRResponse

type IDCardOCRResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 姓名(人像面)
		Name *string `json:"Name,omitempty" name:"Name"`

		// 性别(人像面)
		Sex *string `json:"Sex,omitempty" name:"Sex"`

		// 民族(人像面)
		Nation *string `json:"Nation,omitempty" name:"Nation"`

		// 出生日期(人像面)
		Birth *string `json:"Birth,omitempty" name:"Birth"`

		// 地址(人像面)
		Address *string `json:"Address,omitempty" name:"Address"`

		// 身份证号(人像面)
		IdNum *string `json:"IdNum,omitempty" name:"IdNum"`

		// 发证机关(国徽面)
		Authority *string `json:"Authority,omitempty" name:"Authority"`

		// 证件有效期(国徽面)
		ValidDate *string `json:"ValidDate,omitempty" name:"ValidDate"`

		// 扩展信息,根据请求的可选字段返回对应内容,不请求则不返回,具体输入参考示例3和示例4。
		//
		// 目前支持的扩展字段为:
		// IdCard,身份证照片,请求 CropIdCard 时返回;
		// Portrait,人像照片,请求 CropPortrait 时返回;
		// WarnInfos,告警信息(Code - 告警码),识别出以下告警内容时返回。
		//
		// Code 告警码列表和释义:
		// -9100	身份证有效日期不合法告警,
		// -9101	身份证边框不完整告警,
		// -9102	身份证复印件告警,
		// -9103	身份证翻拍告警,
		// -9105	身份证框内遮挡告警,
		// -9104	临时身份证告警,
		// -9106	身份证 PS 告警。
		AdvancedInfo *string `json:"AdvancedInfo,omitempty" name:"AdvancedInfo"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewIDCardOCRResponse

func NewIDCardOCRResponse() (response *IDCardOCRResponse)

func (*IDCardOCRResponse) FromJsonString

func (r *IDCardOCRResponse) FromJsonString(s string) error

func (*IDCardOCRResponse) ToJsonString

func (r *IDCardOCRResponse) ToJsonString() string

type LicensePlateOCRRequest

type LicensePlateOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
	// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
	// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}

func NewLicensePlateOCRRequest

func NewLicensePlateOCRRequest() (request *LicensePlateOCRRequest)

func (*LicensePlateOCRRequest) FromJsonString

func (r *LicensePlateOCRRequest) FromJsonString(s string) error

func (*LicensePlateOCRRequest) ToJsonString

func (r *LicensePlateOCRRequest) ToJsonString() string

type LicensePlateOCRResponse

type LicensePlateOCRResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 识别出的车牌号码。
		Number *string `json:"Number,omitempty" name:"Number"`

		// 置信度,0 - 100 之间。
		Confidence *int64 `json:"Confidence,omitempty" name:"Confidence"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewLicensePlateOCRResponse

func NewLicensePlateOCRResponse() (response *LicensePlateOCRResponse)

func (*LicensePlateOCRResponse) FromJsonString

func (r *LicensePlateOCRResponse) FromJsonString(s string) error

func (*LicensePlateOCRResponse) ToJsonString

func (r *LicensePlateOCRResponse) ToJsonString() string

type TableOCRRequest

type TableOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
	// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
	// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}

func NewTableOCRRequest

func NewTableOCRRequest() (request *TableOCRRequest)

func (*TableOCRRequest) FromJsonString

func (r *TableOCRRequest) FromJsonString(s string) error

func (*TableOCRRequest) ToJsonString

func (r *TableOCRRequest) ToJsonString() string

type TableOCRResponse

type TableOCRResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 检测到的文本信息,具体内容请点击左侧链接。
		TextDetections []*TextTable `json:"TextDetections,omitempty" name:"TextDetections" list`

		// Base64 编码后的 Excel 数据。
		Data *string `json:"Data,omitempty" name:"Data"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewTableOCRResponse

func NewTableOCRResponse() (response *TableOCRResponse)

func (*TableOCRResponse) FromJsonString

func (r *TableOCRResponse) FromJsonString(s string) error

func (*TableOCRResponse) ToJsonString

func (r *TableOCRResponse) ToJsonString() string

type TextArithmetic

type TextArithmetic struct {

	// 识别出的文本行内容
	DetectedText *string `json:"DetectedText,omitempty" name:"DetectedText"`

	// 结果
	Result *bool `json:"Result,omitempty" name:"Result"`

	// 保留字段,暂无意义
	Confidence *int64 `json:"Confidence,omitempty" name:"Confidence"`

	// 文本行坐标,以四个顶点坐标表示
	// 注意:此字段可能返回 null,表示取不到有效值。
	Polygon []*Coord `json:"Polygon,omitempty" name:"Polygon" list`

	// 此字段为扩展字段
	AdvancedInfo *string `json:"AdvancedInfo,omitempty" name:"AdvancedInfo"`
}

type TextDetection

type TextDetection struct {

	// 识别出的文本行内容
	DetectedText *string `json:"DetectedText,omitempty" name:"DetectedText"`

	// 置信度 0 ~100
	Confidence *int64 `json:"Confidence,omitempty" name:"Confidence"`

	// 文本行坐标,以四个顶点坐标表示
	// 注意:此字段可能返回 null,表示取不到有效值。
	Polygon []*Coord `json:"Polygon,omitempty" name:"Polygon" list`

	// 此字段为扩展字段。
	// GeneralBasicOcr接口返回段落信息Parag,包含ParagNo。
	AdvancedInfo *string `json:"AdvancedInfo,omitempty" name:"AdvancedInfo"`
}

type TextDetectionEn

type TextDetectionEn struct {

	// 识别出的文本行内容
	DetectedText *string `json:"DetectedText,omitempty" name:"DetectedText"`

	// 置信度 0 ~100
	Confidence *int64 `json:"Confidence,omitempty" name:"Confidence"`

	// 文本行坐标,以四个顶点坐标表示
	// 注意:此字段可能返回 null,表示取不到有效值。
	Polygon []*Coord `json:"Polygon,omitempty" name:"Polygon" list`

	// 此字段为扩展字段。目前EnglishOCR接口返回内容为空。
	AdvancedInfo *string `json:"AdvancedInfo,omitempty" name:"AdvancedInfo"`
}

type TextGeneralHandwriting

type TextGeneralHandwriting struct {

	// 识别出的文本行内容
	DetectedText *string `json:"DetectedText,omitempty" name:"DetectedText"`

	// 置信度 0 - 100
	Confidence *int64 `json:"Confidence,omitempty" name:"Confidence"`

	// 文本行坐标,以四个顶点坐标表示
	Polygon []*Coord `json:"Polygon,omitempty" name:"Polygon" list`

	// 此字段为扩展字段
	AdvancedInfo *string `json:"AdvancedInfo,omitempty" name:"AdvancedInfo"`
}

type TextTable

type TextTable struct {

	// 单元格左上角的列索引
	ColTl *int64 `json:"ColTl,omitempty" name:"ColTl"`

	// 单元格左上角的行索引
	RowTl *int64 `json:"RowTl,omitempty" name:"RowTl"`

	// 单元格右下角的列索引
	ColBr *int64 `json:"ColBr,omitempty" name:"ColBr"`

	// 单元格右下角的行索引
	RowBr *int64 `json:"RowBr,omitempty" name:"RowBr"`

	// 单元格文字
	Text *string `json:"Text,omitempty" name:"Text"`

	// 单元格类型,包含body(表格主体)、header(表头)、footer(表尾)三种
	Type *string `json:"Type,omitempty" name:"Type"`

	// 置信度 0 ~100
	Confidence *int64 `json:"Confidence,omitempty" name:"Confidence"`

	// 文本行坐标,以四个顶点坐标表示
	Polygon []*Coord `json:"Polygon,omitempty" name:"Polygon" list`

	// 此字段为扩展字段
	AdvancedInfo *string `json:"AdvancedInfo,omitempty" name:"AdvancedInfo"`
}

type TextVatInvoice

type TextVatInvoice struct {

	// 识别出的字段名称(关键字)。
	Name *string `json:"Name,omitempty" name:"Name"`

	// 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
	Value *string `json:"Value,omitempty" name:"Value"`
}

type TextVehicleBack

type TextVehicleBack struct {

	// 号牌号码
	// 注意:此字段可能返回 null,表示取不到有效值。
	PlateNo *string `json:"PlateNo,omitempty" name:"PlateNo"`

	// 档案编号
	// 注意:此字段可能返回 null,表示取不到有效值。
	FileNo *string `json:"FileNo,omitempty" name:"FileNo"`

	// 核定人数
	// 注意:此字段可能返回 null,表示取不到有效值。
	AllowNum *string `json:"AllowNum,omitempty" name:"AllowNum"`

	// 总质量
	// 注意:此字段可能返回 null,表示取不到有效值。
	TotalMass *string `json:"TotalMass,omitempty" name:"TotalMass"`

	// 整备质量
	// 注意:此字段可能返回 null,表示取不到有效值。
	CurbWeight *string `json:"CurbWeight,omitempty" name:"CurbWeight"`

	// 核定载质量
	// 注意:此字段可能返回 null,表示取不到有效值。
	LoadQuality *string `json:"LoadQuality,omitempty" name:"LoadQuality"`

	// 外廓尺寸
	// 注意:此字段可能返回 null,表示取不到有效值。
	ExternalSize *string `json:"ExternalSize,omitempty" name:"ExternalSize"`

	// 备注
	// 注意:此字段可能返回 null,表示取不到有效值。
	Marks *string `json:"Marks,omitempty" name:"Marks"`

	// 检验记录
	// 注意:此字段可能返回 null,表示取不到有效值。
	Record *string `json:"Record,omitempty" name:"Record"`

	// 准牵引总质量
	// 注意:此字段可能返回 null,表示取不到有效值。
	TotalQuasiMass *string `json:"TotalQuasiMass,omitempty" name:"TotalQuasiMass"`
}

type TextVehicleFront

type TextVehicleFront struct {

	// 号牌号码
	// 注意:此字段可能返回 null,表示取不到有效值。
	PlateNo *string `json:"PlateNo,omitempty" name:"PlateNo"`

	// 车辆类型
	// 注意:此字段可能返回 null,表示取不到有效值。
	VehicleType *string `json:"VehicleType,omitempty" name:"VehicleType"`

	// 所有人
	// 注意:此字段可能返回 null,表示取不到有效值。
	Owner *string `json:"Owner,omitempty" name:"Owner"`

	// 住址
	// 注意:此字段可能返回 null,表示取不到有效值。
	Address *string `json:"Address,omitempty" name:"Address"`

	// 使用性质
	// 注意:此字段可能返回 null,表示取不到有效值。
	UseCharacter *string `json:"UseCharacter,omitempty" name:"UseCharacter"`

	// 品牌型号
	// 注意:此字段可能返回 null,表示取不到有效值。
	Model *string `json:"Model,omitempty" name:"Model"`

	// 车辆识别代号
	// 注意:此字段可能返回 null,表示取不到有效值。
	Vin *string `json:"Vin,omitempty" name:"Vin"`

	// 发动机号码
	// 注意:此字段可能返回 null,表示取不到有效值。
	EngineNo *string `json:"EngineNo,omitempty" name:"EngineNo"`

	// 注册日期
	// 注意:此字段可能返回 null,表示取不到有效值。
	RegisterDate *string `json:"RegisterDate,omitempty" name:"RegisterDate"`

	// 发证日期
	// 注意:此字段可能返回 null,表示取不到有效值。
	IssueDate *string `json:"IssueDate,omitempty" name:"IssueDate"`

	// 印章
	// 注意:此字段可能返回 null,表示取不到有效值。
	Seal *string `json:"Seal,omitempty" name:"Seal"`
}

type TextWaybill

type TextWaybill struct {

	// 收件人姓名
	RecName *WaybillObj `json:"RecName,omitempty" name:"RecName"`

	// 收件人手机号
	RecNum *WaybillObj `json:"RecNum,omitempty" name:"RecNum"`

	// 收件人地址
	RecAddr *WaybillObj `json:"RecAddr,omitempty" name:"RecAddr"`

	// 寄件人姓名
	SenderName *WaybillObj `json:"SenderName,omitempty" name:"SenderName"`

	// 寄件人手机号
	SenderNum *WaybillObj `json:"SenderNum,omitempty" name:"SenderNum"`

	// 寄件人地址
	SenderAddr *WaybillObj `json:"SenderAddr,omitempty" name:"SenderAddr"`

	// 运单号
	WaybillNum *WaybillObj `json:"WaybillNum,omitempty" name:"WaybillNum"`
}

type VatInvoiceOCRRequest

type VatInvoiceOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
	// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
	// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}

func NewVatInvoiceOCRRequest

func NewVatInvoiceOCRRequest() (request *VatInvoiceOCRRequest)

func (*VatInvoiceOCRRequest) FromJsonString

func (r *VatInvoiceOCRRequest) FromJsonString(s string) error

func (*VatInvoiceOCRRequest) ToJsonString

func (r *VatInvoiceOCRRequest) ToJsonString() string

type VatInvoiceOCRResponse

type VatInvoiceOCRResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 检测到的文本信息,具体内容请点击左侧链接。
		VatInvoiceInfos []*TextVatInvoice `json:"VatInvoiceInfos,omitempty" name:"VatInvoiceInfos" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewVatInvoiceOCRResponse

func NewVatInvoiceOCRResponse() (response *VatInvoiceOCRResponse)

func (*VatInvoiceOCRResponse) FromJsonString

func (r *VatInvoiceOCRResponse) FromJsonString(s string) error

func (*VatInvoiceOCRResponse) ToJsonString

func (r *VatInvoiceOCRResponse) ToJsonString() string

type VehicleLicenseOCRRequest

type VehicleLicenseOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
	// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
	// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`

	// FRONT 为行驶证主页正面(有红色印章的一面),
	// BACK 为行驶证副页正面(有号码号牌的一面)。
	CardSide *string `json:"CardSide,omitempty" name:"CardSide"`
}

func NewVehicleLicenseOCRRequest

func NewVehicleLicenseOCRRequest() (request *VehicleLicenseOCRRequest)

func (*VehicleLicenseOCRRequest) FromJsonString

func (r *VehicleLicenseOCRRequest) FromJsonString(s string) error

func (*VehicleLicenseOCRRequest) ToJsonString

func (r *VehicleLicenseOCRRequest) ToJsonString() string

type VehicleLicenseOCRResponse

type VehicleLicenseOCRResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 行驶证主页正面的识别结果,CardSide 为 FRONT。
		// 注意:此字段可能返回 null,表示取不到有效值。
		FrontInfo *TextVehicleFront `json:"FrontInfo,omitempty" name:"FrontInfo"`

		// 行驶证副页正面的识别结果,CardSide 为 BACK。
		// 注意:此字段可能返回 null,表示取不到有效值。
		BackInfo *TextVehicleBack `json:"BackInfo,omitempty" name:"BackInfo"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewVehicleLicenseOCRResponse

func NewVehicleLicenseOCRResponse() (response *VehicleLicenseOCRResponse)

func (*VehicleLicenseOCRResponse) FromJsonString

func (r *VehicleLicenseOCRResponse) FromJsonString(s string) error

func (*VehicleLicenseOCRResponse) ToJsonString

func (r *VehicleLicenseOCRResponse) ToJsonString() string

type VinOCRRequest

type VinOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
	// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
	// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}

func NewVinOCRRequest

func NewVinOCRRequest() (request *VinOCRRequest)

func (*VinOCRRequest) FromJsonString

func (r *VinOCRRequest) FromJsonString(s string) error

func (*VinOCRRequest) ToJsonString

func (r *VinOCRRequest) ToJsonString() string

type VinOCRResponse

type VinOCRResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 检测到的车辆 VIN 码。
		Vin *string `json:"Vin,omitempty" name:"Vin"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewVinOCRResponse

func NewVinOCRResponse() (response *VinOCRResponse)

func (*VinOCRResponse) FromJsonString

func (r *VinOCRResponse) FromJsonString(s string) error

func (*VinOCRResponse) ToJsonString

func (r *VinOCRResponse) ToJsonString() string

type WaybillOCRRequest

type WaybillOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
	// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
	// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}

func NewWaybillOCRRequest

func NewWaybillOCRRequest() (request *WaybillOCRRequest)

func (*WaybillOCRRequest) FromJsonString

func (r *WaybillOCRRequest) FromJsonString(s string) error

func (*WaybillOCRRequest) ToJsonString

func (r *WaybillOCRRequest) ToJsonString() string

type WaybillOCRResponse

type WaybillOCRResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 检测到的文本信息,具体内容请点击左侧链接。
		TextDetections *TextWaybill `json:"TextDetections,omitempty" name:"TextDetections"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewWaybillOCRResponse

func NewWaybillOCRResponse() (response *WaybillOCRResponse)

func (*WaybillOCRResponse) FromJsonString

func (r *WaybillOCRResponse) FromJsonString(s string) error

func (*WaybillOCRResponse) ToJsonString

func (r *WaybillOCRResponse) ToJsonString() string

type WaybillObj

type WaybillObj struct {

	// 识别出的文本行内容
	Text *string `json:"Text,omitempty" name:"Text"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL