v20181119

package
v3.0.233+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 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"`

		// 成立日期
		SetDate *string `json:"SetDate,omitempty" name:"SetDate"`

		// 唯一请求 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 BizLicenseVerifyResult

type BizLicenseVerifyResult struct {

	// “0“:一致
	// “-1”:此号未查询到结果
	RegNum *string `json:"RegNum,omitempty" name:"RegNum"`

	// “0“:一致
	// “-1”:不一致
	// “”:不验真
	Name *string `json:"Name,omitempty" name:"Name"`

	// “0“:一致
	// “-1”:不一致
	// “”:不验真
	Address *string `json:"Address,omitempty" name:"Address"`
}

type BusInvoiceInfo

type BusInvoiceInfo struct {

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

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

	// 文本行在旋转纠正之后的图像中的像素坐标。
	Rect *Rect `json:"Rect,omitempty" name:"Rect"`
}

type BusInvoiceOCRRequest

type BusInvoiceOCRRequest 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 NewBusInvoiceOCRRequest

func NewBusInvoiceOCRRequest() (request *BusInvoiceOCRRequest)

func (*BusInvoiceOCRRequest) FromJsonString

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

func (*BusInvoiceOCRRequest) ToJsonString

func (r *BusInvoiceOCRRequest) ToJsonString() string

type BusInvoiceOCRResponse

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

		// 汽车票识别结果,具体内容请点击左侧链接。
		BusInvoiceInfos []*BusInvoiceInfo `json:"BusInvoiceInfos,omitempty" name:"BusInvoiceInfos" list`

		// 图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负。
		Angle *float64 `json:"Angle,omitempty" name:"Angle"`

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

func NewBusInvoiceOCRResponse

func NewBusInvoiceOCRResponse() (response *BusInvoiceOCRResponse)

func (*BusInvoiceOCRResponse) FromJsonString

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

func (*BusInvoiceOCRResponse) ToJsonString

func (r *BusInvoiceOCRResponse) 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 CandWord

type CandWord struct {

	// 候选字符集的单词信息(包括单词Character和单词置信度confidence)
	CandWords []*Words `json:"CandWords,omitempty" name:"CandWords" list`
}

type CarInvoiceInfo

type CarInvoiceInfo struct {

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

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

	// 文本行在旋转纠正之后的图像中的像素坐标。
	Rect *Rect `json:"Rect,omitempty" name:"Rect"`
}

type CarInvoiceOCRRequest

type CarInvoiceOCRRequest 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 NewCarInvoiceOCRRequest

func NewCarInvoiceOCRRequest() (request *CarInvoiceOCRRequest)

func (*CarInvoiceOCRRequest) FromJsonString

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

func (*CarInvoiceOCRRequest) ToJsonString

func (r *CarInvoiceOCRRequest) ToJsonString() string

type CarInvoiceOCRResponse

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

		// 购车发票识别结果,具体内容请点击左侧链接。
		CarInvoiceInfos []*CarInvoiceInfo `json:"CarInvoiceInfos,omitempty" name:"CarInvoiceInfos" list`

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

func NewCarInvoiceOCRResponse

func NewCarInvoiceOCRResponse() (response *CarInvoiceOCRResponse)

func (*CarInvoiceOCRResponse) FromJsonString

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

func (*CarInvoiceOCRResponse) ToJsonString

func (r *CarInvoiceOCRResponse) ToJsonString() string

type ClassifyDetectInfo

type ClassifyDetectInfo struct {

	// 分类名称
	Name *string `json:"Name,omitempty" name:"Name"`

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

	// 位置坐标
	Rect *Rect `json:"Rect,omitempty" name:"Rect"`
}

type ClassifyDetectOCRRequest

type ClassifyDetectOCRRequest 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"`

	// 可以指定要识别的票证类型,指定后不出现在此列表的票证将不返回类型。不指定时默认返回所有支持类别票证的识别信息。
	//
	// 以下是当前支持的类型:
	// IDCardFront: 身份证正面识别
	// IDCardBack: 身份证背面识别
	// Passport: 护照
	// BusinessCard: 名片识别
	// BankCard: 银行卡识别
	// VehicleLicenseFront: 行驶证主页识别
	// VehicleLicenseBack: 行驶证副页识别
	// DriverLicenseFront: 驾驶证主页识别
	// DriverLicenseBack: 驾驶证副页识别
	// PermitFront: 港澳台通行证正面
	// ResidenceBooklet: 户口本资料页
	// MainlandPermitFront: 港澳台来往内地通行证正面
	// HmtResidentPermitFront: 港澳台居住证正面
	// HmtResidentPermitBack: 港澳台居住证背面
	// EstateCert: 不动产证
	// BizLicense: 营业执照
	DiscernType []*string `json:"DiscernType,omitempty" name:"DiscernType" list`
}

func NewClassifyDetectOCRRequest

func NewClassifyDetectOCRRequest() (request *ClassifyDetectOCRRequest)

func (*ClassifyDetectOCRRequest) FromJsonString

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

func (*ClassifyDetectOCRRequest) ToJsonString

func (r *ClassifyDetectOCRRequest) ToJsonString() string

type ClassifyDetectOCRResponse

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

		// 智能卡证分类结果。当图片类型不支持分类识别或者识别出的类型不在请求参数DiscernType指定的范围内时,返回结果中的Type字段将为空字符串,Name字段将返回"其它"
		ClassifyDetectInfos []*ClassifyDetectInfo `json:"ClassifyDetectInfos,omitempty" name:"ClassifyDetectInfos" list`

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

func NewClassifyDetectOCRResponse

func NewClassifyDetectOCRResponse() (response *ClassifyDetectOCRResponse)

func (*ClassifyDetectOCRResponse) FromJsonString

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

func (*ClassifyDetectOCRResponse) ToJsonString

func (r *ClassifyDetectOCRResponse) 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) BusInvoiceOCR

func (c *Client) BusInvoiceOCR(request *BusInvoiceOCRRequest) (response *BusInvoiceOCRResponse, err error)

本接口支持识别公路汽车客票的发票代码、发票号码、日期、姓名、票价等字段。

func (*Client) BusinessCardOCR

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

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

func (*Client) CarInvoiceOCR

func (c *Client) CarInvoiceOCR(request *CarInvoiceOCRRequest) (response *CarInvoiceOCRResponse, err error)

本接口支持机动车销售统一发票和二手车销售统一发票的识别,包括发票号码、发票代码、合计金额、合计税额等二十多个字段。

func (*Client) ClassifyDetectOCR

func (c *Client) ClassifyDetectOCR(request *ClassifyDetectOCRRequest) (response *ClassifyDetectOCRResponse, err error)

支持身份证、护照、名片、银行卡、行驶证、驾驶证、港澳台通行证、户口本、港澳台来往内地通行证、港澳台居住证、不动产证、营业执照的智能分类。

func (*Client) DriverLicenseOCR

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

本接口支持驾驶证主页和副页所有字段的自动定位与识别,重点字段的识别准确度达到99%以上。

驾驶证主页:包括证号、姓名、性别、国籍、住址、出生日期、初次领证日期、准驾车型、有效期限。

驾驶证副页:包括证号、姓名、档案编号、记录。

另外,本接口还支持复印件、翻拍和PS告警功能。

func (*Client) DutyPaidProofOCR

func (c *Client) DutyPaidProofOCR(request *DutyPaidProofOCRRequest) (response *DutyPaidProofOCRResponse, err error)

本接口支持对完税证明的税号、纳税人识别号、纳税人名称、金额合计大写、金额合计小写、填发日期、税务机关、填票人等关键字段的识别。

func (*Client) EduPaperOCR

func (c *Client) EduPaperOCR(request *EduPaperOCRRequest) (response *EduPaperOCRResponse, err error)

本接口支持数学试题内容的识别和结构化输出,包括通用文本解析和小学/初中/高中数学公式解析能力(包括91种题型,180种符号)。

func (*Client) EnglishOCR

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

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

func (*Client) EnterpriseLicenseOCR

func (c *Client) EnterpriseLicenseOCR(request *EnterpriseLicenseOCRRequest) (response *EnterpriseLicenseOCRResponse, err error)

本接口支持智能化识别各类企业登记证书、许可证书、企业执照、三证合一类证书,结构化输出统一社会信用代码、公司名称、法定代表人、公司地址、注册资金、企业类型、经营范围等关键字段。

func (*Client) EstateCertOCR

func (c *Client) EstateCertOCR(request *EstateCertOCRRequest) (response *EstateCertOCRResponse, err error)

本接口支持不动产权证关键字段的识别,包括使用期限、面积、用途、权利性质、权利类型、坐落、共有情况、权利人、权利其他状况等。

func (*Client) FinanBillOCR

func (c *Client) FinanBillOCR(request *FinanBillOCRRequest) (response *FinanBillOCRResponse, err error)

本接口支持常见银行票据的自动分类和识别。整单识别包括支票(含现金支票、普通支票、转账支票),承兑汇票(含银行承兑汇票、商业承兑汇票)以及进账单等,适用于中国人民银行印发的 2010 版银行票据凭证版式(银发[2010]299 号)。

func (*Client) FinanBillSliceOCR

func (c *Client) FinanBillSliceOCR(request *FinanBillSliceOCRRequest) (response *FinanBillSliceOCRResponse, err error)

本接口支持常见银行票据的自动分类和识别。切片识别包括金融行业常见票据的重要切片字段识别,包括金额、账号、日期、凭证号码等。(金融票据切片:金融票据中待识别字段及其周围局部区域的裁剪图像。)

func (*Client) FlightInvoiceOCR

func (c *Client) FlightInvoiceOCR(request *FlightInvoiceOCRRequest) (response *FlightInvoiceOCRResponse, err error)

本接口支持机票行程单关键字段的识别,包括姓名、身份证件号码、航班号、票价 、合计、电子客票号码、填开日期等。

func (*Client) FormulaOCR

func (c *Client) FormulaOCR(request *FormulaOCRRequest) (response *FormulaOCRResponse, err error)

本接口支持识别主流初高中数学符号和公式,返回公式的 Latex 格式文本。

func (*Client) GeneralAccurateOCR

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

本接口支持图像整体文字的检测和识别。支持中文、英文、中英文、数字和特殊字符号的识别,并返回文字框位置和文字内容。

适用于文字较多、版式复杂、对识别准召率要求较高的场景,如试卷试题、网络图片、街景店招牌、法律卷宗等场景。

产品优势:与通用印刷体识别相比,提供更高精度的文字识别服务,在文字较多、长串数字、小字、模糊字、倾斜文本等困难场景下,高精度版的准确率和召回率更高。

通用印刷体识别不同版本的差异如下: <table style="width:715px">

  <thead>
    <tr>
      <th style="width:150px"></th>
      <th >【荐】通用印刷体识别(高精度版)</th>
      <th style="width:200px"><a href="https://cloud.tencent.com/document/product/866/33526">【荐】通用印刷体识别</a></th>
      <th><a href="https://cloud.tencent.com/document/product/866/37831">通用印刷体识别(精简版)</a></th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td> 适用场景</td>
      <td>适用于文字较多、长串数字、小字、模糊字、倾斜文本等困难场景</td>
      <td>适用于所有通用场景的印刷体识别</td>
      <td>适用于快速文本识别场景,准召率有一定损失,价格更优惠</td>
    </tr>
    <tr>
      <td>识别准确率</td>
      <td>99%</td>
      <td>96%</td>
      <td>91%</td>
    </tr>
    <tr>
      <td>价格</td>
      <td>高</td>
      <td>中</td>
      <td>低</td>
    </tr>
    <tr>
      <td>支持的语言</td>
      <td>中文、英文、中英文</td>
      <td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
      <td>中文、英文、中英文</td>
    </tr>
    <tr>
      <td>自动语言检测</td>
      <td>支持</td>
      <td>支持</td>
      <td>支持</td>
    </tr>
    <tr>
      <td>返回文本行坐标</td>
      <td>支持</td>
      <td>支持</td>
      <td>支持</td>
    </tr>
    <tr>
      <td>自动旋转纠正</td>
      <td>支持旋转识别,不支持角度返回</td>
      <td>支持旋转识别,返回角度信息</td>
      <td>支持旋转识别,返回角度信息</td>
    </tr>
  </tbody>
</table>

func (*Client) GeneralBasicOCR

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

本接口支持图像整体文字的检测和识别。可以识别中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语19种语言,且各种语言均支持与英文混合的文字识别。

适用于印刷文档识别、网络图片识别、广告图文字识别、街景店招牌识别、菜单识别、视频标题识别、头像文字识别等场景。

产品优势:支持自动识别语言类型,可返回文本框坐标信息,对于倾斜文本支持自动旋转纠正。

通用印刷体识别不同版本的差异如下: <table style="width:715px">

  <thead>
    <tr>
      <th style="width:150px"></th>
      <th style="width:200px">【荐】通用印刷体识别</th>
      <th ><a href="https://cloud.tencent.com/document/product/866/34937">【荐】通用印刷体识别(高精度版)</a></th>
      <th><a href="https://cloud.tencent.com/document/product/866/37831">通用印刷体识别(精简版)</a></th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td> 适用场景</td>
      <td>适用于所有通用场景的印刷体识别</td>
      <td>适用于文字较多、长串数字、小字、模糊字、倾斜文本等困难场景</td>
      <td>适用于快速文本识别场景,准召率有一定损失,价格更优惠</td>
    </tr>
    <tr>
      <td>识别准确率</td>
      <td>96%</td>
      <td>99%</td>
      <td>91%</td>
    </tr>
    <tr>
      <td>价格</td>
      <td>中</td>
      <td>高</td>
      <td>低</td>
    </tr>
    <tr>
      <td>支持的语言</td>
      <td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
      <td>中文、英文、中英文</td>
      <td>中文、英文、中英文</td>
    </tr>
    <tr>
      <td>自动语言检测</td>
      <td>支持</td>
      <td>支持</td>
      <td>支持</td>
    </tr>
    <tr>
      <td>返回文本行坐标</td>
      <td>支持</td>
      <td>支持</td>
      <td>支持</td>
    </tr>
    <tr>
      <td>自动旋转纠正</td>
      <td>支持旋转识别,返回角度信息</td>
      <td>支持旋转识别,不支持角度返回</td>
      <td>支持旋转识别,返回角度信息</td>
    </tr>
  </tbody>
