Documentation
¶
Index ¶
- Constants
- type ArithmeticOCRRequest
- type ArithmeticOCRResponse
- type BankCardOCRRequest
- type BankCardOCRResponse
- type BizLicenseOCRRequest
- type BizLicenseOCRResponse
- type BusInvoiceInfo
- type BusInvoiceOCRRequest
- type BusInvoiceOCRResponse
- type BusinessCardInfo
- type BusinessCardOCRRequest
- type BusinessCardOCRResponse
- type CarInvoiceInfo
- type CarInvoiceOCRRequest
- type CarInvoiceOCRResponse
- type Client
- func (c *Client) ArithmeticOCR(request *ArithmeticOCRRequest) (response *ArithmeticOCRResponse, err error)
- func (c *Client) BankCardOCR(request *BankCardOCRRequest) (response *BankCardOCRResponse, err error)
- func (c *Client) BizLicenseOCR(request *BizLicenseOCRRequest) (response *BizLicenseOCRResponse, err error)
- func (c *Client) BusInvoiceOCR(request *BusInvoiceOCRRequest) (response *BusInvoiceOCRResponse, err error)
- func (c *Client) BusinessCardOCR(request *BusinessCardOCRRequest) (response *BusinessCardOCRResponse, err error)
- func (c *Client) CarInvoiceOCR(request *CarInvoiceOCRRequest) (response *CarInvoiceOCRResponse, err error)
- func (c *Client) DriverLicenseOCR(request *DriverLicenseOCRRequest) (response *DriverLicenseOCRResponse, err error)
- func (c *Client) DutyPaidProofOCR(request *DutyPaidProofOCRRequest) (response *DutyPaidProofOCRResponse, err error)
- func (c *Client) EduPaperOCR(request *EduPaperOCRRequest) (response *EduPaperOCRResponse, err error)
- func (c *Client) EnglishOCR(request *EnglishOCRRequest) (response *EnglishOCRResponse, err error)
- func (c *Client) EnterpriseLicenseOCR(request *EnterpriseLicenseOCRRequest) (response *EnterpriseLicenseOCRResponse, err error)
- func (c *Client) EstateCertOCR(request *EstateCertOCRRequest) (response *EstateCertOCRResponse, err error)
- func (c *Client) FinanBillOCR(request *FinanBillOCRRequest) (response *FinanBillOCRResponse, err error)
- func (c *Client) FinanBillSliceOCR(request *FinanBillSliceOCRRequest) (response *FinanBillSliceOCRResponse, err error)
- func (c *Client) FlightInvoiceOCR(request *FlightInvoiceOCRRequest) (response *FlightInvoiceOCRResponse, err error)
- func (c *Client) FormulaOCR(request *FormulaOCRRequest) (response *FormulaOCRResponse, err error)
- func (c *Client) GeneralAccurateOCR(request *GeneralAccurateOCRRequest) (response *GeneralAccurateOCRResponse, err error)
- func (c *Client) GeneralBasicOCR(request *GeneralBasicOCRRequest) (response *GeneralBasicOCRResponse, err error)
- func (c *Client) GeneralEfficientOCR(request *GeneralEfficientOCRRequest) (response *GeneralEfficientOCRResponse, err error)
- func (c *Client) GeneralFastOCR(request *GeneralFastOCRRequest) (response *GeneralFastOCRResponse, err error)
- func (c *Client) GeneralHandwritingOCR(request *GeneralHandwritingOCRRequest) (response *GeneralHandwritingOCRResponse, err error)
- func (c *Client) HmtResidentPermitOCR(request *HmtResidentPermitOCRRequest) (response *HmtResidentPermitOCRResponse, err error)
- func (c *Client) IDCardOCR(request *IDCardOCRRequest) (response *IDCardOCRResponse, err error)
- func (c *Client) InstitutionOCR(request *InstitutionOCRRequest) (response *InstitutionOCRResponse, err error)
- func (c *Client) InsuranceBillOCR(request *InsuranceBillOCRRequest) (response *InsuranceBillOCRResponse, err error)
- func (c *Client) InvoiceGeneralOCR(request *InvoiceGeneralOCRRequest) (response *InvoiceGeneralOCRResponse, err error)
- func (c *Client) LicensePlateOCR(request *LicensePlateOCRRequest) (response *LicensePlateOCRResponse, err error)
- func (c *Client) MLIDCardOCR(request *MLIDCardOCRRequest) (response *MLIDCardOCRResponse, err error)
- func (c *Client) MLIDPassportOCR(request *MLIDPassportOCRRequest) (response *MLIDPassportOCRResponse, err error)
- func (c *Client) MainlandPermitOCR(request *MainlandPermitOCRRequest) (response *MainlandPermitOCRResponse, err error)
- func (c *Client) MixedInvoiceDetect(request *MixedInvoiceDetectRequest) (response *MixedInvoiceDetectResponse, err error)
- func (c *Client) MixedInvoiceOCR(request *MixedInvoiceOCRRequest) (response *MixedInvoiceOCRResponse, err error)
- func (c *Client) OrgCodeCertOCR(request *OrgCodeCertOCRRequest) (response *OrgCodeCertOCRResponse, err error)
- func (c *Client) PassportOCR(request *PassportOCRRequest) (response *PassportOCRResponse, err error)
- func (c *Client) PermitOCR(request *PermitOCRRequest) (response *PermitOCRResponse, err error)
- func (c *Client) PropOwnerCertOCR(request *PropOwnerCertOCRRequest) (response *PropOwnerCertOCRResponse, err error)
- func (c *Client) QrcodeOCR(request *QrcodeOCRRequest) (response *QrcodeOCRResponse, err error)
- func (c *Client) QuotaInvoiceOCR(request *QuotaInvoiceOCRRequest) (response *QuotaInvoiceOCRResponse, err error)
- func (c *Client) ResidenceBookletOCR(request *ResidenceBookletOCRRequest) (response *ResidenceBookletOCRResponse, err error)
- func (c *Client) ShipInvoiceOCR(request *ShipInvoiceOCRRequest) (response *ShipInvoiceOCRResponse, err error)
- func (c *Client) TableOCR(request *TableOCRRequest) (response *TableOCRResponse, err error)
- func (c *Client) TaxiInvoiceOCR(request *TaxiInvoiceOCRRequest) (response *TaxiInvoiceOCRResponse, err error)
- func (c *Client) TextDetect(request *TextDetectRequest) (response *TextDetectResponse, err error)
- func (c *Client) TollInvoiceOCR(request *TollInvoiceOCRRequest) (response *TollInvoiceOCRResponse, err error)
- func (c *Client) TrainTicketOCR(request *TrainTicketOCRRequest) (response *TrainTicketOCRResponse, err error)
- func (c *Client) VatInvoiceOCR(request *VatInvoiceOCRRequest) (response *VatInvoiceOCRResponse, err error)
- func (c *Client) VatRollInvoiceOCR(request *VatRollInvoiceOCRRequest) (response *VatRollInvoiceOCRResponse, err error)
- func (c *Client) VehicleLicenseOCR(request *VehicleLicenseOCRRequest) (response *VehicleLicenseOCRResponse, err error)
- func (c *Client) VehicleRegCertOCR(request *VehicleRegCertOCRRequest) (response *VehicleRegCertOCRResponse, err error)
- func (c *Client) VinOCR(request *VinOCRRequest) (response *VinOCRResponse, err error)
- func (c *Client) WaybillOCR(request *WaybillOCRRequest) (response *WaybillOCRResponse, err error)
- type Coord
- type DriverLicenseOCRRequest
- type DriverLicenseOCRResponse
- type DutyPaidProofInfo
- type DutyPaidProofOCRRequest
- type DutyPaidProofOCRResponse
- type EduPaperOCRRequest
- type EduPaperOCRResponse
- type EnglishOCRRequest
- type EnglishOCRResponse
- type EnterpriseLicenseInfo
- type EnterpriseLicenseOCRRequest
- type EnterpriseLicenseOCRResponse
- type EstateCertOCRRequest
- type EstateCertOCRResponse
- type FinanBillInfo
- type FinanBillOCRRequest
- type FinanBillOCRResponse
- type FinanBillSliceInfo
- type FinanBillSliceOCRRequest
- type FinanBillSliceOCRResponse
- type FlightInvoiceInfo
- type FlightInvoiceOCRRequest
- type FlightInvoiceOCRResponse
- type FormulaOCRRequest
- type FormulaOCRResponse
- type GeneralAccurateOCRRequest
- type GeneralAccurateOCRResponse
- type GeneralBasicOCRRequest
- type GeneralBasicOCRResponse
- type GeneralEfficientOCRRequest
- type GeneralEfficientOCRResponse
- type GeneralFastOCRRequest
- type GeneralFastOCRResponse
- type GeneralHandwritingOCRRequest
- type GeneralHandwritingOCRResponse
- type HmtResidentPermitOCRRequest
- type HmtResidentPermitOCRResponse
- type IDCardOCRRequest
- type IDCardOCRResponse
- type InstitutionOCRRequest
- type InstitutionOCRResponse
- type InsuranceBillInfo
- type InsuranceBillOCRRequest
- type InsuranceBillOCRResponse
- type InvoiceDetectInfo
- type InvoiceGeneralInfo
- type InvoiceGeneralOCRRequest
- type InvoiceGeneralOCRResponse
- type ItemCoord
- type LicensePlateOCRRequest
- type LicensePlateOCRResponse
- type MLIDCardOCRRequest
- type MLIDCardOCRResponse
- type MLIDPassportOCRRequest
- type MLIDPassportOCRResponse
- type MainlandPermitOCRRequest
- type MainlandPermitOCRResponse
- type MixedInvoiceDetectRequest
- type MixedInvoiceDetectResponse
- type MixedInvoiceItem
- type MixedInvoiceOCRRequest
- type MixedInvoiceOCRResponse
- type OrgCodeCertOCRRequest
- type OrgCodeCertOCRResponse
- type PassportOCRRequest
- type PassportOCRResponse
- type PermitOCRRequest
- type PermitOCRResponse
- type PropOwnerCertOCRRequest
- type PropOwnerCertOCRResponse
- type QrcodeImgSize
- type QrcodeOCRRequest
- type QrcodeOCRResponse
- type QrcodePositionObj
- type QrcodeResultsInfo
- type QuestionBlockObj
- type QuestionObj
- type QuotaInvoiceOCRRequest
- type QuotaInvoiceOCRResponse
- type Rect
- type ResidenceBookletOCRRequest
- type ResidenceBookletOCRResponse
- type ShipInvoiceInfo
- type ShipInvoiceOCRRequest
- type ShipInvoiceOCRResponse
- type SingleInvoiceInfo
- type TableOCRRequest
- type TableOCRResponse
- type TaxiInvoiceOCRRequest
- type TaxiInvoiceOCRResponse
- type TextArithmetic
- type TextDetectRequest
- type TextDetectResponse
- type TextDetection
- type TextDetectionEn
- type TextEduPaper
- type TextFormula
- type TextGeneralHandwriting
- type TextTable
- type TextVatInvoice
- type TextVehicleBack
- type TextVehicleFront
- type TextWaybill
- type TollInvoiceInfo
- type TollInvoiceOCRRequest
- type TollInvoiceOCRResponse
- type TrainTicketOCRRequest
- type TrainTicketOCRResponse
- type VatInvoiceOCRRequest
- type VatInvoiceOCRResponse
- type VatRollInvoiceInfo
- type VatRollInvoiceOCRRequest
- type VatRollInvoiceOCRResponse
- type VehicleLicenseOCRRequest
- type VehicleLicenseOCRResponse
- type VehicleRegCertInfo
- type VehicleRegCertOCRRequest
- type VehicleRegCertOCRResponse
- type VinOCRRequest
- type VinOCRResponse
- type WaybillOCRRequest
- type WaybillOCRResponse
- type WaybillObj
Constants ¶
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 BusInvoiceInfo ¶
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 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 CarInvoiceInfo ¶
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 Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
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) 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)
本接口支持图像整体文字的检测和识别,返回文字框位置与文字内容。相比通用印刷体识别接口,高精度版在英文、数字、小字、模糊字、倾斜文本行等困难场景下,准确率和召回率更高。
func (*Client) GeneralBasicOCR ¶
func (c *Client) GeneralBasicOCR(request *GeneralBasicOCRRequest) (response *GeneralBasicOCRResponse, err error)
本接口支持多场景、任意版面下整图文字的识别。支持自动识别语言类型,同时支持自选语言种类(推荐),除中英文外,支持日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语等多种语言。应用场景包括:印刷文档识别、网络图片识别、广告图文字识别、街景店招识别、菜单识别、视频标题识别、头像文字识别等。
func (*Client) GeneralEfficientOCR ¶
func (c *Client) GeneralEfficientOCR(request *GeneralEfficientOCRRequest) (response *GeneralEfficientOCRResponse, err error)
本接口支持多场景、任意版面下整图文字的识别。相较于“通用印刷体识别”接口,精简版接口在准召率有一定损失的情况下,耗时更短。适用于对接口耗时较为敏感的客户。
func (*Client) GeneralFastOCR ¶
func (c *Client) GeneralFastOCR(request *GeneralFastOCRRequest) (response *GeneralFastOCRResponse, err error)
本接口支持图片中整体文字的检测和识别,返回文字框位置与文字内容。相比通用印刷体识别接口,识别速度更快、支持的 QPS 更高。
func (*Client) GeneralHandwritingOCR ¶
func (c *Client) GeneralHandwritingOCR(request *GeneralHandwritingOCRRequest) (response *GeneralHandwritingOCRResponse, err error)
本接口支持图片内手写体文字的检测和识别,针对手写字体无规则、字迹潦草、模糊等特点进行了识别能力的增强。
func (*Client) 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、姓名、出生日期、性别、有效期、发行国、国籍;具备护照人像照片的裁剪功能和翻拍、复印件告警功能。 本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)
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)。 本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)
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) 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) 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) 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 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 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"`
}
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 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 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 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 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 值。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片的 Url 地址。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}
func NewGeneralAccurateOCRRequest ¶
func NewGeneralAccurateOCRRequest() (request *GeneralAccurateOCRRequest)
func (*GeneralAccurateOCRRequest) FromJsonString ¶
func (r *GeneralAccurateOCRRequest) FromJsonString(s string) error
func (*GeneralAccurateOCRRequest) ToJsonString ¶
func (r *GeneralAccurateOCRRequest) ToJsonString() string
type GeneralAccurateOCRResponse ¶
type GeneralAccurateOCRResponse struct {
*tchttp.BaseResponse
Response *struct {
// 检测到的文本信息,具体内容请点击左侧链接。
TextDetections []*TextDetection `json:"TextDetections,omitempty" name:"TextDetections" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGeneralAccurateOCRResponse ¶
func NewGeneralAccurateOCRResponse() (response *GeneralAccurateOCRResponse)
func (*GeneralAccurateOCRResponse) FromJsonString ¶
func (r *GeneralAccurateOCRResponse) FromJsonString(s string) error
func (*GeneralAccurateOCRResponse) ToJsonString ¶
func (r *GeneralAccurateOCRResponse) ToJsonString() string
type GeneralBasicOCRRequest ¶
type GeneralBasicOCRRequest struct {
*tchttp.BaseRequest
// 图片的 Base64 值。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片的 Url 地址。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
// 保留字段。
Scene *string `json:"Scene,omitempty" name:"Scene"`
// 识别语言类型。
// 支持自动识别语言类型,同时支持自选语言种类,默认中英文混合(zh)。
// 可选值:
// zh\auto\jap\kor\
// spa\fre\ger\por\
// vie\may\rus\ita\
// hol\swe\fin\dan\
// nor\hun\tha\lat
// 可选值分别表示:
// 中英文混合、自动识别、日语、韩语、
// 西班牙语、法语、德语、葡萄牙语、
// 越南语、马来语、俄语、意大利语、
// 荷兰语、瑞典语、芬兰语、丹麦语、
// 挪威语、匈牙利语、泰语、拉丁语系。
LanguageType *string `json:"LanguageType,omitempty" name:"LanguageType"`
}
func NewGeneralBasicOCRRequest ¶
func NewGeneralBasicOCRRequest() (request *GeneralBasicOCRRequest)
func (*GeneralBasicOCRRequest) FromJsonString ¶
func (r *GeneralBasicOCRRequest) FromJsonString(s string) error
func (*GeneralBasicOCRRequest) ToJsonString ¶
func (r *GeneralBasicOCRRequest) ToJsonString() string
type GeneralBasicOCRResponse ¶
type GeneralBasicOCRResponse struct {
*tchttp.BaseResponse
Response *struct {
// 检测到的文本信息,具体内容请点击左侧链接。
TextDetections []*TextDetection `json:"TextDetections,omitempty" name:"TextDetections" list`
// 检测到的语言类型,目前支持的语言类型参考入参LanguageType说明。
Language *string `json:"Language,omitempty" name:"Language"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGeneralBasicOCRResponse ¶
func NewGeneralBasicOCRResponse() (response *GeneralBasicOCRResponse)
func (*GeneralBasicOCRResponse) FromJsonString ¶
func (r *GeneralBasicOCRResponse) FromJsonString(s string) error
func (*GeneralBasicOCRResponse) ToJsonString ¶
func (r *GeneralBasicOCRResponse) ToJsonString() string
type GeneralEfficientOCRRequest ¶
type GeneralEfficientOCRRequest 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 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`
// 唯一请求 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"`
// 唯一请求 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 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,图片质量分数(评价图片的模糊程度)
//
// 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编码,请求 CropIdCard 时返回;
// Portrait,身份证头像照片的base64编码,请求 CropPortrait 时返回;
// QualityValue,图片质量分,请求 Quality 时返回(取值范围: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 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,Y), (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 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 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"`
// 是否返回图片
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 证照复印件告警
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 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以上。
// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 是否返回图片
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,Y), (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 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 QrcodeOCRRequest ¶
type QrcodeOCRRequest 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 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 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 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 ShipInvoiceInfo ¶
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 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"`
}
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 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 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 VatInvoiceOCRRequest ¶
type VatInvoiceOCRRequest struct {
*tchttp.BaseRequest
// 图片的 Base64 值。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片的 Url 地址。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}
func NewVatInvoiceOCRRequest ¶
func NewVatInvoiceOCRRequest() (request *VatInvoiceOCRRequest)
func (*VatInvoiceOCRRequest) FromJsonString ¶
func (r *VatInvoiceOCRRequest) FromJsonString(s string) error
func (*VatInvoiceOCRRequest) ToJsonString ¶
func (r *VatInvoiceOCRRequest) ToJsonString() string
type VatInvoiceOCRResponse ¶
type VatInvoiceOCRResponse struct {
*tchttp.BaseResponse
Response *struct {
// 检测到的文本信息,具体内容请点击左侧链接。
VatInvoiceInfos []*TextVatInvoice `json:"VatInvoiceInfos,omitempty" name:"VatInvoiceInfos" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewVatInvoiceOCRResponse ¶
func NewVatInvoiceOCRResponse() (response *VatInvoiceOCRResponse)
func (*VatInvoiceOCRResponse) FromJsonString ¶
func (r *VatInvoiceOCRResponse) FromJsonString(s string) error
func (*VatInvoiceOCRResponse) ToJsonString ¶
func (r *VatInvoiceOCRResponse) ToJsonString() string
type VatRollInvoiceInfo ¶
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 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 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"`
}