</table>

func (*Client) GeneralEfficientOCR

func (c *Client) GeneralEfficientOCR(request *GeneralEfficientOCRRequest) (response *GeneralEfficientOCRResponse, err error)

本接口支持图像整体文字的检测和识别。支持中文、英文、中英文、数字和特殊字符号的识别,并返回文字框位置和文字内容。

适用于快速文本识别场景。

产品优势:与通用印刷体识别接口相比,精简版虽然在准确率和召回率上有一定损失,但价格更加优惠。

通用印刷体识别不同版本的差异如下: <table style="width:715px">

  <thead>
    <tr>
      <th style="width:150px"></th>
      <th >通用印刷体识别(精简版)</th>
      <th style="width:200px"><a href="https://cloud.tencent.com/document/product/866/33526">【荐】通用印刷体识别</a></th>
      <th><a href="https://cloud.tencent.com/document/product/866/34937">【荐】通用印刷体识别(高精度版)</a></th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td> 适用场景</td>
      <td>适用于快速文本识别场景,准召率有一定损失,价格更优惠</td>
      <td>适用于所有通用场景的印刷体识别</td>
      <td>适用于文字较多、长串数字、小字、模糊字、倾斜文本等困难场景</td>

    </tr>
    <tr>
      <td>识别准确率</td>
      <td>91%</td>
      <td>96%</td>
      <td>99%</td>

    </tr>
    <tr>
      <td>价格</td>
      <td>低</td>
      <td>中</td>
      <td>高</td>

    </tr>
    <tr>
      <td>支持的语言</td>
      <td>中文、英文、中英文</td>
      <td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
      <td>中文、英文、中英文</td>

    </tr>
    <tr>
      <td>自动语言检测</td>
      <td>支持</td>
      <td>支持</td>
      <td>支持</td>

    </tr>
    <tr>
      <td>返回文本行坐标</td>
      <td>支持</td>
      <td>支持</td>
      <td>支持</td>

    </tr>
    <tr>
      <td>自动旋转纠正</td>
      <td>支持旋转识别,返回角度信息</td>
      <td>支持旋转识别,返回角度信息</td>
      <td>支持旋转识别,不支持角度返回</td>

    </tr>
  </tbody>
</table>

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) HKIDCardOCR

func (c *Client) HKIDCardOCR(request *HKIDCardOCRRequest) (response *HKIDCardOCRResponse, err error)

本接口支持中国香港身份证人像面中关键字段的识别,包括中文姓名、英文姓名、姓名电码、出生日期、性别、证件符号、首次签发日期、最近领用日期、身份证号、是否是永久性居民身份证;具备防伪识别、人像照片裁剪等扩展功能。 本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)

func (*Client) HmtResidentPermitOCR

func (c *Client) HmtResidentPermitOCR(request *HmtResidentPermitOCRRequest) (response *HmtResidentPermitOCRResponse, err error)

港澳台居住证OCR支持港澳台居住证正反面全字段内容检测识别功能,包括姓名、性别、出生日期、地址、身份证ID、签发机关、有效期限、签发次数、通行证号码关键字段识别。可以应用于港澳台居住证信息有效性校验场景,例如银行开户、用户注册等场景。

func (*Client) IDCardOCR

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

本接口支持中国大陆居民二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限,识别准确度达到99%以上。

另外,本接口还支持多种增值能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备9种告警功能,如下表所示。

<table style="width:650px">

  <thead>
    <tr>
   <th width="150">增值能力</th>
      <th width="500">能力项</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td rowspan="2">裁剪功能</td>
      <td>身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)</td>
    </tr>
    <tr>
      <td>人像照片裁剪(自动抠取身份证头像区域)</td>
    </tr>
    <tr>
      <td rowspan="9">告警功能</td>
      <td>身份证有效日期不合法告警</td>
    </tr>
    <tr>
      <td>身份证边框不完整告警</td>
    </tr>
    <tr>
      <td>身份证复印件告警</td>
    </tr>
    <tr>
      <td>身份证翻拍告警</td>
    </tr>
      <tr>
      <td>身份证框内遮挡告警</td>
    </tr>
     <tr>
      <td>临时身份证告警</td>
    </tr>
      <tr>
      <td>身份证 PS 告警</td>
    </tr>
      <tr>
      <td>图片模糊告警</td>
    </tr>
  </tbody>
</table>

func (*Client) InstitutionOCR

func (c *Client) InstitutionOCR(request *InstitutionOCRRequest) (response *InstitutionOCRResponse, err error)

本接口支持事业单位法人证书关键字段识别,包括注册号、有效期、住所、名称、法定代表人等。

func (*Client) InsuranceBillOCR

func (c *Client) InsuranceBillOCR(request *InsuranceBillOCRRequest) (response *InsuranceBillOCRResponse, err error)

本接口支持病案首页、费用清单、结算单、医疗发票四种保险理赔单据的文本识别和结构化输出。

func (*Client) InvoiceGeneralOCR

func (c *Client) InvoiceGeneralOCR(request *InvoiceGeneralOCRRequest) (response *InvoiceGeneralOCRResponse, err error)

本接口支持对通用机打发票的发票代码、发票号码、日期、购买方识别号、销售方识别号、校验码、小写金额等关键字段的识别。

func (*Client) LicensePlateOCR

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

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

func (*Client) MLIDCardOCR

func (c *Client) MLIDCardOCR(request *MLIDCardOCRRequest) (response *MLIDCardOCRResponse, err error)

本接口支持马来西亚身份证识别,识别字段包括身份证号、姓名、性别、地址;具备身份证人像照片的裁剪功能和翻拍、复印件告警功能。 本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)

func (*Client) MLIDPassportOCR

func (c *Client) MLIDPassportOCR(request *MLIDPassportOCRRequest) (response *MLIDPassportOCRResponse, err error)

本接口支持中国港澳台地区以及其他国家、地区的护照识别。识别字段包括护照ID、姓名、出生日期、性别、有效期、发行国、国籍,具备护照人像照片的裁剪功能和翻拍、复印件告警功能。

func (*Client) MainlandPermitOCR

func (c *Client) MainlandPermitOCR(request *MainlandPermitOCRRequest) (response *MainlandPermitOCRResponse, err error)

智能识别并结构化港澳台居民来往内地通行证正面全部字段,包含中文姓名、英文姓名、性别、出生日期、签发机关、有效期限、证件号、签发地点、签发次数、证件类别。

func (*Client) MixedInvoiceDetect

func (c *Client) MixedInvoiceDetect(request *MixedInvoiceDetectRequest) (response *MixedInvoiceDetectResponse, err error)

本接口支持多张、多类型票据的混合检测和自动分类,返回对应票据类型。目前已支持增值税发票、增值税发票(卷票)、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票、酒店账单、客运限额发票、购物小票、完税证明共15种票据。

func (*Client) MixedInvoiceOCR

func (c *Client) MixedInvoiceOCR(request *MixedInvoiceOCRRequest) (response *MixedInvoiceOCRResponse, err error)

本接口支持多张、多类型票据的混合识别,系统自动实现分割、分类和识别,同时支持自选需要识别的票据类型。目前已支持增值税发票、增值税发票(卷票)、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共11种票据。

func (*Client) OrgCodeCertOCR

func (c *Client) OrgCodeCertOCR(request *OrgCodeCertOCRRequest) (response *OrgCodeCertOCRResponse, err error)

本接口支持组织机构代码证关键字段的识别,包括代码、有效期、地址、机构名称等。

func (*Client) PassportOCR

func (c *Client) PassportOCR(request *PassportOCRRequest) (response *PassportOCRResponse, err error)

本接口支持中国大陆地区护照个人资料页多个字段的检测与识别。已支持字段包括英文姓名、中文姓名、国家码、护照号、出生地、出生日期、国籍英文、性别英文、有效期、签发地点英文、签发日期、持证人签名、护照机读码(MRZ码)等。

func (*Client) PermitOCR

func (c *Client) PermitOCR(request *PermitOCRRequest) (response *PermitOCRResponse, err error)

本接口支持对卡式港澳台通行证的识别,包括签发地点、签发机关、有效期限、性别、出生日期、英文姓名、姓名、证件号等字段。

func (*Client) PropOwnerCertOCR

func (c *Client) PropOwnerCertOCR(request *PropOwnerCertOCRRequest) (response *PropOwnerCertOCRResponse, err error)

本接口支持房产证关键字段的识别,包括房地产权利人、共有情况、登记时间、规划用途、房屋性质、房屋坐落等。

func (*Client) QrcodeOCR

func (c *Client) QrcodeOCR(request *QrcodeOCRRequest) (response *QrcodeOCRResponse, err error)

本接口支持条形码和二维码的识别(包括 DataMatrix 和 PDF417)。

func (*Client) QueryBarCode

func (c *Client) QueryBarCode(request *QueryBarCodeRequest) (response *QueryBarCodeResponse, err error)

本接口支持条形码备案信息查询,返回条形码查询结果的相关信息,包括产品名称、产品英文名称、品牌名称、规格型号、宽度、高度、深度、关键字、产品描述、厂家名称、厂家地址、企业社会信用代码13个字段信息。

产品优势:直联中国物品编码中心,查询结果更加准确、可靠。

本接口目前为内测阶段,如需使用服务,请<a href="https://cloud.tencent.com/act/event/connect-service" target="_blank">联系商务</a>开通。

func (*Client) QuotaInvoiceOCR

func (c *Client) QuotaInvoiceOCR(request *QuotaInvoiceOCRRequest) (response *QuotaInvoiceOCRResponse, err error)

本接口支持定额发票的发票号码、发票代码、金额(大小写)、发票消费类型、地区及是否有公司印章等关键字段的识别。

func (*Client) ResidenceBookletOCR

func (c *Client) ResidenceBookletOCR(request *ResidenceBookletOCRRequest) (response *ResidenceBookletOCRResponse, err error)

本接口支持居民户口簿户主页及成员页关键字段的识别,包括姓名、户别、地址、籍贯、身份证号码等。

func (*Client) RideHailingDriverLicenseOCR

func (c *Client) RideHailingDriverLicenseOCR(request *RideHailingDriverLicenseOCRRequest) (response *RideHailingDriverLicenseOCRResponse, err error)

本接口支持网约车驾驶证关键字段的识别,包括姓名、证号、起始日期、截止日期、发证日期。

func (*Client) RideHailingTransportLicenseOCR

func (c *Client) RideHailingTransportLicenseOCR(request *RideHailingTransportLicenseOCRRequest) (response *RideHailingTransportLicenseOCRResponse, err error)

本接口支持网约车运输证关键字段的识别,包括交运管许可字号、车辆所有人、车辆号牌、起始日期、截止日期、发证日期。

func (*Client) SealOCR

func (c *Client) SealOCR(request *SealOCRRequest) (response *SealOCRResponse, err error)

印章识别已支持各类印章,包括发票章,财务章等,适用于公文,票据等场景。

func (*Client) ShipInvoiceOCR

func (c *Client) ShipInvoiceOCR(request *ShipInvoiceOCRRequest) (response *ShipInvoiceOCRResponse, err error)

本接口支持识别轮船票的发票代码、发票号码、日期、姓名、票价等字段。

func (*Client) TableOCR

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

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

func (*Client) TaxiInvoiceOCR

func (c *Client) TaxiInvoiceOCR(request *TaxiInvoiceOCRRequest) (response *TaxiInvoiceOCRResponse, err error)

本接口支持出租车发票关键字段的识别,包括发票号码、发票代码、金额、日期、上下车时间、里程、车牌号、发票类型及所属地区等字段。

func (*Client) TextDetect

func (c *Client) TextDetect(request *TextDetectRequest) (response *TextDetectResponse, err error)

本接口通过检测图片中的文字信息特征,快速判断图片中有无文字并返回判断结果,帮助用户过滤无文字的图片。

func (*Client) TollInvoiceOCR

func (c *Client) TollInvoiceOCR(request *TollInvoiceOCRRequest) (response *TollInvoiceOCRResponse, err error)

本接口支持对过路过桥费发票的发票代码、发票号码、日期、小写金额等关键字段的识别。

func (*Client) TrainTicketOCR

func (c *Client) TrainTicketOCR(request *TrainTicketOCRRequest) (response *TrainTicketOCRResponse, err error)

本接口支持火车票全字段的识别,包括编号、票价、姓名、座位号、出发时间、出发站、到达站、车次、席别、发票类型及序列号等。

func (*Client) VatInvoiceOCR

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

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

func (*Client) VatInvoiceVerify

func (c *Client) VatInvoiceVerify(request *VatInvoiceVerifyRequest) (response *VatInvoiceVerifyResponse, err error)

本接口支持增值税发票的准确性核验,您可以通过输入增值税发票的关键字段提供所需的验证信息,接口返回真实的票面相关信息,包括发票代码、发票号码、开票日期、金额、消费类型、购方名称、购方税号、销方名称、销方税号等多个常用字段。支持多种发票类型核验,包括增值税专用发票、增值税普通发票(含电子普通发票、卷式发票、通行费发票)、机动车销售统一发票、货物运输业增值税专用发票、二手车销售统一发票。

func (*Client) VatRollInvoiceOCR

func (c *Client) VatRollInvoiceOCR(request *VatRollInvoiceOCRRequest) (response *VatRollInvoiceOCRResponse, err error)

本接口支持对增值税发票(卷票)的发票代码、发票号码、日期、校验码、合计金额(小写)等关键字段的识别。

func (*Client) VehicleLicenseOCR

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

本接口支持行驶证主页和副页所有字段的自动定位与识别。

行驶证主页:车牌号码、车辆类型、所有人、住址、使用性质、品牌型号、识别代码、发动机号、注册日期、发证日期、发证单位。

行驶证副页:号牌号码、档案编号、核定载人数、总质量、整备质量、核定载质量、外廓尺寸、准牵引总质量、备注、检验记录。

另外,本接口还支持复印件、翻拍和PS告警功能。

func (*Client) VehicleRegCertOCR

func (c *Client) VehicleRegCertOCR(request *VehicleRegCertOCRRequest) (response *VehicleRegCertOCRResponse, err error)

本接口支持国内机动车登记证书主要字段的结构化识别,包括机动车所有人、身份证明名称、号码、车辆型号、车辆识别代号、发动机号、制造厂名称等。

func (*Client) VerifyBasicBizLicense

func (c *Client) VerifyBasicBizLicense(request *VerifyBasicBizLicenseRequest) (response *VerifyBasicBizLicenseResponse, err error)

本接口支持营业执照信息的识别与准确性核验。您可以通过输入营业执照关键字段或传入营业执照图片提供所需的验证信息,接口返回真实的企业工商照面信息及核验结果,包括统一社会信用代码、经营期限、法人姓名、经营状态、经营业务范围、状态信息、原注册号、要核验的工商注册号、工商注册号、要核验的企业名称、企业名称、要核验的注册住址、注册住址、核验结果、注册资本共16个基础字段。

func (*Client) VerifyBizLicense

func (c *Client) VerifyBizLicense(request *VerifyBizLicenseRequest) (response *VerifyBizLicenseResponse, err error)

本接口支持营业执照信息的识别与准确性核验,返回的营业执照信息比营业执照识别及核验(基础版)接口更详细。 您可以通过输入营业执照关键字段或传入营业执照图片提供所需的验证信息,接口返回真实的企业工商照面信息及核验结果,包括统一社会信用代码、组织机构代码、经营期限、法人姓名、经营状态、经营业务范围及方式、注册资金、注册币种、登记机关、开业日期、企业(机构)类型、注销日期、吊销日期、许可经营项目、一般经营项目、核准时间、省、地级市、区/县、住所所在行政区划代码、行业门类代码、行业门类名称、国民经济行业代码、国民经济行业名称、经营(业务)范围、要核验的工商注册号、工商注册号、要核验的企业名称、企业名称、要核验的注册住址、注册住址、核验结果共33个详细字段。

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 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
	// 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`

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

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"`

		// 档案编号
		ArchivesCode *string `json:"ArchivesCode,omitempty" name:"ArchivesCode"`

		// 记录
		Record *string `json:"Record,omitempty" name:"Record"`

		// Code 告警码列表和释义:
		// -9102  复印件告警
		// -9103  翻拍件告警
		// -9106  ps告警
		// 注:告警码可以同时存在多个
		RecognizeWarnCode []*int64 `json:"RecognizeWarnCode,omitempty" name:"RecognizeWarnCode" list`

		// 告警码说明:
		// WARN_DRIVER_LICENSE_COPY_CARD 复印件告警
		// WARN_DRIVER_LICENSE_SCREENED_CARD 翻拍件告警
		// WARN_DRIVER_LICENSE_PS_CARD ps告警
		// 注:告警信息可以同时存在多个
		RecognizeWarnMsg []*string `json:"RecognizeWarnMsg,omitempty" name:"RecognizeWarnMsg" list`

		// 唯一请求 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 DutyPaidProofInfo

type DutyPaidProofInfo struct {

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

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

	// 文本行在旋转纠正之后的图像中的像素坐标。
	Rect *Rect `json:"Rect,omitempty" name:"Rect"`
}

type DutyPaidProofOCRRequest

type DutyPaidProofOCRRequest 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 NewDutyPaidProofOCRRequest

func NewDutyPaidProofOCRRequest() (request *DutyPaidProofOCRRequest)

func (*DutyPaidProofOCRRequest) FromJsonString

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

func (*DutyPaidProofOCRRequest) ToJsonString

func (r *DutyPaidProofOCRRequest) ToJsonString() string

type DutyPaidProofOCRResponse

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

		// 完税证明识别结果,具体内容请点击左侧链接。
		DutyPaidProofInfos []*DutyPaidProofInfo `json:"DutyPaidProofInfos,omitempty" name:"DutyPaidProofInfos" list`

		// 图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负。
		Angle *float64 `json:"Angle,omitempty" name:"Angle"`

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

func NewDutyPaidProofOCRResponse

func NewDutyPaidProofOCRResponse() (response *DutyPaidProofOCRResponse)

func (*DutyPaidProofOCRResponse) FromJsonString

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

func (*DutyPaidProofOCRResponse) ToJsonString

func (r *DutyPaidProofOCRResponse) ToJsonString() string

type EduPaperOCRRequest

type EduPaperOCRRequest 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"`

	// 扩展配置信息。
	// 配置格式:{"option1":value1,"option2":value2}
	// 可配置信息:
	//       参数名称  是否必选   类型   可选值  默认值  描述
	//       task_type  否  Int32  [0,1]  1  用于选择任务类型: 0: 关闭版式分析与处理 1: 开启版式分析处理
	//       is_structuralization 否 Bool false\true true  用于选择是否结构化输出:false:返回包体返回通用输出 true:返回包体同时返回通用和结构化输出
	//       if_readable_format 否 Bool false\true false 是否按照版式整合通用文本/公式输出结果
	// 例子:
	// {"task_type": 1,"is_structuralization": true,"if_readable_format": true}
	Config *string `json:"Config,omitempty" name:"Config"`
}

func NewEduPaperOCRRequest

func NewEduPaperOCRRequest() (request *EduPaperOCRRequest)

func (*EduPaperOCRRequest) FromJsonString

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

func (*EduPaperOCRRequest) ToJsonString

func (r *EduPaperOCRRequest) ToJsonString() string

type EduPaperOCRResponse

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

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

		// 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。
		Angle *int64 `json:"Angle,omitempty" name:"Angle"`

		// 结构化方式输出,具体内容请点击左侧链接。
		QuestionBlockInfos []*QuestionBlockObj `json:"QuestionBlockInfos,omitempty" name:"QuestionBlockInfos" list`

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

func NewEduPaperOCRResponse

func NewEduPaperOCRResponse() (response *EduPaperOCRResponse)

func (*EduPaperOCRResponse) FromJsonString

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

func (*EduPaperOCRResponse) ToJsonString

func (r *EduPaperOCRResponse) 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"`

	// 单词四点坐标开关,开启可返回图片中单词的四点坐标。
	// 该参数默认值为false。
	EnableCoordPoint *bool `json:"EnableCoordPoint,omitempty" name:"EnableCoordPoint"`

	// 候选字开关,开启可返回识别时多个可能的候选字(每个候选字对应其置信度)。
	// 该参数默认值为false。
	EnableCandWord *bool `json:"EnableCandWord,omitempty" name:"EnableCandWord"`
}

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 EnterpriseLicenseInfo

type EnterpriseLicenseInfo struct {

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

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

type EnterpriseLicenseOCRRequest

type EnterpriseLicenseOCRRequest 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 NewEnterpriseLicenseOCRRequest

func NewEnterpriseLicenseOCRRequest() (request *EnterpriseLicenseOCRRequest)

func (*EnterpriseLicenseOCRRequest) FromJsonString

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

func (*EnterpriseLicenseOCRRequest) ToJsonString

func (r *EnterpriseLicenseOCRRequest) ToJsonString() string

type EnterpriseLicenseOCRResponse

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

		// 企业证照识别结果,具体内容请点击左侧链接。
		EnterpriseLicenseInfos []*EnterpriseLicenseInfo `json:"EnterpriseLicenseInfos,omitempty" name:"EnterpriseLicenseInfos" list`

		// 图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负。
		Angle *float64 `json:"Angle,omitempty" name:"Angle"`

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

func NewEnterpriseLicenseOCRResponse

func NewEnterpriseLicenseOCRResponse() (response *EnterpriseLicenseOCRResponse)

func (*EnterpriseLicenseOCRResponse) FromJsonString

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

func (*EnterpriseLicenseOCRResponse) ToJsonString

func (r *EnterpriseLicenseOCRResponse) ToJsonString() string

type EstateCertOCRRequest

type EstateCertOCRRequest 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 NewEstateCertOCRRequest

func NewEstateCertOCRRequest() (request *EstateCertOCRRequest)

func (*EstateCertOCRRequest) FromJsonString

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

func (*EstateCertOCRRequest) ToJsonString

func (r *EstateCertOCRRequest) ToJsonString() string

type EstateCertOCRResponse

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

		// 权利人
		Obligee *string `json:"Obligee,omitempty" name:"Obligee"`

		// 共有情况
		Ownership *string `json:"Ownership,omitempty" name:"Ownership"`

		// 坐落
		Location *string `json:"Location,omitempty" name:"Location"`

		// 不动产单元号
		Unit *string `json:"Unit,omitempty" name:"Unit"`

		// 权利类型
		Type *string `json:"Type,omitempty" name:"Type"`

		// 权利性质
		Property *string `json:"Property,omitempty" name:"Property"`

		// 用途
		Usage *string `json:"Usage,omitempty" name:"Usage"`

		// 面积
		Area *string `json:"Area,omitempty" name:"Area"`

		// 使用期限
		Term *string `json:"Term,omitempty" name:"Term"`

		// 权利其他状况,多行会用换行符\n连接。
		Other *string `json:"Other,omitempty" name:"Other"`

		// 图片旋转角度
		Angle *float64 `json:"Angle,omitempty" name:"Angle"`

		// 不动产权号
		Number *string `json:"Number,omitempty" name:"Number"`

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

func NewEstateCertOCRResponse

func NewEstateCertOCRResponse() (response *EstateCertOCRResponse)

func (*EstateCertOCRResponse) FromJsonString

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

func (*EstateCertOCRResponse) ToJsonString

func (r *EstateCertOCRResponse) ToJsonString() string

type FinanBillInfo

type FinanBillInfo struct {

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

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

type FinanBillOCRRequest

type FinanBillOCRRequest 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 NewFinanBillOCRRequest

func NewFinanBillOCRRequest() (request *FinanBillOCRRequest)

func (*FinanBillOCRRequest) FromJsonString

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

func (*FinanBillOCRRequest) ToJsonString

func (r *FinanBillOCRRequest) ToJsonString() string

type FinanBillOCRResponse

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

		// 金融票据整单识别结果,具体内容请点击左侧链接。
		FinanBillInfos []*FinanBillInfo `json:"FinanBillInfos,omitempty" name:"FinanBillInfos" list`

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

func NewFinanBillOCRResponse

func NewFinanBillOCRResponse() (response *FinanBillOCRResponse)

func (*FinanBillOCRResponse) FromJsonString

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

func (*FinanBillOCRResponse) ToJsonString

func (r *FinanBillOCRResponse) ToJsonString() string

type FinanBillSliceInfo

type FinanBillSliceInfo struct {

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

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

type FinanBillSliceOCRRequest

type FinanBillSliceOCRRequest 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 NewFinanBillSliceOCRRequest

func NewFinanBillSliceOCRRequest() (request *FinanBillSliceOCRRequest)

func (*FinanBillSliceOCRRequest) FromJsonString

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

func (*FinanBillSliceOCRRequest) ToJsonString

func (r *FinanBillSliceOCRRequest) ToJsonString() string

type FinanBillSliceOCRResponse

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

		// 金融票据切片识别结果,具体内容请点击左侧链接。
		FinanBillSliceInfos []*FinanBillSliceInfo `json:"FinanBillSliceInfos,omitempty" name:"FinanBillSliceInfos" list`

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

func NewFinanBillSliceOCRResponse

func NewFinanBillSliceOCRResponse() (response *FinanBillSliceOCRResponse)

func (*FinanBillSliceOCRResponse) FromJsonString

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

func (*FinanBillSliceOCRResponse) ToJsonString

func (r *FinanBillSliceOCRResponse) ToJsonString() string

type FlightInvoiceInfo

type FlightInvoiceInfo struct {

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

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

type FlightInvoiceOCRRequest

type FlightInvoiceOCRRequest 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 NewFlightInvoiceOCRRequest

func NewFlightInvoiceOCRRequest() (request *FlightInvoiceOCRRequest)

func (*FlightInvoiceOCRRequest) FromJsonString

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

func (*FlightInvoiceOCRRequest) ToJsonString

func (r *FlightInvoiceOCRRequest) ToJsonString() string

type FlightInvoiceOCRResponse

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

		// 机票行程单识别结果,具体内容请点击左侧链接。
		FlightInvoiceInfos []*FlightInvoiceInfo `json:"FlightInvoiceInfos,omitempty" name:"FlightInvoiceInfos" list`

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

func NewFlightInvoiceOCRResponse

func NewFlightInvoiceOCRResponse() (response *FlightInvoiceOCRResponse)

func (*FlightInvoiceOCRResponse) FromJsonString

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

func (*FlightInvoiceOCRResponse) ToJsonString

func (r *FlightInvoiceOCRResponse) ToJsonString() string

type FormulaOCRRequest

type FormulaOCRRequest 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 NewFormulaOCRRequest

func NewFormulaOCRRequest() (request *FormulaOCRRequest)

func (*FormulaOCRRequest) FromJsonString

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

func (*FormulaOCRRequest) ToJsonString

func (r *FormulaOCRRequest) ToJsonString() string

type FormulaOCRResponse

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

		// 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负
		Angle *int64 `json:"Angle,omitempty" name:"Angle"`

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

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

func NewFormulaOCRResponse

func NewFormulaOCRResponse() (response *FormulaOCRResponse)

func (*FormulaOCRResponse) FromJsonString

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

func (*FormulaOCRResponse) ToJsonString

func (r *FormulaOCRResponse) ToJsonString() string

type GeneralAccurateOCRRequest

type GeneralAccurateOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。
	// 要求图片经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP格式。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。
	// 要求图片经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP格式。
	// 图片存储于腾讯云的 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`

		// 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。
		Angel *float64 `json:"Angel,omitempty" name:"Angel"`

		// 唯一请求 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 值。
	// 要求图片经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP格式。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。
	// 要求图片经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP格式。
	// 图片存储于腾讯云的 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"`

		// 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
		Angel *float64 `json:"Angel,omitempty" name:"Angel"`

		// 唯一请求 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 GeneralEfficientOCRRequest

type GeneralEfficientOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。
	// 要求图片经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP格式。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。
	// 要求图片经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP格式。
	// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}

func NewGeneralEfficientOCRRequest

func NewGeneralEfficientOCRRequest() (request *GeneralEfficientOCRRequest)

func (*GeneralEfficientOCRRequest) FromJsonString

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

func (*GeneralEfficientOCRRequest) ToJsonString

func (r *GeneralEfficientOCRRequest) ToJsonString() string

type GeneralEfficientOCRResponse

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

		// 检测到的文本信息,包括文本行内容、置信度、文本行坐标以及文本行旋转纠正后的坐标,具体内容请点击左侧链接。
		TextDetections []*TextDetection `json:"TextDetections,omitempty" name:"TextDetections" list`

		// 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
		Angel *float64 `json:"Angel,omitempty" name:"Angel"`

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

func NewGeneralEfficientOCRResponse

func NewGeneralEfficientOCRResponse() (response *GeneralEfficientOCRResponse)

func (*GeneralEfficientOCRResponse) FromJsonString

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

func (*GeneralEfficientOCRResponse) ToJsonString

func (r *GeneralEfficientOCRResponse) 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"`

		// 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负
		Angel *float64 `json:"Angel,omitempty" name:"Angel"`

		// 唯一请求 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"`

	// 场景字段,默认不用填写。
	// 可选值:only_hw  表示只输出手写体识别结果,过滤印刷体。
	Scene *string `json:"Scene,omitempty" name:"Scene"`
}

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 HKIDCardOCRRequest

type HKIDCardOCRRequest struct {
	*tchttp.BaseRequest

	// 是否鉴伪。
	DetectFake *bool `json:"DetectFake,omitempty" name:"DetectFake"`

	// 是否返回人像照片。
	ReturnHeadImage *bool `json:"ReturnHeadImage,omitempty" name:"ReturnHeadImage"`

	// 图片的 Base64 值。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
	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 NewHKIDCardOCRRequest

func NewHKIDCardOCRRequest() (request *HKIDCardOCRRequest)

func (*HKIDCardOCRRequest) FromJsonString

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

func (*HKIDCardOCRRequest) ToJsonString

func (r *HKIDCardOCRRequest) ToJsonString() string

type HKIDCardOCRResponse

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

		// 中文姓名
		CnName *string `json:"CnName,omitempty" name:"CnName"`

		// 英文姓名
		EnName *string `json:"EnName,omitempty" name:"EnName"`

		// 中文姓名对应电码
		TelexCode *string `json:"TelexCode,omitempty" name:"TelexCode"`

		// 性别 :“男M”或“女F”
		Sex *string `json:"Sex,omitempty" name:"Sex"`

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

		// 永久性居民身份证。
		// 0:非永久;
		// 1:永久;
		// -1:未知。
		Permanent *int64 `json:"Permanent,omitempty" name:"Permanent"`

		// 身份证号码
		IdNum *string `json:"IdNum,omitempty" name:"IdNum"`

		// 证件符号,出生日期下的符号,例如"***AZ"
		Symbol *string `json:"Symbol,omitempty" name:"Symbol"`

		// 首次签发日期
		FirstIssueDate *string `json:"FirstIssueDate,omitempty" name:"FirstIssueDate"`

		// 最近领用日期
		CurrentIssueDate *string `json:"CurrentIssueDate,omitempty" name:"CurrentIssueDate"`

		// 真假判断。
		// 0:无法判断(图像模糊、不完整、反光、过暗等导致无法判断);
		// 1:假;
		// 2:真。
		// 注意:此字段可能返回 null,表示取不到有效值。
		FakeDetectResult *int64 `json:"FakeDetectResult,omitempty" name:"FakeDetectResult"`

		// 人像照片Base64后的结果
		// 注意:此字段可能返回 null,表示取不到有效值。
		HeadImage *string `json:"HeadImage,omitempty" name:"HeadImage"`

		// 多重告警码,当身份证是翻拍、复印、PS件时返回对应告警码。
		// -9102:证照复印件告警
		// -9103:证照翻拍告警
		// -9104:证照PS告警
		// -9105:证照防伪告警
		WarningCode []*int64 `json:"WarningCode,omitempty" name:"WarningCode" list`

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

func NewHKIDCardOCRResponse

func NewHKIDCardOCRResponse() (response *HKIDCardOCRResponse)

func (*HKIDCardOCRResponse) FromJsonString

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

func (*HKIDCardOCRResponse) ToJsonString

func (r *HKIDCardOCRResponse) ToJsonString() string

type HmtResidentPermitOCRRequest

type HmtResidentPermitOCRRequest 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"`

	// FRONT:有照片的一面(人像面),
	// BACK:无照片的一面(国徽面),
	// 该参数如果不填或填错,将为您自动判断正反面。
	CardSide *string `json:"CardSide,omitempty" name:"CardSide"`
}

func NewHmtResidentPermitOCRRequest

func NewHmtResidentPermitOCRRequest() (request *HmtResidentPermitOCRRequest)

func (*HmtResidentPermitOCRRequest) FromJsonString

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

func (*HmtResidentPermitOCRRequest) ToJsonString

func (r *HmtResidentPermitOCRRequest) ToJsonString() string

type HmtResidentPermitOCRResponse

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

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

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

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

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

		// 身份证号
		IdCardNo *string `json:"IdCardNo,omitempty" name:"IdCardNo"`

		// 0-正面
		// 1-反面
		CardType *int64 `json:"CardType,omitempty" name:"CardType"`

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

		// 签发机关
		Authority *string `json:"Authority,omitempty" name:"Authority"`

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

func NewHmtResidentPermitOCRResponse

func NewHmtResidentPermitOCRResponse() (response *HmtResidentPermitOCRResponse)

func (*HmtResidentPermitOCRResponse) FromJsonString

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

func (*HmtResidentPermitOCRResponse) ToJsonString

func (r *HmtResidentPermitOCRResponse) ToJsonString() string

type IDCardOCRRequest

type IDCardOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
	// 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`

	// FRONT:身份证有照片的一面(人像面),
	// BACK:身份证有国徽的一面(国徽面),
	// 该参数如果不填,将为您自动判断身份证正反面。
	CardSide *string `json:"CardSide,omitempty" name:"CardSide"`

	// 以下可选字段均为bool 类型,默认false:
	// CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)
	// CropPortrait,人像照片裁剪(自动抠取身份证头像区域)
	// CopyWarn,复印件告警
	// BorderCheckWarn,边框和框内遮挡告警
	// ReshootWarn,翻拍告警
	// DetectPsWarn,PS检测告警
	// TempIdWarn,临时身份证告警
	// InvalidDateWarn,身份证有效日期不合法告警
	// Quality,图片质量分数(评价图片的模糊程度)
	// MultiCardDetect,是否开启多卡证检测
	//
	// 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,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;
		// Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;
		//
		// Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0~100,分数越低越模糊,建议阈值≥50);
		// BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0~100,分数越低边框遮挡可能性越低,建议阈值≥50);
		//
		// WarnInfos,告警信息,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 InstitutionOCRRequest

type InstitutionOCRRequest 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 NewInstitutionOCRRequest

func NewInstitutionOCRRequest() (request *InstitutionOCRRequest)

func (*InstitutionOCRRequest) FromJsonString

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

func (*InstitutionOCRRequest) ToJsonString

func (r *InstitutionOCRRequest) ToJsonString() string

type InstitutionOCRResponse

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

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

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

		// 住所
		Location *string `json:"Location,omitempty" name:"Location"`

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

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

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

func NewInstitutionOCRResponse

func NewInstitutionOCRResponse() (response *InstitutionOCRResponse)

func (*InstitutionOCRResponse) FromJsonString

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

func (*InstitutionOCRResponse) ToJsonString

func (r *InstitutionOCRResponse) ToJsonString() string

type InsuranceBillInfo

type InsuranceBillInfo struct {

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

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

type InsuranceBillOCRRequest

type InsuranceBillOCRRequest 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 NewInsuranceBillOCRRequest

func NewInsuranceBillOCRRequest() (request *InsuranceBillOCRRequest)

func (*InsuranceBillOCRRequest) FromJsonString

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

func (*InsuranceBillOCRRequest) ToJsonString

func (r *InsuranceBillOCRRequest) ToJsonString() string

type InsuranceBillOCRResponse

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

		// 保险单据识别结果,具体内容请点击左侧链接。
		InsuranceBillInfos []*InsuranceBillInfo `json:"InsuranceBillInfos,omitempty" name:"InsuranceBillInfos" list`

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

func NewInsuranceBillOCRResponse

func NewInsuranceBillOCRResponse() (response *InsuranceBillOCRResponse)

func (*InsuranceBillOCRResponse) FromJsonString

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

func (*InsuranceBillOCRResponse) ToJsonString

func (r *InsuranceBillOCRResponse) ToJsonString() string

type InvoiceDetectInfo

type InvoiceDetectInfo struct {

	// 识别出的图片在混贴票据图片中的旋转角度。
	Angle *float64 `json:"Angle,omitempty" name:"Angle"`

	// 识别出的图片所属的票据类型。
	// -1:未知类型
	// 0:出租车发票
	// 1:定额发票
	// 2:火车票
	// 3:增值税发票
	// 4:客运限额发票
	// 5:机票行程单
	// 6:酒店账单
	// 7:完税证明
	// 8:通用机打发票
	// 9:汽车票
	// 10:轮船票
	// 11:增值税发票(卷票 )
	// 12:购车发票
	// 13:过路过桥费发票
	// 14:购物小票
	Type *int64 `json:"Type,omitempty" name:"Type"`

	// 识别出的图片在混贴票据图片中的位置信息。与Angel结合可以得出原图位置,组成RotatedRect((X+0.5\*Width,Y+0.5\*Height), (Width, Height), Angle),详情可参考OpenCV文档。
	Rect *Rect `json:"Rect,omitempty" name:"Rect"`

	// 入参 ReturnImage 为 True 时返回 Base64 编码后的图片。
	// 注意:此字段可能返回 null,表示取不到有效值。
	Image *string `json:"Image,omitempty" name:"Image"`
}

type InvoiceGeneralInfo

type InvoiceGeneralInfo struct {

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

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

	// 文本行在旋转纠正之后的图像中的像素坐标。
	Rect *Rect `json:"Rect,omitempty" name:"Rect"`
}

type InvoiceGeneralOCRRequest

type InvoiceGeneralOCRRequest 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 NewInvoiceGeneralOCRRequest

func NewInvoiceGeneralOCRRequest() (request *InvoiceGeneralOCRRequest)

func (*InvoiceGeneralOCRRequest) FromJsonString

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

func (*InvoiceGeneralOCRRequest) ToJsonString

func (r *InvoiceGeneralOCRRequest) ToJsonString() string

type InvoiceGeneralOCRResponse

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

		// 通用机打发票识别结果,具体内容请点击左侧链接。
		InvoiceGeneralInfos []*InvoiceGeneralInfo `json:"InvoiceGeneralInfos,omitempty" name:"InvoiceGeneralInfos" list`

		// 图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负。
		Angle *float64 `json:"Angle,omitempty" name:"Angle"`

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

func NewInvoiceGeneralOCRResponse

func NewInvoiceGeneralOCRResponse() (response *InvoiceGeneralOCRResponse)

func (*InvoiceGeneralOCRResponse) FromJsonString

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

func (*InvoiceGeneralOCRResponse) ToJsonString

func (r *InvoiceGeneralOCRResponse) ToJsonString() string

type ItemCoord

type ItemCoord struct {

	// 左上角x
	X *int64 `json:"X,omitempty" name:"X"`

	// 左上角y
	Y *int64 `json:"Y,omitempty" name:"Y"`

	// 宽width
	Width *int64 `json:"Width,omitempty" name:"Width"`

	// 高height
	Height *int64 `json:"Height,omitempty" name:"Height"`
}

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 MLIDCardOCRRequest

type MLIDCardOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。
	// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
	// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

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

	// 是否返回图片,默认false
	RetImage *bool `json:"RetImage,omitempty" name:"RetImage"`
}

func NewMLIDCardOCRRequest

func NewMLIDCardOCRRequest() (request *MLIDCardOCRRequest)

func (*MLIDCardOCRRequest) FromJsonString

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

func (*MLIDCardOCRRequest) ToJsonString

func (r *MLIDCardOCRRequest) ToJsonString() string

type MLIDCardOCRResponse

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

		// 身份证号
		ID *string `json:"ID,omitempty" name:"ID"`

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

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

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

		// 告警码
		// -9103	证照翻拍告警
		// -9102	证照复印件告警
		// -9106       证件遮挡告警
		Warn []*int64 `json:"Warn,omitempty" name:"Warn" list`

		// 证件图片
		Image *string `json:"Image,omitempty" name:"Image"`

		// 扩展字段:
		// {
		//     ID:{
		//         Confidence:0.9999
		//     },
		//     Name:{
		//         Confidence:0.9996
		//     }
		// }
		AdvancedInfo *string `json:"AdvancedInfo,omitempty" name:"AdvancedInfo"`

		// 证件类型
		// MyKad  身份证
		// MyPR    永居证
		// MyTentera   军官证
		// MyKAS    临时身份证
		// POLIS  警察
		// IKAD   劳工证
		Type *string `json:"Type,omitempty" name:"Type"`

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

func NewMLIDCardOCRResponse

func NewMLIDCardOCRResponse() (response *MLIDCardOCRResponse)

func (*MLIDCardOCRResponse) FromJsonString

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

func (*MLIDCardOCRResponse) ToJsonString

func (r *MLIDCardOCRResponse) ToJsonString() string

type MLIDPassportOCRRequest

type MLIDPassportOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 是否返回图片,默认false
	RetImage *bool `json:"RetImage,omitempty" name:"RetImage"`
}

func NewMLIDPassportOCRRequest

func NewMLIDPassportOCRRequest() (request *MLIDPassportOCRRequest)

func (*MLIDPassportOCRRequest) FromJsonString

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

func (*MLIDPassportOCRRequest) ToJsonString

func (r *MLIDPassportOCRRequest) ToJsonString() string

type MLIDPassportOCRResponse

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

		// 护照ID
		ID *string `json:"ID,omitempty" name:"ID"`

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

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

		// 性别(F女,M男)
		Sex *string `json:"Sex,omitempty" name:"Sex"`

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

		// 发行国
		IssuingCountry *string `json:"IssuingCountry,omitempty" name:"IssuingCountry"`

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

		// 告警码
		// -9103	证照翻拍告警
		// -9102	证照复印件告警
		// -9106       证件遮挡告警
		Warn []*int64 `json:"Warn,omitempty" name:"Warn" list`

		// 证件图片
		Image *string `json:"Image,omitempty" name:"Image"`

		// 扩展字段:
		// {
		//     ID:{
		//         Confidence:0.9999
		//     },
		//     Name:{
		//         Confidence:0.9996
		//     }
		// }
		AdvancedInfo *string `json:"AdvancedInfo,omitempty" name:"AdvancedInfo"`

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

func NewMLIDPassportOCRResponse

func NewMLIDPassportOCRResponse() (response *MLIDPassportOCRResponse)

func (*MLIDPassportOCRResponse) FromJsonString

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

func (*MLIDPassportOCRResponse) ToJsonString

func (r *MLIDPassportOCRResponse) ToJsonString() string

type MainlandPermitOCRRequest

type MainlandPermitOCRRequest 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"`

	// 是否返回头像。默认不返回。
	RetProfile *bool `json:"RetProfile,omitempty" name:"RetProfile"`
}

func NewMainlandPermitOCRRequest

func NewMainlandPermitOCRRequest() (request *MainlandPermitOCRRequest)

func (*MainlandPermitOCRRequest) FromJsonString

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

func (*MainlandPermitOCRRequest) ToJsonString

func (r *MainlandPermitOCRRequest) ToJsonString() string

type MainlandPermitOCRResponse

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

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

		// 英文姓名
		EnglishName *string `json:"EnglishName,omitempty" name:"EnglishName"`

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

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

		// 签发机关
		IssueAuthority *string `json:"IssueAuthority,omitempty" name:"IssueAuthority"`

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

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

		// 签发地点
		IssueAddress *string `json:"IssueAddress,omitempty" name:"IssueAddress"`

		// 签发次数
		IssueNumber *string `json:"IssueNumber,omitempty" name:"IssueNumber"`

		// 证件类别, 如:台湾居民来往大陆通行证、港澳居民来往内地通行证。
		Type *string `json:"Type,omitempty" name:"Type"`

		// RetProfile为True时返回头像字段, Base64编码
		Profile *string `json:"Profile,omitempty" name:"Profile"`

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

func NewMainlandPermitOCRResponse

func NewMainlandPermitOCRResponse() (response *MainlandPermitOCRResponse)

func (*MainlandPermitOCRResponse) FromJsonString

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

func (*MainlandPermitOCRResponse) ToJsonString

func (r *MainlandPermitOCRResponse) ToJsonString() string

type MixedInvoiceDetectRequest

type MixedInvoiceDetectRequest struct {
	*tchttp.BaseRequest

	// 是否需要返回裁剪后的图片。
	ReturnImage *bool `json:"ReturnImage,omitempty" name:"ReturnImage"`

	// 图片的 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 NewMixedInvoiceDetectRequest

func NewMixedInvoiceDetectRequest() (request *MixedInvoiceDetectRequest)

func (*MixedInvoiceDetectRequest) FromJsonString

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

func (*MixedInvoiceDetectRequest) ToJsonString

func (r *MixedInvoiceDetectRequest) ToJsonString() string

type MixedInvoiceDetectResponse

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

		// 检测出的票据类型列表,具体内容请点击左侧链接。
		InvoiceDetectInfos []*InvoiceDetectInfo `json:"InvoiceDetectInfos,omitempty" name:"InvoiceDetectInfos" list`

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

func NewMixedInvoiceDetectResponse

func NewMixedInvoiceDetectResponse() (response *MixedInvoiceDetectResponse)

func (*MixedInvoiceDetectResponse) FromJsonString

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

func (*MixedInvoiceDetectResponse) ToJsonString

func (r *MixedInvoiceDetectResponse) ToJsonString() string

type MixedInvoiceItem

type MixedInvoiceItem struct {

	// 识别结果。
	// OK:表示识别成功;FailedOperation.UnsupportedInvioce:表示不支持识别;
	// FailedOperation.UnKnowError:表示识别失败;
	// 其它错误码见各个票据接口的定义。
	Code *string `json:"Code,omitempty" name:"Code"`

	// 识别出的图片所属的票据类型。
	// -1:未知类型
	// 0:出租车发票
	// 1:定额发票
	// 2:火车票
	// 3:增值税发票
	// 5:机票行程单
	// 8:通用机打发票
	// 9:汽车票
	// 10:轮船票
	// 11:增值税发票(卷票 )
	// 12:购车发票
	// 13:过路过桥费发票
	Type *int64 `json:"Type,omitempty" name:"Type"`

	// 识别出的图片在混贴票据图片中的位置信息。与Angel结合可以得出原图位置,组成RotatedRect((X+0.5\*Width,Y+0.5\*Height), (Width, Height), Angle),详情可参考OpenCV文档。
	Rect *Rect `json:"Rect,omitempty" name:"Rect"`

	// 识别出的图片在混贴票据图片中的旋转角度。
	Angle *float64 `json:"Angle,omitempty" name:"Angle"`

	// 识别到的内容。
	SingleInvoiceInfos []*SingleInvoiceInfo `json:"SingleInvoiceInfos,omitempty" name:"SingleInvoiceInfos" list`
}

type MixedInvoiceOCRRequest

type MixedInvoiceOCRRequest 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"`

	// 需要识别的票据类型列表,为空或不填表示识别全部类型。
	// 0:出租车发票
	// 1:定额发票
	// 2:火车票
	// 3:增值税发票
	// 5:机票行程单
	// 8:通用机打发票
	// 9:汽车票
	// 10:轮船票
	// 11:增值税发票(卷票 )
	// 12:购车发票
	// 13:过路过桥费发票
	Types []*int64 `json:"Types,omitempty" name:"Types" list`
}

func NewMixedInvoiceOCRRequest

func NewMixedInvoiceOCRRequest() (request *MixedInvoiceOCRRequest)

func (*MixedInvoiceOCRRequest) FromJsonString

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

func (*MixedInvoiceOCRRequest) ToJsonString

func (r *MixedInvoiceOCRRequest) ToJsonString() string

type MixedInvoiceOCRResponse

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

		// 混贴票据识别结果,具体内容请点击左侧链接。
		MixedInvoiceItems []*MixedInvoiceItem `json:"MixedInvoiceItems,omitempty" name:"MixedInvoiceItems" list`

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

func NewMixedInvoiceOCRResponse

func NewMixedInvoiceOCRResponse() (response *MixedInvoiceOCRResponse)

func (*MixedInvoiceOCRResponse) FromJsonString

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

func (*MixedInvoiceOCRResponse) ToJsonString

func (r *MixedInvoiceOCRResponse) ToJsonString() string

type OrgCodeCertOCRRequest

type OrgCodeCertOCRRequest 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 NewOrgCodeCertOCRRequest

func NewOrgCodeCertOCRRequest() (request *OrgCodeCertOCRRequest)

func (*OrgCodeCertOCRRequest) FromJsonString

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

func (*OrgCodeCertOCRRequest) ToJsonString

func (r *OrgCodeCertOCRRequest) ToJsonString() string

type OrgCodeCertOCRResponse

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

		// 代码
		OrgCode *string `json:"OrgCode,omitempty" name:"OrgCode"`

		// 机构名称
		Name *string `json:"Name,omitempty" name:"Name"`

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

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

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

func NewOrgCodeCertOCRResponse

func NewOrgCodeCertOCRResponse() (response *OrgCodeCertOCRResponse)

func (*OrgCodeCertOCRResponse) FromJsonString

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

func (*OrgCodeCertOCRResponse) ToJsonString

func (r *OrgCodeCertOCRResponse) ToJsonString() string

type PassportOCRRequest

type PassportOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
	// 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`

	// 默认填写CN
	// 支持中国大陆地区护照。
	Type *string `json:"Type,omitempty" name:"Type"`
}

func NewPassportOCRRequest

func NewPassportOCRRequest() (request *PassportOCRRequest)

func (*PassportOCRRequest) FromJsonString

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

func (*PassportOCRRequest) ToJsonString

func (r *PassportOCRRequest) ToJsonString() string

type PassportOCRResponse

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

		// 国家码
		Country *string `json:"Country,omitempty" name:"Country"`

		// 护照号
		PassportNo *string `json:"PassportNo,omitempty" name:"PassportNo"`

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

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

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

		// 出生地点
		BirthPlace *string `json:"BirthPlace,omitempty" name:"BirthPlace"`

		// 签发日期
		IssueDate *string `json:"IssueDate,omitempty" name:"IssueDate"`

		// 签发地点
		IssuePlace *string `json:"IssuePlace,omitempty" name:"IssuePlace"`

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

		// 持证人签名
		Signature *string `json:"Signature,omitempty" name:"Signature"`

		// 最下方第一行 MRZ Code 序列
		CodeSet *string `json:"CodeSet,omitempty" name:"CodeSet"`

		// 最下方第二行 MRZ Code 序列
		CodeCrc *string `json:"CodeCrc,omitempty" name:"CodeCrc"`

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

		// 姓
		FamilyName *string `json:"FamilyName,omitempty" name:"FamilyName"`

		// 名
		FirstName *string `json:"FirstName,omitempty" name:"FirstName"`

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

func NewPassportOCRResponse

func NewPassportOCRResponse() (response *PassportOCRResponse)

func (*PassportOCRResponse) FromJsonString

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

func (*PassportOCRResponse) ToJsonString

func (r *PassportOCRResponse) ToJsonString() string

type PermitOCRRequest

type PermitOCRRequest 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 NewPermitOCRRequest

func NewPermitOCRRequest() (request *PermitOCRRequest)

func (*PermitOCRRequest) FromJsonString

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

func (*PermitOCRRequest) ToJsonString

func (r *PermitOCRRequest) ToJsonString() string

type PermitOCRResponse

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

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

		// 英文姓名
		EnglishName *string `json:"EnglishName,omitempty" name:"EnglishName"`

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

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

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

		// 签发机关
		IssueAuthority *string `json:"IssueAuthority,omitempty" name:"IssueAuthority"`

		// 签发地点
		IssueAddress *string `json:"IssueAddress,omitempty" name:"IssueAddress"`

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

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

func NewPermitOCRResponse

func NewPermitOCRResponse() (response *PermitOCRResponse)

func (*PermitOCRResponse) FromJsonString

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

func (*PermitOCRResponse) ToJsonString

func (r *PermitOCRResponse) ToJsonString() string

type ProductDataRecord

type ProductDataRecord struct {

	// 产品名称
	ProductName *string `json:"ProductName,omitempty" name:"ProductName"`

	// 产品名称(英文)
	EnName *string `json:"EnName,omitempty" name:"EnName"`

	// 品牌名称
	BrandName *string `json:"BrandName,omitempty" name:"BrandName"`

	// 规格型号
	Type *string `json:"Type,omitempty" name:"Type"`

	// 宽度,单位毫米
	Width *string `json:"Width,omitempty" name:"Width"`

	// 高度,单位毫米
	Height *string `json:"Height,omitempty" name:"Height"`

	// 深度,单位毫米
	Depth *string `json:"Depth,omitempty" name:"Depth"`

	// 关键字
	KeyWord *string `json:"KeyWord,omitempty" name:"KeyWord"`

	// 简短描述
	Description *string `json:"Description,omitempty" name:"Description"`

	// 图片链接
	ImageLink []*string `json:"ImageLink,omitempty" name:"ImageLink" list`

	// 厂家名称
	ManufacturerName *string `json:"ManufacturerName,omitempty" name:"ManufacturerName"`

	// 厂家地址
	ManufacturerAddress *string `json:"ManufacturerAddress,omitempty" name:"ManufacturerAddress"`

	// 企业社会信用代码
	FirmCode *string `json:"FirmCode,omitempty" name:"FirmCode"`

	// 表示数据查询状态
	// checkResult	状态说明
	// 1	 经查,该商品条码已在中国物品编码中心注册
	// 2	经查,该厂商识别代码已在中国物品编码中心注册,但编码信息未按规定通报。
	// 3	经查,该厂商识别代码已于xxxxx注销,请关注产品生产日期。
	// 4	经查,该企业以及条码未经条码中心注册,属于违法使用
	// -1	经查,该商品条码被冒用
	// -2	经查,该厂商识别代码已在中国物品编码中心注册,但该产品已经下市
	// S001                未找到该厂商识别代码的注册信息。
	// S002		该厂商识别代码已经在GS1注册,但编码信息未通报
	// S003		该商品条码已在GS1通报
	// S004		该商品条码已注销
	// S005		数字不正确。GS1前缀(3位国家/地区代码)用于特殊用途。
	// E001		完整性失败:此GTIN的长度无效。
	// E002		完整性失败:校验位不正确。
	// E003		完整性失败:字符串包含字母数字字符。
	// E004		数字不正确。GS1前缀(3位国家/地区代码)不存在。
	// E005		数字不正确。GS1前缀(3位国家/地区代码)用于特殊用途。
	// E006		数字不正确。尚未分配该GS1公司前缀。
	// E008	        经查,该企业厂商识别代码以及条码尚未通报
	CheckResult *string `json:"CheckResult,omitempty" name:"CheckResult"`

	// UNSPSC分类码
	CategoryCode *string `json:"CategoryCode,omitempty" name:"CategoryCode"`
}

type PropOwnerCertOCRRequest

type PropOwnerCertOCRRequest 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 NewPropOwnerCertOCRRequest

func NewPropOwnerCertOCRRequest() (request *PropOwnerCertOCRRequest)

func (*PropOwnerCertOCRRequest) FromJsonString

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

func (*PropOwnerCertOCRRequest) ToJsonString

func (r *PropOwnerCertOCRRequest) ToJsonString() string

type PropOwnerCertOCRResponse

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

		// 房地产权利人
		Owner *string `json:"Owner,omitempty" name:"Owner"`

		// 共有情况
		Possession *string `json:"Possession,omitempty" name:"Possession"`

		// 登记时间
		RegisterTime *string `json:"RegisterTime,omitempty" name:"RegisterTime"`

		// 规划用途
		Purpose *string `json:"Purpose,omitempty" name:"Purpose"`

		// 房屋性质
		Nature *string `json:"Nature,omitempty" name:"Nature"`

		// 房地坐落
		Location *string `json:"Location,omitempty" name:"Location"`

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

func NewPropOwnerCertOCRResponse

func NewPropOwnerCertOCRResponse() (response *PropOwnerCertOCRResponse)

func (*PropOwnerCertOCRResponse) FromJsonString

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

func (*PropOwnerCertOCRResponse) ToJsonString

func (r *PropOwnerCertOCRResponse) ToJsonString() string

type QrcodeImgSize

type QrcodeImgSize struct {

	// 宽
	Wide *int64 `json:"Wide,omitempty" name:"Wide"`

	// 高
	High *int64 `json:"High,omitempty" name:"High"`
}

type QrcodeOCRRequest

type QrcodeOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。要求图片经Base64编码后不超过 3M,支持PNG、JPG、JPEG格式。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。要求图片经Base64编码后不超过 3M,支持PNG、JPG、JPEG格式。
	// 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}

func NewQrcodeOCRRequest

func NewQrcodeOCRRequest() (request *QrcodeOCRRequest)

func (*QrcodeOCRRequest) FromJsonString

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

func (*QrcodeOCRRequest) ToJsonString

func (r *QrcodeOCRRequest) ToJsonString() string

type QrcodeOCRResponse

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

		// 二维码/条形码识别结果信息,具体内容请点击左侧链接。
		CodeResults []*QrcodeResultsInfo `json:"CodeResults,omitempty" name:"CodeResults" list`

		// 图片大小,具体内容请点击左侧链接。
		ImgSize *QrcodeImgSize `json:"ImgSize,omitempty" name:"ImgSize"`

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

func NewQrcodeOCRResponse

func NewQrcodeOCRResponse() (response *QrcodeOCRResponse)

func (*QrcodeOCRResponse) FromJsonString

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

func (*QrcodeOCRResponse) ToJsonString

func (r *QrcodeOCRResponse) ToJsonString() string

type QrcodePositionObj

type QrcodePositionObj struct {

	// 左上顶点坐标(如果是条形码,X和Y都为-1)
	LeftTop *Coord `json:"LeftTop,omitempty" name:"LeftTop"`

	// 右上顶点坐标(如果是条形码,X和Y都为-1)
	RightTop *Coord `json:"RightTop,omitempty" name:"RightTop"`

	// 右下顶点坐标(如果是条形码,X和Y都为-1)
	RightBottom *Coord `json:"RightBottom,omitempty" name:"RightBottom"`

	// 左下顶点坐标(如果是条形码,X和Y都为-1)
	LeftBottom *Coord `json:"LeftBottom,omitempty" name:"LeftBottom"`
}

type QrcodeResultsInfo

type QrcodeResultsInfo struct {

	// 类型(二维码、条形码)
	TypeName *string `json:"TypeName,omitempty" name:"TypeName"`

	// 二维码/条形码包含的地址
	Url *string `json:"Url,omitempty" name:"Url"`

	// 二维码/条形码坐标(二维码会返回位置坐标,条形码暂不返回位置坐标,因此默认X和Y返回值均为-1)
	Position *QrcodePositionObj `json:"Position,omitempty" name:"Position"`
}

type QueryBarCodeRequest

type QueryBarCodeRequest struct {
	*tchttp.BaseRequest

	// 条形码
	BarCode *string `json:"BarCode,omitempty" name:"BarCode"`
}

func NewQueryBarCodeRequest

func NewQueryBarCodeRequest() (request *QueryBarCodeRequest)

func (*QueryBarCodeRequest) FromJsonString

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

func (*QueryBarCodeRequest) ToJsonString

func (r *QueryBarCodeRequest) ToJsonString() string

type QueryBarCodeResponse

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

		// 条码
		BarCode *string `json:"BarCode,omitempty" name:"BarCode"`

		// 条码信息数组
		ProductDataRecords []*ProductDataRecord `json:"ProductDataRecords,omitempty" name:"ProductDataRecords" list`

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

func NewQueryBarCodeResponse

func NewQueryBarCodeResponse() (response *QueryBarCodeResponse)

func (*QueryBarCodeResponse) FromJsonString

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

func (*QueryBarCodeResponse) ToJsonString

func (r *QueryBarCodeResponse) ToJsonString() string

type QuestionBlockObj

type QuestionBlockObj struct {

	// 数学试题识别结构化信息数组
	QuestionArr []*QuestionObj `json:"QuestionArr,omitempty" name:"QuestionArr" list`
}

type QuestionObj

type QuestionObj struct {

	// 题号
	QuestionTextNo *string `json:"QuestionTextNo,omitempty" name:"QuestionTextNo"`

	// 题型:
	// 1: "选择题"
	// 2: "填空题"
	// 3: "解答题"
	QuestionTextType *int64 `json:"QuestionTextType,omitempty" name:"QuestionTextType"`

	// 题干
	QuestionText *string `json:"QuestionText,omitempty" name:"QuestionText"`

	// 选择题选项,包含1个或多个option
	QuestionOptions *string `json:"QuestionOptions,omitempty" name:"QuestionOptions"`

	// 所有子题的question属性
	QuestionSubquestion *string `json:"QuestionSubquestion,omitempty" name:"QuestionSubquestion"`
}

type QuotaInvoiceOCRRequest

type QuotaInvoiceOCRRequest 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 NewQuotaInvoiceOCRRequest

func NewQuotaInvoiceOCRRequest() (request *QuotaInvoiceOCRRequest)

func (*QuotaInvoiceOCRRequest) FromJsonString

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

func (*QuotaInvoiceOCRRequest) ToJsonString

func (r *QuotaInvoiceOCRRequest) ToJsonString() string

type QuotaInvoiceOCRResponse

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

		// 发票号码
		InvoiceNum *string `json:"InvoiceNum,omitempty" name:"InvoiceNum"`

		// 发票代码
		InvoiceCode *string `json:"InvoiceCode,omitempty" name:"InvoiceCode"`

		// 大写金额
		Rate *string `json:"Rate,omitempty" name:"Rate"`

		// 小写金额
		RateNum *string `json:"RateNum,omitempty" name:"RateNum"`

		// 发票消费类型
		InvoiceType *string `json:"InvoiceType,omitempty" name:"InvoiceType"`

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

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

		// 是否有公司印章(1有 0无 空为识别不出)
		// 注意:此字段可能返回 null,表示取不到有效值。
		HasStamp *string `json:"HasStamp,omitempty" name:"HasStamp"`

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

func NewQuotaInvoiceOCRResponse

func NewQuotaInvoiceOCRResponse() (response *QuotaInvoiceOCRResponse)

func (*QuotaInvoiceOCRResponse) FromJsonString

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

func (*QuotaInvoiceOCRResponse) ToJsonString

func (r *QuotaInvoiceOCRResponse) ToJsonString() string

type Rect

type Rect struct {

	// 左上角x
	X *int64 `json:"X,omitempty" name:"X"`

	// 左上角y
	Y *int64 `json:"Y,omitempty" name:"Y"`

	// 宽度
	Width *int64 `json:"Width,omitempty" name:"Width"`

	// 高度
	Height *int64 `json:"Height,omitempty" name:"Height"`
}

type ResidenceBookletOCRRequest

type ResidenceBookletOCRRequest 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 NewResidenceBookletOCRRequest

func NewResidenceBookletOCRRequest() (request *ResidenceBookletOCRRequest)

func (*ResidenceBookletOCRRequest) FromJsonString

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

func (*ResidenceBookletOCRRequest) ToJsonString

func (r *ResidenceBookletOCRRequest) ToJsonString() string

type ResidenceBookletOCRResponse

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

		// 户号
		HouseholdNumber *string `json:"HouseholdNumber,omitempty" name:"HouseholdNumber"`

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

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

		// 出生地
		BirthPlace *string `json:"BirthPlace,omitempty" name:"BirthPlace"`

		// 民族
		Nation *string `json:"Nation,omitempty" name:"Nation"`

		// 籍贯
		NativePlace *string `json:"NativePlace,omitempty" name:"NativePlace"`

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

		// 公民身份证件编号
		IdCardNumber *string `json:"IdCardNumber,omitempty" name:"IdCardNumber"`

		// 文化程度
		EducationDegree *string `json:"EducationDegree,omitempty" name:"EducationDegree"`

		// 服务处所
		ServicePlace *string `json:"ServicePlace,omitempty" name:"ServicePlace"`

		// 户别
		Household *string `json:"Household,omitempty" name:"Household"`

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

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

func NewResidenceBookletOCRResponse

func NewResidenceBookletOCRResponse() (response *ResidenceBookletOCRResponse)

func (*ResidenceBookletOCRResponse) FromJsonString

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

func (*ResidenceBookletOCRResponse) ToJsonString

func (r *ResidenceBookletOCRResponse) ToJsonString() string

type RideHailingDriverLicenseOCRRequest

type RideHailingDriverLicenseOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
	// 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}

func NewRideHailingDriverLicenseOCRRequest

func NewRideHailingDriverLicenseOCRRequest() (request *RideHailingDriverLicenseOCRRequest)

func (*RideHailingDriverLicenseOCRRequest) FromJsonString

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

func (*RideHailingDriverLicenseOCRRequest) ToJsonString

func (r *RideHailingDriverLicenseOCRRequest) ToJsonString() string

type RideHailingDriverLicenseOCRResponse

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

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

		// 证号,对应网约车驾驶证字段:证号/从业资格证号/驾驶员证号/身份证号
		LicenseNumber *string `json:"LicenseNumber,omitempty" name:"LicenseNumber"`

		// 有效起始日期
		StartDate *string `json:"StartDate,omitempty" name:"StartDate"`

		// 有效期截止时间,对应网约车驾驶证字段:有效期至/营运期限止
		EndDate *string `json:"EndDate,omitempty" name:"EndDate"`

		// 初始发证日期,对应网约车驾驶证字段:初始领证日期/发证日期
		ReleaseDate *string `json:"ReleaseDate,omitempty" name:"ReleaseDate"`

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

func NewRideHailingDriverLicenseOCRResponse

func NewRideHailingDriverLicenseOCRResponse() (response *RideHailingDriverLicenseOCRResponse)

func (*RideHailingDriverLicenseOCRResponse) FromJsonString

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

func (*RideHailingDriverLicenseOCRResponse) ToJsonString

func (r *RideHailingDriverLicenseOCRResponse) ToJsonString() string

type RideHailingTransportLicenseOCRRequest

type RideHailingTransportLicenseOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
	// 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}

func NewRideHailingTransportLicenseOCRRequest

func NewRideHailingTransportLicenseOCRRequest() (request *RideHailingTransportLicenseOCRRequest)

func (*RideHailingTransportLicenseOCRRequest) FromJsonString

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

func (*RideHailingTransportLicenseOCRRequest) ToJsonString

type RideHailingTransportLicenseOCRResponse

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

		// 交运管许可字号。
		OperationLicenseNumber *string `json:"OperationLicenseNumber,omitempty" name:"OperationLicenseNumber"`

		// 车辆所有人,对应网约车运输证字段:车辆所有人/车主名称/业户名称。
		VehicleOwner *string `json:"VehicleOwner,omitempty" name:"VehicleOwner"`

		// 车牌号码,对应网约车运输证字段:车牌号码/车辆号牌。
		VehicleNumber *string `json:"VehicleNumber,omitempty" name:"VehicleNumber"`

		// 有效起始日期。
		StartDate *string `json:"StartDate,omitempty" name:"StartDate"`

		// 有效期截止时间,对应网约车运输证字段:有效期至/营运期限止。
		EndDate *string `json:"EndDate,omitempty" name:"EndDate"`

		// 初始发证日期,对应网约车运输证字段:初始领证日期/发证日期。
		ReleaseDate *string `json:"ReleaseDate,omitempty" name:"ReleaseDate"`

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

func NewRideHailingTransportLicenseOCRResponse

func NewRideHailingTransportLicenseOCRResponse() (response *RideHailingTransportLicenseOCRResponse)

func (*RideHailingTransportLicenseOCRResponse) FromJsonString

func (*RideHailingTransportLicenseOCRResponse) ToJsonString

type SealOCRRequest

type SealOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
	// 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
	ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}

func NewSealOCRRequest

func NewSealOCRRequest() (request *SealOCRRequest)

func (*SealOCRRequest) FromJsonString

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

func (*SealOCRRequest) ToJsonString

func (r *SealOCRRequest) ToJsonString() string

type SealOCRResponse

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

		// 印章内容
		SealBody *string `json:"SealBody,omitempty" name:"SealBody"`

		// 印章坐标
		Location *Rect `json:"Location,omitempty" name:"Location"`

		// 其它文本内容
		OtherTexts []*string `json:"OtherTexts,omitempty" name:"OtherTexts" list`

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

func NewSealOCRResponse

func NewSealOCRResponse() (response *SealOCRResponse)

func (*SealOCRResponse) FromJsonString

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

func (*SealOCRResponse) ToJsonString

func (r *SealOCRResponse) ToJsonString() string

type ShipInvoiceInfo

type ShipInvoiceInfo struct {

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

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

	// 文本行在旋转纠正之后的图像中的像素坐标。
	Rect *Rect `json:"Rect,omitempty" name:"Rect"`
}

type ShipInvoiceOCRRequest

type ShipInvoiceOCRRequest 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 NewShipInvoiceOCRRequest

func NewShipInvoiceOCRRequest() (request *ShipInvoiceOCRRequest)

func (*ShipInvoiceOCRRequest) FromJsonString

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

func (*ShipInvoiceOCRRequest) ToJsonString

func (r *ShipInvoiceOCRRequest) ToJsonString() string

type ShipInvoiceOCRResponse

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

		// 轮船票识别结果,具体内容请点击左侧链接。
		ShipInvoiceInfos []*ShipInvoiceInfo `json:"ShipInvoiceInfos,omitempty" name:"ShipInvoiceInfos" list`

		// 图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负。
		Angle *float64 `json:"Angle,omitempty" name:"Angle"`

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

func NewShipInvoiceOCRResponse

func NewShipInvoiceOCRResponse() (response *ShipInvoiceOCRResponse)

func (*ShipInvoiceOCRResponse) FromJsonString

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

func (*ShipInvoiceOCRResponse) ToJsonString

func (r *ShipInvoiceOCRResponse) ToJsonString() string

type SingleInvoiceInfo

type SingleInvoiceInfo struct {

	// 识别出的字段名称
	Name *string `json:"Name,omitempty" name:"Name"`

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

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 TaxiInvoiceOCRRequest

type TaxiInvoiceOCRRequest 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 NewTaxiInvoiceOCRRequest

func NewTaxiInvoiceOCRRequest() (request *TaxiInvoiceOCRRequest)

func (*TaxiInvoiceOCRRequest) FromJsonString

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

func (*TaxiInvoiceOCRRequest) ToJsonString

func (r *TaxiInvoiceOCRRequest) ToJsonString() string

type TaxiInvoiceOCRResponse

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

		// 发票代码
		InvoiceNum *string `json:"InvoiceNum,omitempty" name:"InvoiceNum"`

		// 发票号码
		InvoiceCode *string `json:"InvoiceCode,omitempty" name:"InvoiceCode"`

		// 日期
		Date *string `json:"Date,omitempty" name:"Date"`

		// 金额
		Fare *string `json:"Fare,omitempty" name:"Fare"`

		// 上车时间
		GetOnTime *string `json:"GetOnTime,omitempty" name:"GetOnTime"`

		// 下车时间
		GetOffTime *string `json:"GetOffTime,omitempty" name:"GetOffTime"`

		// 里程
		Distance *string `json:"Distance,omitempty" name:"Distance"`

		// 发票所在地
		Location *string `json:"Location,omitempty" name:"Location"`

		// 车牌号
		PlateNumber *string `json:"PlateNumber,omitempty" name:"PlateNumber"`

		// 发票消费类型
		InvoiceType *string `json:"InvoiceType,omitempty" name:"InvoiceType"`

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

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

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

func NewTaxiInvoiceOCRResponse

func NewTaxiInvoiceOCRResponse() (response *TaxiInvoiceOCRResponse)

func (*TaxiInvoiceOCRResponse) FromJsonString

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

func (*TaxiInvoiceOCRResponse) ToJsonString

func (r *TaxiInvoiceOCRResponse) 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"`

	// 文本行旋转纠正之后在图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height)
	ItemCoord *ItemCoord `json:"ItemCoord,omitempty" name:"ItemCoord"`

	// 算式题型编号:
	// ‘1’: 加减乘除四则
	// ‘2’: 加减乘除已知结果求运算因子
	// ‘3’: 判断大小
	// ‘4’: 约等于估算
	// ‘5’: 带余数除法
	// ‘6’: 分数四则运算
	// ‘7’: 单位换算
	// ‘8’: 竖式加减法
	// ‘9’: 竖式乘除法
	// ‘10’: 脱式计算
	// ‘11’: 解方程
	ExpressionType *string `json:"ExpressionType,omitempty" name:"ExpressionType"`
}

type TextDetectRequest

type TextDetectRequest 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 NewTextDetectRequest

func NewTextDetectRequest() (request *TextDetectRequest)

func (*TextDetectRequest) FromJsonString

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

func (*TextDetectRequest) ToJsonString

func (r *TextDetectRequest) ToJsonString() string

type TextDetectResponse

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

		// 图片中是否包含文字。
		HasText *bool `json:"HasText,omitempty" name:"HasText"`

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

func NewTextDetectResponse

func NewTextDetectResponse() (response *TextDetectResponse)

func (*TextDetectResponse) FromJsonString

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

func (*TextDetectResponse) ToJsonString

func (r *TextDetectResponse) ToJsonString() string

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"`

	// 文本行在旋转纠正之后的图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height)
	ItemPolygon *ItemCoord `json:"ItemPolygon,omitempty" name:"ItemPolygon"`
}

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"`

	// 单词在原图中的四点坐标。
	WordCoordPoint []*WordCoordPoint `json:"WordCoordPoint,omitempty" name:"WordCoordPoint" list`

	// 候选字符集(包含候选字Character以及置信度Confidence)。
	CandWord []*CandWord `json:"CandWord,omitempty" name:"CandWord" list`

	// 识别出来的单词信息(包括单词Character和单词置信度confidence)
	Words []*Words `json:"Words,omitempty" name:"Words" list`
}

type TextEduPaper

type TextEduPaper struct {

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

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

	// 文本行在旋转纠正之后的图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height)
	Itemcoord *ItemCoord `json:"Itemcoord,omitempty" name:"Itemcoord"`
}

type TextFormula

type TextFormula struct {

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

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`

	// 此字段为扩展字段。
	// 能返回文本行的段落信息,例如:{\"Parag\":{\"ParagNo\":2}},
	// 其中ParagNo为段落行,从1开始。
	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 TollInvoiceInfo

type TollInvoiceInfo struct {

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

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

	// 文本行在旋转纠正之后的图像中的像素坐标。
	Rect *Rect `json:"Rect,omitempty" name:"Rect"`
}

type TollInvoiceOCRRequest

type TollInvoiceOCRRequest 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 NewTollInvoiceOCRRequest

func NewTollInvoiceOCRRequest() (request *TollInvoiceOCRRequest)

func (*TollInvoiceOCRRequest) FromJsonString

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

func (*TollInvoiceOCRRequest) ToJsonString

func (r *TollInvoiceOCRRequest) ToJsonString() string

type TollInvoiceOCRResponse

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

		// 过路过桥费发票识别结果,具体内容请点击左侧链接。
		TollInvoiceInfos []*TollInvoiceInfo `json:"TollInvoiceInfos,omitempty" name:"TollInvoiceInfos" list`

		// 图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负。
		Angle *float64 `json:"Angle,omitempty" name:"Angle"`

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

func NewTollInvoiceOCRResponse

func NewTollInvoiceOCRResponse() (response *TollInvoiceOCRResponse)

func (*TollInvoiceOCRResponse) FromJsonString

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

func (*TollInvoiceOCRResponse) ToJsonString

func (r *TollInvoiceOCRResponse) ToJsonString() string

type TrainTicketOCRRequest

type TrainTicketOCRRequest 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 NewTrainTicketOCRRequest

func NewTrainTicketOCRRequest() (request *TrainTicketOCRRequest)

func (*TrainTicketOCRRequest) FromJsonString

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

func (*TrainTicketOCRRequest) ToJsonString

func (r *TrainTicketOCRRequest) ToJsonString() string

type TrainTicketOCRResponse

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

		// 编号
		TicketNum *string `json:"TicketNum,omitempty" name:"TicketNum"`

		// 出发站
		StartStation *string `json:"StartStation,omitempty" name:"StartStation"`

		// 到达站
		DestinationStation *string `json:"DestinationStation,omitempty" name:"DestinationStation"`

		// 出发时间
		Date *string `json:"Date,omitempty" name:"Date"`

		// 车次
		TrainNum *string `json:"TrainNum,omitempty" name:"TrainNum"`

		// 座位号
		Seat *string `json:"Seat,omitempty" name:"Seat"`

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

		// 票价
		Price *string `json:"Price,omitempty" name:"Price"`

		// 席别
		SeatCategory *string `json:"SeatCategory,omitempty" name:"SeatCategory"`

		// 身份证号
		ID *string `json:"ID,omitempty" name:"ID"`

		// 发票消费类型
		InvoiceType *string `json:"InvoiceType,omitempty" name:"InvoiceType"`

		// 序列号
		SerialNumber *string `json:"SerialNumber,omitempty" name:"SerialNumber"`

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

func NewTrainTicketOCRResponse

func NewTrainTicketOCRResponse() (response *TrainTicketOCRResponse)

func (*TrainTicketOCRResponse) FromJsonString

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

func (*TrainTicketOCRResponse) ToJsonString

func (r *TrainTicketOCRResponse) ToJsonString() string

type VatInvoice

type VatInvoice struct {

	// 发票代码
	Code *string `json:"Code,omitempty" name:"Code"`

	// 发票号码
	Number *string `json:"Number,omitempty" name:"Number"`

	// 开票日期
	Date *string `json:"Date,omitempty" name:"Date"`

	// 购方抬头
	BuyerName *string `json:"BuyerName,omitempty" name:"BuyerName"`

	// 购方税号
	BuyerTaxCode *string `json:"BuyerTaxCode,omitempty" name:"BuyerTaxCode"`

	// 购方地址电话
	BuyerAddressPhone *string `json:"BuyerAddressPhone,omitempty" name:"BuyerAddressPhone"`

	// 购方银行账号
	BuyerBankAccount *string `json:"BuyerBankAccount,omitempty" name:"BuyerBankAccount"`

	// 销方名称
	SellerName *string `json:"SellerName,omitempty" name:"SellerName"`

	// 销方税号
	SellerTaxCode *string `json:"SellerTaxCode,omitempty" name:"SellerTaxCode"`

	// 销方地址电话
	SellerAddressPhone *string `json:"SellerAddressPhone,omitempty" name:"SellerAddressPhone"`

	// 销方银行账号
	SellerBankAccount *string `json:"SellerBankAccount,omitempty" name:"SellerBankAccount"`

	// 备注
	Remark *string `json:"Remark,omitempty" name:"Remark"`

	// 机器编码
	MachineNo *string `json:"MachineNo,omitempty" name:"MachineNo"`

	// 发票类型
	// 01:专用发票
	// 02:货运发票
	// 03:机动车发票
	// 04:普通发票
	// 10:电子发票
	// 11:卷式发票
	// 14:通行费发票
	// 15:二手车发票
	Type *string `json:"Type,omitempty" name:"Type"`

	// 检验码
	CheckCode *string `json:"CheckCode,omitempty" name:"CheckCode"`

	// 是否作废(红冲)是否作废(红冲)
	// Y: 已作废 N:未作废 H:红冲
	IsAbandoned *string `json:"IsAbandoned,omitempty" name:"IsAbandoned"`

	// 是否有销货清单
	// Y: 有清单 N:无清单
	// 卷票无
	HasSellerList *string `json:"HasSellerList,omitempty" name:"HasSellerList"`

	// 销货清单标题
	SellerListTitle *string `json:"SellerListTitle,omitempty" name:"SellerListTitle"`

	// 销货清单税额
	SellerListTax *string `json:"SellerListTax,omitempty" name:"SellerListTax"`

	// 不含税金额
	AmountWithoutTax *string `json:"AmountWithoutTax,omitempty" name:"AmountWithoutTax"`

	// 税额
	TaxAmount *string `json:"TaxAmount,omitempty" name:"TaxAmount"`

	// 含税金额
	AmountWithTax *string `json:"AmountWithTax,omitempty" name:"AmountWithTax"`

	// 项目明细
	Items []*VatInvoiceItem `json:"Items,omitempty" name:"Items" list`
}

type VatInvoiceItem

type VatInvoiceItem struct {

	// 行号
	LineNo *string `json:"LineNo,omitempty" name:"LineNo"`

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

	// 规格
	Spec *string `json:"Spec,omitempty" name:"Spec"`

	// 单位
	Unit *string `json:"Unit,omitempty" name:"Unit"`

	// 数量
	Quantity *string `json:"Quantity,omitempty" name:"Quantity"`

	// 单价
	UnitPrice *string `json:"UnitPrice,omitempty" name:"UnitPrice"`

	// 不含税金额
	AmountWithoutTax *string `json:"AmountWithoutTax,omitempty" name:"AmountWithoutTax"`

	// 税率
	TaxRate *string `json:"TaxRate,omitempty" name:"TaxRate"`

	// 税额
	TaxAmount *string `json:"TaxAmount,omitempty" name:"TaxAmount"`
}

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`

		// 明细条目。VatInvoiceInfos中关于明细项的具体条目。
		Items []*VatInvoiceItem `json:"Items,omitempty" name:"Items" 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 VatInvoiceVerifyRequest

type VatInvoiceVerifyRequest struct {
	*tchttp.BaseRequest

	// 发票代码, 一张发票一天只能查询5次。
	InvoiceCode *string `json:"InvoiceCode,omitempty" name:"InvoiceCode"`

	// 发票号码(8位)。
	InvoiceNo *string `json:"InvoiceNo,omitempty" name:"InvoiceNo"`

	// 开票日期(不支持当天发票查询,只支持一年以内),如:2019-12-20。
	InvoiceDate *string `json:"InvoiceDate,omitempty" name:"InvoiceDate"`

	// 金额/发票校验码后6位(根据票种传递对应值,如果报参数错误,请仔细检查每个票种对应的值)
	// 增值税专用发票:开具金额(不含税)
	// 增值税普通发票、增值税电子普通发票(含通行费发票)、增值税普通发票(卷票):校验码后6位
	// 机动车销售统一发票:不含税价
	// 货物运输业增值税专用发票:合计金额
	// 二手车销售统一发票:车价合计
	Additional *string `json:"Additional,omitempty" name:"Additional"`
}

func NewVatInvoiceVerifyRequest

func NewVatInvoiceVerifyRequest() (request *VatInvoiceVerifyRequest)

func (*VatInvoiceVerifyRequest) FromJsonString

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

func (*VatInvoiceVerifyRequest) ToJsonString

func (r *VatInvoiceVerifyRequest) ToJsonString() string

type VatInvoiceVerifyResponse

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

		// 增值税发票信息,详情请点击左侧链接。
		Invoice *VatInvoice `json:"Invoice,omitempty" name:"Invoice"`

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

func NewVatInvoiceVerifyResponse

func NewVatInvoiceVerifyResponse() (response *VatInvoiceVerifyResponse)

func (*VatInvoiceVerifyResponse) FromJsonString

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

func (*VatInvoiceVerifyResponse) ToJsonString

func (r *VatInvoiceVerifyResponse) ToJsonString() string

type VatRollInvoiceInfo

type VatRollInvoiceInfo struct {

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

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

	// 文本行在旋转纠正之后的图像中的像素坐标。
	Rect *Rect `json:"Rect,omitempty" name:"Rect"`
}

type VatRollInvoiceOCRRequest

type VatRollInvoiceOCRRequest 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 NewVatRollInvoiceOCRRequest

func NewVatRollInvoiceOCRRequest() (request *VatRollInvoiceOCRRequest)

func (*VatRollInvoiceOCRRequest) FromJsonString

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

func (*VatRollInvoiceOCRRequest) ToJsonString

func (r *VatRollInvoiceOCRRequest) ToJsonString() string

type VatRollInvoiceOCRResponse

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

		// 增值税发票(卷票)识别结果,具体内容请点击左侧链接。
		VatRollInvoiceInfos []*VatRollInvoiceInfo `json:"VatRollInvoiceInfos,omitempty" name:"VatRollInvoiceInfos" list`

		// 图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负。
		Angle *float64 `json:"Angle,omitempty" name:"Angle"`

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

func NewVatRollInvoiceOCRResponse

func NewVatRollInvoiceOCRResponse() (response *VatRollInvoiceOCRResponse)

func (*VatRollInvoiceOCRResponse) FromJsonString

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

func (*VatRollInvoiceOCRResponse) ToJsonString

func (r *VatRollInvoiceOCRResponse) ToJsonString() string

type VehicleLicenseOCRRequest

type VehicleLicenseOCRRequest struct {
	*tchttp.BaseRequest

	// 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
	// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
	ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`

	// 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
	// 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
	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"`

		// Code 告警码列表和释义:
		// -9102 复印件告警
		// -9103 翻拍件告警
		// -9106 ps告警
		// 注:告警码可以同时存在多个
		RecognizeWarnCode []*int64 `json:"RecognizeWarnCode,omitempty" name:"RecognizeWarnCode" list`

		// 告警码说明:
		// WARN_DRIVER_LICENSE_COPY_CARD 复印件告警
		// WARN_DRIVER_LICENSE_SCREENED_CARD 翻拍件告警
		// WARN_DRIVER_LICENSE_PS_CARD ps告警
		// 注:告警信息可以同时存在多个
		RecognizeWarnMsg []*string `json:"RecognizeWarnMsg,omitempty" name:"RecognizeWarnMsg" list`

		// 唯一请求 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 VehicleRegCertInfo

type VehicleRegCertInfo struct {

	// 识别出的字段名称
	Name *string `json:"Name,omitempty" name:"Name"`

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

type VehicleRegCertOCRRequest

type VehicleRegCertOCRRequest 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 NewVehicleRegCertOCRRequest

func NewVehicleRegCertOCRRequest() (request *VehicleRegCertOCRRequest)

func (*VehicleRegCertOCRRequest) FromJsonString

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

func (*VehicleRegCertOCRRequest) ToJsonString

func (r *VehicleRegCertOCRRequest) ToJsonString() string

type VehicleRegCertOCRResponse

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

		// 机动车登记证书识别结果,具体内容请点击左侧链接。
		VehicleRegCertInfos []*VehicleRegCertInfo `json:"VehicleRegCertInfos,omitempty" name:"VehicleRegCertInfos" list`

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

func NewVehicleRegCertOCRResponse

func NewVehicleRegCertOCRResponse() (response *VehicleRegCertOCRResponse)

func (*VehicleRegCertOCRResponse) FromJsonString

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

func (*VehicleRegCertOCRResponse) ToJsonString

func (r *VehicleRegCertOCRResponse) ToJsonString() string

type VerifyBasicBizLicenseRequest

type VerifyBasicBizLicenseRequest struct {
	*tchttp.BaseRequest

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

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

	// 用于入参是营业执照图片的场景,表示需要校验的参数:RegNum(注册号或者统一社会信用代码),Name(企业名称),Address(经营地址)。选择后会返回相关参数校验结果。RegNum为必选,Name和Address可选。
	// 格式为{RegNum: true, Name:true/false, Address:true/false}
	//
	// 设置方式参考:
	// Config = Json.stringify({"Name":true,"Address":true})
	// API 3.0 Explorer 设置方式参考:
	// Config = {"Name":true,"Address":true}
	ImageConfig *string `json:"ImageConfig,omitempty" name:"ImageConfig"`

	// 用于入参是文本的场景,RegNum表示注册号或者统一社会信用代码。RegNum为必选项。
	RegNum *string `json:"RegNum,omitempty" name:"RegNum"`

	// 用于入参是文本的场景,Name表示企业名称。Name为可选项,填写后会返回Name的校验结果。
	Name *string `json:"Name,omitempty" name:"Name"`

	// 用于入参是文本的场景,Address表示经营地址,填写后会返回Name的校验结果。
	Address *string `json:"Address,omitempty" name:"Address"`

	// 1表示输出注册资本字段(单位:万元),其他值表示不输出。默认不输出。
	RegCapital *int64 `json:"RegCapital,omitempty" name:"RegCapital"`
}

func NewVerifyBasicBizLicenseRequest

func NewVerifyBasicBizLicenseRequest() (request *VerifyBasicBizLicenseRequest)

func (*VerifyBasicBizLicenseRequest) FromJsonString

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

func (*VerifyBasicBizLicenseRequest) ToJsonString

func (r *VerifyBasicBizLicenseRequest) ToJsonString() string

type VerifyBasicBizLicenseResponse

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

		// 状态码,成功时返回0
		ErrorCode *int64 `json:"ErrorCode,omitempty" name:"ErrorCode"`

		// 统一社会信用代码
		CreditCode *string `json:"CreditCode,omitempty" name:"CreditCode"`

		// 经营期限自(YYYY-MM-DD)
		Opfrom *string `json:"Opfrom,omitempty" name:"Opfrom"`

		// 经营期限至(YYYY-MM-DD)
		Opto *string `json:"Opto,omitempty" name:"Opto"`

		// 法人姓名
		Frname *string `json:"Frname,omitempty" name:"Frname"`

		// 经营状态(在营、注销、吊销、其他)
		Entstatus *string `json:"Entstatus,omitempty" name:"Entstatus"`

		// 经营业务范围
		Zsopscope *string `json:"Zsopscope,omitempty" name:"Zsopscope"`

		// 状态信息
		Reason *string `json:"Reason,omitempty" name:"Reason"`

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

		// 要核验的工商注册号
		VerifyRegno *string `json:"VerifyRegno,omitempty" name:"VerifyRegno"`

		// 工商注册号
		Regno *string `json:"Regno,omitempty" name:"Regno"`

		// 要核验的企业名称
		VerifyEntname *string `json:"VerifyEntname,omitempty" name:"VerifyEntname"`

		// 企业名称
		Entname *string `json:"Entname,omitempty" name:"Entname"`

		// 要核验的住址
		VerifyDom *string `json:"VerifyDom,omitempty" name:"VerifyDom"`

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

		// 验证结果
		RegNumResult *BizLicenseVerifyResult `json:"RegNumResult,omitempty" name:"RegNumResult"`

		// 注册资本(单位:万元),只有输入参数regCapital为1的时候才输出
		RegCapital *string `json:"RegCapital,omitempty" name:"RegCapital"`

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

func NewVerifyBasicBizLicenseResponse

func NewVerifyBasicBizLicenseResponse() (response *VerifyBasicBizLicenseResponse)

func (*VerifyBasicBizLicenseResponse) FromJsonString

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

func (*VerifyBasicBizLicenseResponse) ToJsonString

func (r *VerifyBasicBizLicenseResponse) ToJsonString() string

type VerifyBizLicenseRequest

type VerifyBizLicenseRequest struct {
	*tchttp.BaseRequest

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

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

	// 用于入参是营业执照图片的场景,表示需要校验的参数:RegNum(注册号或者统一社会信用代码),Name(企业名称),Address(经营地址)。选择后会返回相关参数校验结果。RegNum为必选,Name和Address可选。
	// 格式为{RegNum: true, Name:true/false, Address:true/false}
	//
	// 设置方式参考:
	// Config = Json.stringify({"Name":true,"Address":true})
	// API 3.0 Explorer 设置方式参考:
	// Config = {"Name":true,"Address":true}
	ImageConfig *string `json:"ImageConfig,omitempty" name:"ImageConfig"`

	// 用于入参是文本的场景,RegNum表示注册号或者统一社会信用代码。RegNum为必选项。
	RegNum *string `json:"RegNum,omitempty" name:"RegNum"`

	// 用于入参是文本的场景,Name表示企业名称。Name为可选项,填写后会返回Name的校验结果。
	Name *string `json:"Name,omitempty" name:"Name"`

	// 用于入参是文本的场景,Address表示经营地址,填写后会返回Name的校验结果。
	Address *string `json:"Address,omitempty" name:"Address"`
}

func NewVerifyBizLicenseRequest

func NewVerifyBizLicenseRequest() (request *VerifyBizLicenseRequest)

func (*VerifyBizLicenseRequest) FromJsonString

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

func (*VerifyBizLicenseRequest) ToJsonString

func (r *VerifyBizLicenseRequest) ToJsonString() string

type VerifyBizLicenseResponse

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

		// 状态码
		ErrorCode *int64 `json:"ErrorCode,omitempty" name:"ErrorCode"`

		// 统一社会信用代码
		CreditCode *string `json:"CreditCode,omitempty" name:"CreditCode"`

		// 组织机构代码
		OrgCode *string `json:"OrgCode,omitempty" name:"OrgCode"`

		// 经营期限自(YYYY-MM-DD)
		OpenFrom *string `json:"OpenFrom,omitempty" name:"OpenFrom"`

		// 经营期限至(YYYY-MM-DD)
		OpenTo *string `json:"OpenTo,omitempty" name:"OpenTo"`

		// 法人姓名
		FrName *string `json:"FrName,omitempty" name:"FrName"`

		// 经营状态(在营、注销、吊销、其他)
		EnterpriseStatus *string `json:"EnterpriseStatus,omitempty" name:"EnterpriseStatus"`

		// 经营(业务)范围及方式
		OperateScopeAndForm *string `json:"OperateScopeAndForm,omitempty" name:"OperateScopeAndForm"`

		// 注册资金(单位:万元)
		RegCap *string `json:"RegCap,omitempty" name:"RegCap"`

		// 注册币种
		RegCapCur *string `json:"RegCapCur,omitempty" name:"RegCapCur"`

		// 登记机关
		RegOrg *string `json:"RegOrg,omitempty" name:"RegOrg"`

		// 开业日期(YYYY-MM-DD)
		EsDate *string `json:"EsDate,omitempty" name:"EsDate"`

		// 企业(机构)类型
		EnterpriseType *string `json:"EnterpriseType,omitempty" name:"EnterpriseType"`

		// 注销日期
		CancelDate *string `json:"CancelDate,omitempty" name:"CancelDate"`

		// 吊销日期
		RevokeDate *string `json:"RevokeDate,omitempty" name:"RevokeDate"`

		// 许可经营项目
		AbuItem *string `json:"AbuItem,omitempty" name:"AbuItem"`

		// 一般经营项目
		CbuItem *string `json:"CbuItem,omitempty" name:"CbuItem"`

		// 核准时间
		ApprDate *string `json:"ApprDate,omitempty" name:"ApprDate"`

		// 省
		Province *string `json:"Province,omitempty" name:"Province"`

		// 地级市
		City *string `json:"City,omitempty" name:"City"`

		// 区\县
		County *string `json:"County,omitempty" name:"County"`

		// 住所所在行政区划代码
		AreaCode *string `json:"AreaCode,omitempty" name:"AreaCode"`

		// 行业门类代码
		IndustryPhyCode *string `json:"IndustryPhyCode,omitempty" name:"IndustryPhyCode"`

		// 行业门类名称
		IndustryPhyName *string `json:"IndustryPhyName,omitempty" name:"IndustryPhyName"`

		// 国民经济行业代码
		IndustryCode *string `json:"IndustryCode,omitempty" name:"IndustryCode"`

		// 国民经济行业名称
		IndustryName *string `json:"IndustryName,omitempty" name:"IndustryName"`

		// 经营(业务)范围
		OperateScope *string `json:"OperateScope,omitempty" name:"OperateScope"`

		// 要核验的工商注册号
		VerifyRegNo *string `json:"VerifyRegNo,omitempty" name:"VerifyRegNo"`

		// 工商注册号
		RegNo *string `json:"RegNo,omitempty" name:"RegNo"`

		// 要核验的企业名称
		VerifyEnterpriseName *string `json:"VerifyEnterpriseName,omitempty" name:"VerifyEnterpriseName"`

		// 企业名称
		EnterpriseName *string `json:"EnterpriseName,omitempty" name:"EnterpriseName"`

		// 要核验的注册地址
		VerifyAddress *string `json:"VerifyAddress,omitempty" name:"VerifyAddress"`

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

		// 验证结果
		RegNumResult *BizLicenseVerifyResult `json:"RegNumResult,omitempty" name:"RegNumResult"`

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

func NewVerifyBizLicenseResponse

func NewVerifyBizLicenseResponse() (response *VerifyBizLicenseResponse)

func (*VerifyBizLicenseResponse) FromJsonString

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

func (*VerifyBizLicenseResponse) ToJsonString

func (r *VerifyBizLicenseResponse) 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"`
}

type WordCoordPoint

type WordCoordPoint struct {

	// 英文OCR识别出的每个单词在原图中的四点坐标。
	WordCoordinate []*Coord `json:"WordCoordinate,omitempty" name:"WordCoordinate" list`
}

type Words

type Words struct {

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

	// 候选字Character
	Character *string `json:"Character,omitempty" name:"Character"`
}

Jump to

Keyboard shortcuts

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