Documentation
¶
Index ¶
- Constants
- type AdvertiseOCRRequest
- type AdvertiseOCRResponse
- type AdvertiseTextDetection
- type ArithmeticOCRRequest
- type ArithmeticOCRResponse
- type BankCardOCRRequest
- type BankCardOCRResponse
- type BizLicenseOCRRequest
- type BizLicenseOCRResponse
- type BizLicenseVerifyResult
- type BusInvoiceInfo
- type BusInvoiceOCRRequest
- type BusInvoiceOCRResponse
- type BusinessCardInfo
- type BusinessCardOCRRequest
- type BusinessCardOCRResponse
- type CandWord
- type CarInvoiceInfo
- type CarInvoiceOCRRequest
- type CarInvoiceOCRResponse
- type CellContent
- type ClassifyDetectInfo
- type ClassifyDetectOCRRequest
- type ClassifyDetectOCRResponse
- type Client
- func (c *Client) AdvertiseOCR(request *AdvertiseOCRRequest) (response *AdvertiseOCRResponse, err error)
- 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) ClassifyDetectOCR(request *ClassifyDetectOCRRequest) (response *ClassifyDetectOCRResponse, 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) HKIDCardOCR(request *HKIDCardOCRRequest) (response *HKIDCardOCRResponse, 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) QueryBarCode(request *QueryBarCodeRequest) (response *QueryBarCodeResponse, err error)
- func (c *Client) QuotaInvoiceOCR(request *QuotaInvoiceOCRRequest) (response *QuotaInvoiceOCRResponse, err error)
- func (c *Client) RecognizeTableOCR(request *RecognizeTableOCRRequest) (response *RecognizeTableOCRResponse, err error)
- func (c *Client) RecognizeThaiIDCardOCR(request *RecognizeThaiIDCardOCRRequest) (response *RecognizeThaiIDCardOCRResponse, err error)
- func (c *Client) ResidenceBookletOCR(request *ResidenceBookletOCRRequest) (response *ResidenceBookletOCRResponse, err error)
- func (c *Client) RideHailingDriverLicenseOCR(request *RideHailingDriverLicenseOCRRequest) (response *RideHailingDriverLicenseOCRResponse, err error)
- func (c *Client) RideHailingTransportLicenseOCR(request *RideHailingTransportLicenseOCRRequest) (response *RideHailingTransportLicenseOCRResponse, err error)
- func (c *Client) SealOCR(request *SealOCRRequest) (response *SealOCRResponse, 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) VatInvoiceVerify(request *VatInvoiceVerifyRequest) (response *VatInvoiceVerifyResponse, 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) VerifyBasicBizLicense(request *VerifyBasicBizLicenseRequest) (response *VerifyBasicBizLicenseResponse, err error)
- func (c *Client) VerifyBizLicense(request *VerifyBizLicenseRequest) (response *VerifyBizLicenseResponse, err error)
- func (c *Client) VerifyOfdVatInvoiceOCR(request *VerifyOfdVatInvoiceOCRRequest) (response *VerifyOfdVatInvoiceOCRResponse, 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 HKIDCardOCRRequest
- type HKIDCardOCRResponse
- 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 Polygon
- type ProductDataRecord
- type PropOwnerCertOCRRequest
- type PropOwnerCertOCRResponse
- type QrcodeImgSize
- type QrcodeOCRRequest
- type QrcodeOCRResponse
- type QrcodePositionObj
- type QrcodeResultsInfo
- type QueryBarCodeRequest
- type QueryBarCodeResponse
- type QuestionBlockObj
- type QuestionObj
- type QuotaInvoiceOCRRequest
- type QuotaInvoiceOCRResponse
- type RecognizeTableOCRRequest
- type RecognizeTableOCRResponse
- type RecognizeThaiIDCardOCRRequest
- type RecognizeThaiIDCardOCRResponse
- type Rect
- type ResidenceBookletOCRRequest
- type ResidenceBookletOCRResponse
- type RideHailingDriverLicenseOCRRequest
- type RideHailingDriverLicenseOCRResponse
- type RideHailingTransportLicenseOCRRequest
- type RideHailingTransportLicenseOCRResponse
- type SealOCRRequest
- type SealOCRResponse
- type ShipInvoiceInfo
- type ShipInvoiceOCRRequest
- type ShipInvoiceOCRResponse
- type SingleInvoiceInfo
- type TableCell
- type TableDetectInfo
- type TableOCRRequest
- type TableOCRResponse
- type TableTitle
- 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 VatInvoice
- type VatInvoiceGoodsInfo
- type VatInvoiceItem
- type VatInvoiceOCRRequest
- type VatInvoiceOCRResponse
- type VatInvoiceUserInfo
- type VatInvoiceVerifyRequest
- type VatInvoiceVerifyResponse
- type VatRollInvoiceInfo
- type VatRollInvoiceOCRRequest
- type VatRollInvoiceOCRResponse
- type VehicleLicenseOCRRequest
- type VehicleLicenseOCRResponse
- type VehicleRegCertInfo
- type VehicleRegCertOCRRequest
- type VehicleRegCertOCRResponse
- type VerifyBasicBizLicenseRequest
- type VerifyBasicBizLicenseResponse
- type VerifyBizLicenseRequest
- type VerifyBizLicenseResponse
- type VerifyOfdVatInvoiceOCRRequest
- type VerifyOfdVatInvoiceOCRResponse
- type VinOCRRequest
- type VinOCRResponse
- type WaybillOCRRequest
- type WaybillOCRResponse
- type WaybillObj
- type WordCoordPoint
- type Words
Constants ¶
const APIVersion = "2018-11-19"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvertiseOCRRequest ¶
type AdvertiseOCRRequest struct {
*tchttp.BaseRequest
// 图片的 Base64 值。
// 要求图片经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP格式。
// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片的 Url 地址。
// 要求图片经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP格式。
// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}
func NewAdvertiseOCRRequest ¶
func NewAdvertiseOCRRequest() (request *AdvertiseOCRRequest)
func (*AdvertiseOCRRequest) FromJsonString ¶
func (r *AdvertiseOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AdvertiseOCRRequest) ToJsonString ¶
func (r *AdvertiseOCRRequest) ToJsonString() string
type AdvertiseOCRResponse ¶
type AdvertiseOCRResponse struct {
*tchttp.BaseResponse
Response *struct {
// 检测到的文本信息,包括文本行内容、置信度、文本行坐标以及文本行旋转纠正后的坐标,具体内容请点击左侧链接。
TextDetections []*AdvertiseTextDetection `json:"TextDetections,omitempty" name:"TextDetections" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewAdvertiseOCRResponse ¶
func NewAdvertiseOCRResponse() (response *AdvertiseOCRResponse)
func (*AdvertiseOCRResponse) FromJsonString ¶
func (r *AdvertiseOCRResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AdvertiseOCRResponse) ToJsonString ¶
func (r *AdvertiseOCRResponse) ToJsonString() string
type AdvertiseTextDetection ¶
type AdvertiseTextDetection 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`
// 此字段为扩展字段。
// GeneralBasicOcr接口返回段落信息Parag,包含ParagNo。
AdvancedInfo *string `json:"AdvancedInfo,omitempty" name:"AdvancedInfo"`
}
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"`
// 用于选择是否支持横屏拍摄。打开则支持横屏拍摄图片角度判断,角度信息在返回参数的angle中,默认值为true
SupportHorizontalImage *bool `json:"SupportHorizontalImage,omitempty" name:"SupportHorizontalImage"`
// 是否拒绝非速算图,打开则拒绝非速算图(注:非速算图是指风景人物等明显不是速算图片的图片),默认值为false
RejectNonArithmeticPic *bool `json:"RejectNonArithmeticPic,omitempty" name:"RejectNonArithmeticPic"`
// 是否展开耦合算式中的竖式计算,默认值为false
EnableDispRelatedVertical *bool `json:"EnableDispRelatedVertical,omitempty" name:"EnableDispRelatedVertical"`
// 是否展示竖式算式的中间结果和格式控制字符,默认值为false
EnableDispMidResult *bool `json:"EnableDispMidResult,omitempty" name:"EnableDispMidResult"`
// 是否开启pdf识别,默认值为true
EnablePdfRecognize *bool `json:"EnablePdfRecognize,omitempty" name:"EnablePdfRecognize"`
// pdf页码,从0开始,默认为0
PdfPageIndex *int64 `json:"PdfPageIndex,omitempty" name:"PdfPageIndex"`
}
func NewArithmeticOCRRequest ¶
func NewArithmeticOCRRequest() (request *ArithmeticOCRRequest)
func (*ArithmeticOCRRequest) FromJsonString ¶
func (r *ArithmeticOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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`
// 图片横屏的角度(90度或270度)
Angle *float64 `json:"Angle,omitempty" name:"Angle"`
// 唯一请求 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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ArithmeticOCRResponse) ToJsonString ¶
func (r *ArithmeticOCRResponse) ToJsonString() string
type BankCardOCRRequest ¶
type BankCardOCRRequest 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"`
// 是否返回预处理(精确剪裁对齐)后的银行卡图片数据,默认false。
RetBorderCutImage *bool `json:"RetBorderCutImage,omitempty" name:"RetBorderCutImage"`
// 是否返回卡号的切图图片数据,默认false。
RetCardNoImage *bool `json:"RetCardNoImage,omitempty" name:"RetCardNoImage"`
// 复印件检测开关,如果输入的图片是银行卡复印件图片则返回告警,默认false。
EnableCopyCheck *bool `json:"EnableCopyCheck,omitempty" name:"EnableCopyCheck"`
// 翻拍检测开关,如果输入的图片是银行卡翻拍图片则返回告警,默认false。
EnableReshootCheck *bool `json:"EnableReshootCheck,omitempty" name:"EnableReshootCheck"`
// 边框遮挡检测开关,如果输入的图片是银行卡边框被遮挡则返回告警,默认false。
EnableBorderCheck *bool `json:"EnableBorderCheck,omitempty" name:"EnableBorderCheck"`
}
func NewBankCardOCRRequest ¶
func NewBankCardOCRRequest() (request *BankCardOCRRequest)
func (*BankCardOCRRequest) FromJsonString ¶
func (r *BankCardOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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"`
// 有效期,格式如:07/2023
ValidDate *string `json:"ValidDate,omitempty" name:"ValidDate"`
// 卡类型
CardType *string `json:"CardType,omitempty" name:"CardType"`
// 卡名字
CardName *string `json:"CardName,omitempty" name:"CardName"`
// 切片图片数据
// 注意:此字段可能返回 null,表示取不到有效值。
BorderCutImage *string `json:"BorderCutImage,omitempty" name:"BorderCutImage"`
// 卡号图片数据
// 注意:此字段可能返回 null,表示取不到有效值。
CardNoImage *string `json:"CardNoImage,omitempty" name:"CardNoImage"`
// WarningCode 告警码列表和释义:
// -9110:银行卡日期无效;
// -9111:银行卡边框不完整;
// -9112:银行卡图片反光;
// -9113:银行卡复印件;
// -9114:银行卡翻拍件
// (告警码可以同时存在多个)
// 注意:此字段可能返回 null,表示取不到有效值。
WarningCode []*int64 `json:"WarningCode,omitempty" name:"WarningCode" list`
// 唯一请求 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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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"`
// Code 告警码列表和释义:
// -20001 非营业执照
// 注:告警码可以同时存在多个
RecognizeWarnCode []*int64 `json:"RecognizeWarnCode,omitempty" name:"RecognizeWarnCode" list`
// 告警码说明:
// OCR_WARNING_TPYE_NOT_MATCH 非营业执照
// 注:告警信息可以同时存在多个
RecognizeWarnMsg []*string `json:"RecognizeWarnMsg,omitempty" name:"RecognizeWarnMsg" list`
// 唯一请求 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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*BizLicenseOCRResponse) ToJsonString ¶
func (r *BizLicenseOCRResponse) ToJsonString() string
type BizLicenseVerifyResult ¶
type BusInvoiceInfo ¶
type BusInvoiceInfo struct {
// 识别出的字段名称(关键字),支持以下字段:
// 发票代码、发票号码、日期、票价、始发地、目的地、姓名、时间、发票消费类型、身份证号、省、市。
Name *string `json:"Name,omitempty" name:"Name"`
// 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
Value *string `json:"Value,omitempty" name:"Value"`
// 文本行在旋转纠正之后的图像中的像素坐标。
Rect *Rect `json:"Rect,omitempty" name:"Rect"`
}
type BusInvoiceOCRRequest ¶
type BusInvoiceOCRRequest struct {
*tchttp.BaseRequest
// 图片的 Base64 值。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片的 Url 地址。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}
func NewBusInvoiceOCRRequest ¶
func NewBusInvoiceOCRRequest() (request *BusInvoiceOCRRequest)
func (*BusInvoiceOCRRequest) FromJsonString ¶
func (r *BusInvoiceOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*BusInvoiceOCRResponse) ToJsonString ¶
func (r *BusInvoiceOCRResponse) ToJsonString() string
type BusinessCardInfo ¶
type BusinessCardInfo struct {
// 识别出的字段名称(关键字,可能重复,比如多个手机),能识别的字段名为:
// 姓名、英文姓名、英文地址、公司、英文公司、职位、英文职位、部门、英文部门、手机、电话、传真、社交帐号、QQ、MSN、微信、微博、邮箱、邮编、网址、公司账号、其他。
Name *string `json:"Name,omitempty" name:"Name"`
// 识别出的字段名称对应的值,也就是字段name对应的字符串结果。
Value *string `json:"Value,omitempty" name:"Value"`
// 文本行在旋转纠正之后的图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height)
ItemCoord *ItemCoord `json:"ItemCoord,omitempty" name:"ItemCoord"`
}
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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"`
// 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
Angle *float64 `json:"Angle,omitempty" name:"Angle"`
// 唯一请求 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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*BusinessCardOCRResponse) ToJsonString ¶
func (r *BusinessCardOCRResponse) ToJsonString() string
type CandWord ¶
type CandWord struct {
// 候选字符集的单词信息(包括单词Character和单词置信度confidence)
CandWords []*Words `json:"CandWords,omitempty" name:"CandWords" list`
}
type CarInvoiceInfo ¶
type CarInvoiceInfo struct {
// 识别出的字段名称(关键字),支持以下字段:
// 发票代码、 机打代码、 发票号码、 发动机号码、 合格证号、 机打号码、 价税合计(小写)、 销货单位名称、 身份证号码/组织机构代码、 购买方名称、 销售方纳税人识别号、 购买方纳税人识别号、主管税务机关、 主管税务机关代码、 开票日期、 不含税价(小写)、 吨位、增值税税率或征收率、 车辆识别代号/车架号码、 增值税税额、 厂牌型号、 省、 市、 发票消费类型、 销售方电话、 销售方账号、 产地、 进口证明书号、 车辆类型、 机器编号、备注、开票人、限乘人数、商检单号、销售方地址、销售方开户银行、价税合计。
Name *string `json:"Name,omitempty" name:"Name"`
// 识别出的字段名称对应的值,也就是字段name对应的字符串结果。
Value *string `json:"Value,omitempty" name:"Value"`
// 字段在旋转纠正之后的图像中的像素坐标。
Rect *Rect `json:"Rect,omitempty" name:"Rect"`
// 字段在原图中的中的四点坐标。
// 注意:此字段可能返回 null,表示取不到有效值。
// 注意:此字段可能返回 null,表示取不到有效值。
Polygon *Polygon `json:"Polygon,omitempty" name:"Polygon"`
}
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CarInvoiceOCRResponse) ToJsonString ¶
func (r *CarInvoiceOCRResponse) ToJsonString() string
type CellContent ¶
type ClassifyDetectInfo ¶
type ClassifyDetectOCRRequest ¶
type ClassifyDetectOCRRequest struct {
*tchttp.BaseRequest
// 图片的 Base64 值。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片的 Url 地址。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
// 可以指定要识别的票证类型,指定后不出现在此列表的票证将不返回类型。不指定时默认返回所有支持类别票证的识别信息。
//
// 以下是当前支持的类型:
// IDCardFront: 身份证正面识别
// IDCardBack: 身份证背面识别
// Passport: 护照
// BusinessCard: 名片识别
// BankCard: 银行卡识别
// VehicleLicenseFront: 行驶证主页识别
// VehicleLicenseBack: 行驶证副页识别
// DriverLicenseFront: 驾驶证主页识别
// DriverLicenseBack: 驾驶证副页识别
// PermitFront: 港澳台通行证正面
// ResidenceBooklet: 户口本资料页
// MainlandPermitFront: 港澳台来往内地通行证正面
// HmtResidentPermitFront: 港澳台居住证正面
// HmtResidentPermitBack: 港澳台居住证背面
// EstateCert: 不动产证
// BizLicense: 营业执照
DiscernType []*string `json:"DiscernType,omitempty" name:"DiscernType" list`
}
func NewClassifyDetectOCRRequest ¶
func NewClassifyDetectOCRRequest() (request *ClassifyDetectOCRRequest)
func (*ClassifyDetectOCRRequest) FromJsonString ¶
func (r *ClassifyDetectOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ClassifyDetectOCRRequest) ToJsonString ¶
func (r *ClassifyDetectOCRRequest) ToJsonString() string
type ClassifyDetectOCRResponse ¶
type ClassifyDetectOCRResponse struct {
*tchttp.BaseResponse
Response *struct {
// 智能卡证分类结果。当图片类型不支持分类识别或者识别出的类型不在请求参数DiscernType指定的范围内时,返回结果中的Type字段将为空字符串,Name字段将返回"其它"
ClassifyDetectInfos []*ClassifyDetectInfo `json:"ClassifyDetectInfos,omitempty" name:"ClassifyDetectInfos" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewClassifyDetectOCRResponse ¶
func NewClassifyDetectOCRResponse() (response *ClassifyDetectOCRResponse)
func (*ClassifyDetectOCRResponse) FromJsonString ¶
func (r *ClassifyDetectOCRResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ClassifyDetectOCRResponse) ToJsonString ¶
func (r *ClassifyDetectOCRResponse) 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) AdvertiseOCR ¶
func (c *Client) AdvertiseOCR(request *AdvertiseOCRRequest) (response *AdvertiseOCRResponse, err error)
本接口支持广告商品图片内文字的检测和识别,返回文本框位置与文字内容。
产品优势:针对广告商品图片普遍存在较多繁体字、艺术字的特点,进行了识别能力的增强。支持中英文、横排、竖排以及倾斜场景文字识别。文字识别的召回率和准确率能达到96%以上。
func (*Client) ArithmeticOCR ¶
func (c *Client) ArithmeticOCR(request *ArithmeticOCRRequest) (response *ArithmeticOCRResponse, err error)
本接口支持作业算式题目的自动识别和判分,目前覆盖 K12 学力范围内的 11 种题型,包括加减乘除四则、加减乘除已知结果求运算因子、判断大小、约等于估算、带余数除法、分数四则运算、单位换算、竖式加减法、竖式乘除法、脱式计算和解方程,平均识别精度达到93%以上。
func (*Client) BankCardOCR ¶
func (c *Client) BankCardOCR(request *BankCardOCRRequest) (response *BankCardOCRResponse, err error)
本接口支持对中国大陆主流银行卡正反面关键字段的检测与识别,包括卡号、卡类型、卡名字、银行信息、有效期。支持竖排异形卡识别、多角度旋转图片识别。支持对复印件、翻拍件、边框遮挡的银行卡进行告警,可应用于各种银行卡信息有效性校验场景,如金融行业身份认证、第三方支付绑卡等场景。
func (*Client) BizLicenseOCR ¶
func (c *Client) BizLicenseOCR(request *BizLicenseOCRRequest) (response *BizLicenseOCRResponse, err error)
本接口支持快速精准识别营业执照上的字段,包括统一社会信用代码、公司名称、经营场所、主体类型、法定代表人、注册资金、组成形式、成立日期、营业期限和经营范围等字段。
func (*Client) BusInvoiceOCR ¶
func (c *Client) BusInvoiceOCR(request *BusInvoiceOCRRequest) (response *BusInvoiceOCRResponse, err error)
本接口支持识别公路汽车客票的发票代码、发票号码、日期、姓名、票价等字段。
func (*Client) BusinessCardOCR ¶
func (c *Client) BusinessCardOCR(request *BusinessCardOCRRequest) (response *BusinessCardOCRResponse, err error)
本接口支持名片各字段的自动定位与识别,包含姓名、电话、手机号、邮箱、公司、部门、职位、网址、地址、QQ、微信、MSN等。
func (*Client) CarInvoiceOCR ¶
func (c *Client) CarInvoiceOCR(request *CarInvoiceOCRRequest) (response *CarInvoiceOCRResponse, err error)
本接口支持机动车销售统一发票和二手车销售统一发票的识别,包括发票号码、发票代码、合计金额、合计税额等二十多个字段。
func (*Client) ClassifyDetectOCR ¶
func (c *Client) ClassifyDetectOCR(request *ClassifyDetectOCRRequest) (response *ClassifyDetectOCRResponse, err error)
支持身份证、护照、名片、银行卡、行驶证、驾驶证、港澳台通行证、户口本、港澳台来往内地通行证、港澳台居住证、不动产证、营业执照的智能分类。
func (*Client) DriverLicenseOCR ¶
func (c *Client) DriverLicenseOCR(request *DriverLicenseOCRRequest) (response *DriverLicenseOCRResponse, err error)
本接口支持驾驶证主页和副页所有字段的自动定位与识别,重点字段的识别准确度达到99%以上。
驾驶证主页:包括证号、姓名、性别、国籍、住址、出生日期、初次领证日期、准驾车型、有效期限、发证单位
驾驶证副页:包括证号、姓名、档案编号、记录。
另外,本接口还支持复印件、翻拍和PS告警功能。
func (*Client) DutyPaidProofOCR ¶
func (c *Client) DutyPaidProofOCR(request *DutyPaidProofOCRRequest) (response *DutyPaidProofOCRResponse, err error)
本接口支持对完税证明的税号、纳税人识别号、纳税人名称、金额合计大写、金额合计小写、填发日期、税务机关、填票人等关键字段的识别。
func (*Client) EduPaperOCR ¶
func (c *Client) EduPaperOCR(request *EduPaperOCRRequest) (response *EduPaperOCRResponse, err error)
本接口支持数学试题内容的识别和结构化输出,包括通用文本解析和小学/初中/高中数学公式解析能力(包括91种题型,180种符号),公式返回格式为 Latex 格式文本。
func (*Client) EnglishOCR ¶
func (c *Client) EnglishOCR(request *EnglishOCRRequest) (response *EnglishOCRResponse, err error)
本接口支持图像英文文字的检测和识别,返回文字框位置与文字内容。支持多场景、任意版面下的英文、字母、数字和常见字符的识别,同时覆盖英文印刷体和英文手写体识别。
func (*Client) EnterpriseLicenseOCR ¶
func (c *Client) EnterpriseLicenseOCR(request *EnterpriseLicenseOCRRequest) (response *EnterpriseLicenseOCRResponse, err error)
本接口支持智能化识别各类企业登记证书、许可证书、企业执照、三证合一类证书,结构化输出统一社会信用代码、公司名称、法定代表人、公司地址、注册资金、企业类型、经营范围等关键字段。
func (*Client) EstateCertOCR ¶
func (c *Client) EstateCertOCR(request *EstateCertOCRRequest) (response *EstateCertOCRResponse, err error)
本接口支持不动产权证关键字段的识别,包括使用期限、面积、用途、权利性质、权利类型、坐落、共有情况、权利人、权利其他状况等。
func (*Client) FinanBillOCR ¶
func (c *Client) FinanBillOCR(request *FinanBillOCRRequest) (response *FinanBillOCRResponse, err error)
本接口支持常见银行票据的自动分类和识别。整单识别包括支票(含现金支票、普通支票、转账支票),承兑汇票(含银行承兑汇票、商业承兑汇票)以及进账单等,适用于中国人民银行印发的 2010 版银行票据凭证版式(银发[2010]299 号)。
func (*Client) FinanBillSliceOCR ¶
func (c *Client) FinanBillSliceOCR(request *FinanBillSliceOCRRequest) (response *FinanBillSliceOCRResponse, err error)
本接口支持常见银行票据的自动分类和识别。切片识别包括金融行业常见票据的重要切片字段识别,包括金额、账号、日期、凭证号码等。(金融票据切片:金融票据中待识别字段及其周围局部区域的裁剪图像。)
func (*Client) FlightInvoiceOCR ¶
func (c *Client) FlightInvoiceOCR(request *FlightInvoiceOCRRequest) (response *FlightInvoiceOCRResponse, err error)
本接口支持机票行程单关键字段的识别,包括旅客姓名、有效身份证件号码、电子客票号码、验证码、填开单位、其他税费、燃油附加费、民航发展基金、保险费、销售单位代号、始发地、目的地、航班号、时间、日期、座位等级、承运人、发票消费类型、票价、合计金额、填开日期、国内国际标签、印刷序号、客票级别/类别、客票生效日期、有效期截止日期、免费行李等字段,支持航班信息多行明细输出。
func (*Client) FormulaOCR ¶
func (c *Client) FormulaOCR(request *FormulaOCRRequest) (response *FormulaOCRResponse, err error)
本接口支持识别主流初高中数学符号和公式,返回公式的 Latex 格式文本。
func (*Client) GeneralAccurateOCR ¶
func (c *Client) GeneralAccurateOCR(request *GeneralAccurateOCRRequest) (response *GeneralAccurateOCRResponse, err error)
本接口支持图像整体文字的检测和识别。支持中文、英文、中英文、数字和特殊字符号的识别,并返回文字框位置和文字内容。
适用于文字较多、版式复杂、对识别准召率要求较高的场景,如试卷试题、网络图片、街景店招牌、法律卷宗等场景。
产品优势:与通用印刷体识别相比,提供更高精度的文字识别服务,在文字较多、长串数字、小字、模糊字、倾斜文本等困难场景下,高精度版的准确率和召回率更高。
通用印刷体识别不同版本的差异如下: <table style="width:715px">
<thead>
<tr>
<th style="width:150px"></th>
<th >【荐】通用印刷体识别(高精度版)</th>
<th style="width:200px"><a href="https://cloud.tencent.com/document/product/866/33526">【荐】通用印刷体识别</a></th>
<th><a href="https://cloud.tencent.com/document/product/866/37831">通用印刷体识别(精简版)</a></th>
</tr>
</thead>
<tbody>
<tr>
<td> 适用场景</td>
<td>适用于文字较多、长串数字、小字、模糊字、倾斜文本等困难场景</td>
<td>适用于所有通用场景的印刷体识别</td>
<td>适用于快速文本识别场景,准召率有一定损失,价格更优惠</td>
</tr>
<tr>
<td>识别准确率</td>
<td>99%</td>
<td>96%</td>
<td>91%</td>
</tr>
<tr>
<td>价格</td>
<td>高</td>
<td>中</td>
<td>低</td>
</tr>
<tr>
<td>支持的语言</td>
<td>中文、英文、中英文</td>
<td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
<td>中文、英文、中英文</td>
</tr>
<tr>
<td>自动语言检测</td>
<td>支持</td>
<td>支持</td>
<td>支持</td>
</tr>
<tr>
<td>返回文本行坐标</td>
<td>支持</td>
<td>支持</td>
<td>支持</td>
</tr>
<tr>
<td>自动旋转纠正</td>
<td>支持旋转识别,返回角度信息</td>
<td>支持旋转识别,返回角度信息</td>
<td>支持旋转识别,返回角度信息</td>
</tr>
</tbody>
</table>
func (*Client) GeneralBasicOCR ¶
func (c *Client) GeneralBasicOCR(request *GeneralBasicOCRRequest) (response *GeneralBasicOCRResponse, err error)
本接口支持图像整体文字的检测和识别。可以识别中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语,阿拉伯语20种语言,且各种语言均支持与英文混合的文字识别。
适用于印刷文档识别、网络图片识别、广告图文字识别、街景店招牌识别、菜单识别、视频标题识别、头像文字识别等场景。
产品优势:支持自动识别语言类型,可返回文本框坐标信息,对于倾斜文本支持自动旋转纠正。
通用印刷体识别不同版本的差异如下: <table style="width:715px">
<thead>
<tr>
<th style="width:150px"></th>
<th style="width:200px">【荐】通用印刷体识别</th>
<th ><a href="https://cloud.tencent.com/document/product/866/34937">【荐】通用印刷体识别(高精度版)</a></th>
<th><a href="https://cloud.tencent.com/document/product/866/37831">通用印刷体识别(精简版)</a></th>
</tr>
</thead>
<tbody>
<tr>
<td> 适用场景</td>
<td>适用于所有通用场景的印刷体识别</td>
<td>适用于文字较多、长串数字、小字、模糊字、倾斜文本等困难场景</td>
<td>适用于快速文本识别场景,准召率有一定损失,价格更优惠</td>
</tr>
<tr>
<td>识别准确率</td>
<td>96%</td>
<td>99%</td>
<td>91%</td>
</tr>
<tr>
<td>价格</td>
<td>中</td>
<td>高</td>
<td>低</td>
</tr>
<tr>
<td>支持的语言</td>
<td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
<td>中文、英文、中英文</td>
<td>中文、英文、中英文</td>
</tr>
<tr>
<td>自动语言检测</td>
<td>支持</td>
<td>支持</td>
<td>支持</td>
</tr>
<tr>
<td>返回文本行坐标</td>
<td>支持</td>
<td>支持</td>
<td>支持</td>
</tr>
<tr>
<td>自动旋转纠正</td>
<td>支持旋转识别,返回角度信息</td>
<td>支持旋转识别,返回角度信息</td>
<td>支持旋转识别,返回角度信息</td>
</tr>
</tbody>
</table>
func (*Client) GeneralEfficientOCR ¶
func (c *Client) GeneralEfficientOCR(request *GeneralEfficientOCRRequest) (response *GeneralEfficientOCRResponse, err error)
本接口支持图像整体文字的检测和识别。支持中文、英文、中英文、数字和特殊字符号的识别,并返回文字框位置和文字内容。
适用于快速文本识别场景。
产品优势:与通用印刷体识别接口相比,精简版虽然在准确率和召回率上有一定损失,但价格更加优惠。
通用印刷体识别不同版本的差异如下: <table style="width:715px">
<thead>
<tr>
<th style="width:150px"></th>
<th >通用印刷体识别(精简版)</th>
<th style="width:200px"><a href="https://cloud.tencent.com/document/product/866/33526">【荐】通用印刷体识别</a></th>
<th><a href="https://cloud.tencent.com/document/product/866/34937">【荐】通用印刷体识别(高精度版)</a></th>
</tr>
</thead>
<tbody>
<tr>
<td> 适用场景</td>
<td>适用于快速文本识别场景,准召率有一定损失,价格更优惠</td>
<td>适用于所有通用场景的印刷体识别</td>
<td>适用于文字较多、长串数字、小字、模糊字、倾斜文本等困难场景</td>
</tr>
<tr>
<td>识别准确率</td>
<td>91%</td>
<td>96%</td>
<td>99%</td>
</tr>
<tr>
<td>价格</td>
<td>低</td>
<td>中</td>
<td>高</td>
</tr>
<tr>
<td>支持的语言</td>
<td>中文、英文、中英文</td>
<td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
<td>中文、英文、中英文</td>
</tr>
<tr>
<td>自动语言检测</td>
<td>支持</td>
<td>支持</td>
<td>支持</td>
</tr>
<tr>
<td>返回文本行坐标</td>
<td>支持</td>
<td>支持</td>
<td>支持</td>
</tr>
<tr>
<td>自动旋转纠正</td>
<td>支持旋转识别,返回角度信息</td>
<td>支持旋转识别,返回角度信息</td>
<td>支持旋转识别,返回角度信息</td>
</tr>
</tbody>
</table>
func (*Client) GeneralFastOCR ¶
func (c *Client) GeneralFastOCR(request *GeneralFastOCRRequest) (response *GeneralFastOCRResponse, err error)
本接口支持图片中整体文字的检测和识别,返回文字框位置与文字内容。相比通用印刷体识别接口,识别速度更快、支持的 QPS 更高。
func (*Client) GeneralHandwritingOCR ¶
func (c *Client) GeneralHandwritingOCR(request *GeneralHandwritingOCRRequest) (response *GeneralHandwritingOCRResponse, err error)
本接口支持图片内手写体文字的检测和识别,针对手写字体无规则、字迹潦草、模糊等特点进行了识别能力的增强。
func (*Client) HKIDCardOCR ¶
func (c *Client) HKIDCardOCR(request *HKIDCardOCRRequest) (response *HKIDCardOCRResponse, err error)
本接口支持中国香港身份证人像面中关键字段的识别,包括中文姓名、英文姓名、姓名电码、出生日期、性别、证件符号、首次签发日期、最近领用日期、身份证号、是否是永久性居民身份证;具备防伪识别、人像照片裁剪等扩展功能。 本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)
func (*Client) HmtResidentPermitOCR ¶
func (c *Client) HmtResidentPermitOCR(request *HmtResidentPermitOCRRequest) (response *HmtResidentPermitOCRResponse, err error)
港澳台居住证OCR支持港澳台居住证正反面全字段内容检测识别功能,包括姓名、性别、出生日期、地址、身份证ID、签发机关、有效期限、签发次数、通行证号码关键字段识别。可以应用于港澳台居住证信息有效性校验场景,例如银行开户、用户注册等场景。
func (*Client) IDCardOCR ¶
func (c *Client) IDCardOCR(request *IDCardOCRRequest) (response *IDCardOCRResponse, err error)
本接口支持中国大陆居民二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限,识别准确度达到99%以上。
另外,本接口还支持多种增值能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备9种告警功能,如下表所示。
<table style="width:650px">
<thead>
<tr>
<th width="150">增值能力</th>
<th width="500">能力项</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="2">裁剪功能</td>
<td>身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)</td>
</tr>
<tr>
<td>人像照片裁剪(自动抠取身份证头像区域)</td>
</tr>
<tr>
<td rowspan="9">告警功能</td>
<td>身份证有效日期不合法告警</td>
</tr>
<tr>
<td>身份证边框不完整告警</td>
</tr>
<tr>
<td>身份证复印件告警</td>
</tr>
<tr>
<td>身份证翻拍告警</td>
</tr>
<tr>
<td>身份证框内遮挡告警</td>
</tr>
<tr>
<td>临时身份证告警</td>
</tr>
<tr>
<td>身份证 PS 告警</td>
</tr>
<tr>
<td>图片模糊告警(可根据图片质量分数判断)</td>
</tr>
</tbody>
</table>
func (*Client) InstitutionOCR ¶
func (c *Client) InstitutionOCR(request *InstitutionOCRRequest) (response *InstitutionOCRResponse, err error)
本接口支持事业单位法人证书关键字段识别,包括注册号、有效期、住所、名称、法定代表人等。
func (*Client) InsuranceBillOCR ¶
func (c *Client) InsuranceBillOCR(request *InsuranceBillOCRRequest) (response *InsuranceBillOCRResponse, err error)
本接口支持病案首页、费用清单、结算单、医疗发票四种保险理赔单据的文本识别和结构化输出。
func (*Client) InvoiceGeneralOCR ¶
func (c *Client) InvoiceGeneralOCR(request *InvoiceGeneralOCRRequest) (response *InvoiceGeneralOCRResponse, err error)
本接口支持对通用机打发票的发票代码、发票号码、日期、购买方识别号、销售方识别号、校验码、小写金额等关键字段的识别。
func (*Client) LicensePlateOCR ¶
func (c *Client) LicensePlateOCR(request *LicensePlateOCRRequest) (response *LicensePlateOCRResponse, err error)
本接口支持对中国大陆机动车车牌的自动定位和识别,返回地域编号和车牌号信息。
func (*Client) MLIDCardOCR ¶
func (c *Client) MLIDCardOCR(request *MLIDCardOCRRequest) (response *MLIDCardOCRResponse, err error)
本接口支持马来西亚身份证识别,识别字段包括身份证号、姓名、性别、地址;具备身份证人像照片的裁剪功能和翻拍、复印件告警功能。 本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)
func (*Client) MLIDPassportOCR ¶
func (c *Client) MLIDPassportOCR(request *MLIDPassportOCRRequest) (response *MLIDPassportOCRResponse, err error)
本接口支持中国港澳台地区以及其他国家、地区的护照识别。识别字段包括护照ID、姓名、出生日期、性别、有效期、发行国、国籍,具备护照人像照片的裁剪功能和翻拍、复印件告警功能。
func (*Client) MainlandPermitOCR ¶
func (c *Client) MainlandPermitOCR(request *MainlandPermitOCRRequest) (response *MainlandPermitOCRResponse, err error)
智能识别并结构化港澳台居民来往内地通行证正面全部字段,包含中文姓名、英文姓名、性别、出生日期、签发机关、有效期限、证件号、签发地点、签发次数、证件类别。
func (*Client) MixedInvoiceDetect ¶
func (c *Client) MixedInvoiceDetect(request *MixedInvoiceDetectRequest) (response *MixedInvoiceDetectResponse, err error)
本接口支持多张、多类型票据的混合检测和自动分类,返回对应票据类型。目前已支持增值税发票、增值税发票(卷票)、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票、酒店账单、客运限额发票、购物小票、完税证明共15种票据。
func (*Client) MixedInvoiceOCR ¶
func (c *Client) MixedInvoiceOCR(request *MixedInvoiceOCRRequest) (response *MixedInvoiceOCRResponse, err error)
本接口支持多张、多类型票据的混合识别,系统自动实现分割、分类和识别,同时支持自选需要识别的票据类型。目前已支持增值税发票、增值税发票(卷票)、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共11种票据。
func (*Client) OrgCodeCertOCR ¶
func (c *Client) OrgCodeCertOCR(request *OrgCodeCertOCRRequest) (response *OrgCodeCertOCRResponse, err error)
本接口支持组织机构代码证关键字段的识别,包括代码、有效期、地址、机构名称等。
func (*Client) PassportOCR ¶
func (c *Client) PassportOCR(request *PassportOCRRequest) (response *PassportOCRResponse, err error)
本接口支持中国大陆地区护照个人资料页多个字段的检测与识别。已支持字段包括英文姓名、中文姓名、国家码、护照号、出生地、出生日期、国籍英文、性别英文、有效期、签发地点英文、签发日期、持证人签名、护照机读码(MRZ码)等。
func (*Client) PermitOCR ¶
func (c *Client) PermitOCR(request *PermitOCRRequest) (response *PermitOCRResponse, err error)
本接口支持对卡式港澳台通行证的识别,包括签发地点、签发机关、有效期限、性别、出生日期、英文姓名、姓名、证件号等字段。
func (*Client) PropOwnerCertOCR ¶
func (c *Client) PropOwnerCertOCR(request *PropOwnerCertOCRRequest) (response *PropOwnerCertOCRResponse, err error)
本接口支持房产证关键字段的识别,包括房地产权利人、共有情况、登记时间、规划用途、房屋性质、房屋坐落等。
func (*Client) QrcodeOCR ¶
func (c *Client) QrcodeOCR(request *QrcodeOCRRequest) (response *QrcodeOCRResponse, err error)
本接口支持条形码和二维码的识别(包括 DataMatrix 和 PDF417)。
func (*Client) QueryBarCode ¶
func (c *Client) QueryBarCode(request *QueryBarCodeRequest) (response *QueryBarCodeResponse, err error)
本接口支持条形码备案信息查询,返回条形码查询结果的相关信息,包括产品名称、产品英文名称、品牌名称、规格型号、宽度、高度、深度、关键字、产品描述、厂家名称、厂家地址、企业社会信用代码13个字段信息。
产品优势:直联中国物品编码中心,查询结果更加准确、可靠。
func (*Client) QuotaInvoiceOCR ¶
func (c *Client) QuotaInvoiceOCR(request *QuotaInvoiceOCRRequest) (response *QuotaInvoiceOCRResponse, err error)
本接口支持定额发票的发票号码、发票代码、金额(大小写)、发票消费类型、地区及是否有公司印章等关键字段的识别。
func (*Client) RecognizeTableOCR ¶
func (c *Client) RecognizeTableOCR(request *RecognizeTableOCRRequest) (response *RecognizeTableOCRResponse, err error)
本接口支持中英文图片/ PDF内常规表格、无线表格、多表格的检测和识别,支持日文有线表格识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。
func (*Client) RecognizeThaiIDCardOCR ¶
func (c *Client) RecognizeThaiIDCardOCR(request *RecognizeThaiIDCardOCRRequest) (response *RecognizeThaiIDCardOCRResponse, err error)
本接口支持泰国身份证识别,识别字段包括泰文姓名、英文姓名、地址、出生日期、身份证号码。 本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)
func (*Client) ResidenceBookletOCR ¶
func (c *Client) ResidenceBookletOCR(request *ResidenceBookletOCRRequest) (response *ResidenceBookletOCRResponse, err error)
本接口支持居民户口簿户主页及成员页关键字段的识别,包括姓名、户别、地址、籍贯、身份证号码等。
func (*Client) RideHailingDriverLicenseOCR ¶
func (c *Client) RideHailingDriverLicenseOCR(request *RideHailingDriverLicenseOCRRequest) (response *RideHailingDriverLicenseOCRResponse, err error)
本接口支持网约车驾驶证关键字段的识别,包括姓名、证号、起始日期、截止日期、发证日期。
func (*Client) RideHailingTransportLicenseOCR ¶
func (c *Client) RideHailingTransportLicenseOCR(request *RideHailingTransportLicenseOCRRequest) (response *RideHailingTransportLicenseOCRResponse, err error)
本接口支持网约车运输证关键字段的识别,包括交运管许可字号、车辆所有人、车辆号牌、起始日期、截止日期、发证日期。
func (*Client) SealOCR ¶
func (c *Client) SealOCR(request *SealOCRRequest) (response *SealOCRResponse, err error)
印章识别已支持各类印章,包括发票章,财务章等,适用于公文,票据等场景。
func (*Client) ShipInvoiceOCR ¶
func (c *Client) ShipInvoiceOCR(request *ShipInvoiceOCRRequest) (response *ShipInvoiceOCRResponse, err error)
本接口支持识别轮船票的发票代码、发票号码、日期、姓名、票价、始发地、目的地、姓名、时间、发票消费类型、省、市、币种字段。
func (*Client) TableOCR ¶
func (c *Client) TableOCR(request *TableOCRRequest) (response *TableOCRResponse, err error)
<b>此接口为表格识别的旧版本服务,不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/49525">新版表格识别</a>。</b>
本接口支持图片内表格文档的检测和识别,返回每个单元格的文字内容,支持将识别结果保存为 Excel 格式。
func (*Client) TaxiInvoiceOCR ¶
func (c *Client) TaxiInvoiceOCR(request *TaxiInvoiceOCRRequest) (response *TaxiInvoiceOCRResponse, err error)
本接口支持出租车发票关键字段的识别,包括发票号码、发票代码、金额、日期、上下车时间、里程、车牌号、发票类型及所属地区等字段。
func (*Client) TextDetect ¶
func (c *Client) TextDetect(request *TextDetectRequest) (response *TextDetectResponse, err error)
本接口通过检测图片中的文字信息特征,快速判断图片中有无文字并返回判断结果,帮助用户过滤无文字的图片。
func (*Client) TollInvoiceOCR ¶
func (c *Client) TollInvoiceOCR(request *TollInvoiceOCRRequest) (response *TollInvoiceOCRResponse, err error)
本接口支持对过路过桥费发票的发票代码、发票号码、日期、小写金额等关键字段的识别。
func (*Client) TrainTicketOCR ¶
func (c *Client) TrainTicketOCR(request *TrainTicketOCRRequest) (response *TrainTicketOCRResponse, err error)
本接口支持火车票全字段的识别,包括编号、票价、姓名、座位号、出发时间、出发站、到达站、车次、席别、发票类型及序列号等。
func (*Client) VatInvoiceOCR ¶
func (c *Client) VatInvoiceOCR(request *VatInvoiceOCRRequest) (response *VatInvoiceOCRResponse, err error)
本接口支持增值税专用发票、增值税普通发票、增值税电子发票全字段的内容检测和识别,包括发票代码、发票号码、打印发票代码、打印发票号码、开票日期、合计金额、校验码、税率、合计税额、价税合计、购买方识别号、复核、销售方识别号、开票人、密码区1、密码区2、密码区3、密码区4、发票名称、购买方名称、销售方名称、服务名称、备注、规格型号、数量、单价、金额、税额、收款人等字段。
func (*Client) VatInvoiceVerify ¶
func (c *Client) VatInvoiceVerify(request *VatInvoiceVerifyRequest) (response *VatInvoiceVerifyResponse, err error)
本接口支持增值税发票的准确性核验,您可以通过输入增值税发票的关键字段提供所需的验证信息,接口返回真实的票面相关信息,包括发票代码、发票号码、开票日期、金额、消费类型、购方名称、购方税号、销方名称、销方税号等多个常用字段。支持多种发票类型核验,包括增值税专用发票、增值税普通发票(含电子普通发票、卷式发票、通行费发票)、机动车销售统一发票、货物运输业增值税专用发票、二手车销售统一发票。
func (*Client) VatRollInvoiceOCR ¶
func (c *Client) VatRollInvoiceOCR(request *VatRollInvoiceOCRRequest) (response *VatRollInvoiceOCRResponse, err error)
本接口支持对增值税发票(卷票)的发票代码、发票号码、日期、校验码、合计金额(小写)等关键字段的识别。
func (*Client) VehicleLicenseOCR ¶
func (c *Client) VehicleLicenseOCR(request *VehicleLicenseOCRRequest) (response *VehicleLicenseOCRResponse, err error)
本接口支持行驶证主页和副页所有字段的自动定位与识别。
行驶证主页:车牌号码、车辆类型、所有人、住址、使用性质、品牌型号、识别代码、发动机号、注册日期、发证日期、发证单位。
行驶证副页:号牌号码、档案编号、核定载人数、总质量、整备质量、核定载质量、外廓尺寸、准牵引总质量、备注、检验记录。
另外,本接口还支持复印件、翻拍和PS告警功能。
func (*Client) VehicleRegCertOCR ¶
func (c *Client) VehicleRegCertOCR(request *VehicleRegCertOCRRequest) (response *VehicleRegCertOCRResponse, err error)
本接口支持国内机动车登记证书主要字段的结构化识别,包括机动车所有人、身份证明名称、号码、车辆型号、车辆识别代号、发动机号、制造厂名称等。
func (*Client) VerifyBasicBizLicense ¶
func (c *Client) VerifyBasicBizLicense(request *VerifyBasicBizLicenseRequest) (response *VerifyBasicBizLicenseResponse, err error)
本接口支持营业执照信息的识别与准确性核验。
您可以通过输入营业执照注册号或营业执照图片(若两者都输入则只用注册号做查询)进行核验,接口返回查询到的工商照面信息,并比对要校验的字段与查询结果的一致性。查询到工商信息包括:统一社会信用代码、经营期限、法人姓名、经营状态、经营业务范围、注册资本等。
func (*Client) VerifyBizLicense ¶
func (c *Client) VerifyBizLicense(request *VerifyBizLicenseRequest) (response *VerifyBizLicenseResponse, err error)
本接口支持营业执照信息的识别与准确性核验,返回的真实工商照面信息比营业执照识别及核验(基础版)接口更详细。
您可以输入营业执照注册号或营业执照图片(若两者都输入则只用注册号做查询),接口返回查询到的工商照面信息,并比对要校验的字段与查询结果的一致性。
查询到工商信息包括:统一社会信用代码、组织机构代码、经营期限、法人姓名、经营状态、经营业务范围及方式、注册资金、注册币种、登记机关、开业日期、企业(机构)类型、注销日期、吊销日期、许可经营项目、一般经营项目、核准时间、省、地级市、区/县、住所所在行政区划代码、行业门类代码、行业门类名称、国民经济行业代码、国民经济行业名称、经营(业务)范围等。
func (*Client) VerifyOfdVatInvoiceOCR ¶
func (c *Client) VerifyOfdVatInvoiceOCR(request *VerifyOfdVatInvoiceOCRRequest) (response *VerifyOfdVatInvoiceOCRResponse, err error)
本接口支持OFD格式的增值税电子普通发票和增值税电子专用发票的识别,返回发票代码、发票号码、开票日期、验证码、机器编号、密码区,购买方和销售方信息,包括名称、纳税人识别号、地址电话、开户行及账号,以及价税合计、开票人、收款人、复核人、税额、不含税金额等字段信息。
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 为驾驶证副页正面(有档案编号的一面)。
// 默认值为:FRONT。
CardSide *string `json:"CardSide,omitempty" name:"CardSide"`
}
func NewDriverLicenseOCRRequest ¶
func NewDriverLicenseOCRRequest() (request *DriverLicenseOCRRequest)
func (*DriverLicenseOCRRequest) FromJsonString ¶
func (r *DriverLicenseOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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"`
// 出生日期(YYYY-MM-DD)
DateOfBirth *string `json:"DateOfBirth,omitempty" name:"DateOfBirth"`
// 初次领证日期(YYYY-MM-DD)
DateOfFirstIssue *string `json:"DateOfFirstIssue,omitempty" name:"DateOfFirstIssue"`
// 准驾车型
Class *string `json:"Class,omitempty" name:"Class"`
// 有效期开始时间(YYYY-MM-DD)
StartDate *string `json:"StartDate,omitempty" name:"StartDate"`
// 有效期截止时间(YYYY-MM-DD)
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`
// 发证单位
IssuingAuthority *string `json:"IssuingAuthority,omitempty" name:"IssuingAuthority"`
// 唯一请求 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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DriverLicenseOCRResponse) ToJsonString ¶
func (r *DriverLicenseOCRResponse) ToJsonString() string
type DutyPaidProofInfo ¶
type DutyPaidProofInfo struct {
// 识别出的字段名称(关键字),支持以下字段:
// 税号 、纳税人识别号 、纳税人名称 、金额合计大写 、金额合计小写 、填发日期 、税务机关 、填票人。
Name *string `json:"Name,omitempty" name:"Name"`
// 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
Value *string `json:"Value,omitempty" name:"Value"`
// 文本行在旋转纠正之后的图像中的像素坐标。
Rect *Rect `json:"Rect,omitempty" name:"Rect"`
}
type DutyPaidProofOCRRequest ¶
type DutyPaidProofOCRRequest struct {
*tchttp.BaseRequest
// 图片的 Base64 值。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片的 Url 地址。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}
func NewDutyPaidProofOCRRequest ¶
func NewDutyPaidProofOCRRequest() (request *DutyPaidProofOCRRequest)
func (*DutyPaidProofOCRRequest) FromJsonString ¶
func (r *DutyPaidProofOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DutyPaidProofOCRResponse) ToJsonString ¶
func (r *DutyPaidProofOCRResponse) ToJsonString() string
type EduPaperOCRRequest ¶
type EduPaperOCRRequest 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 编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
// 扩展配置信息。
// 配置格式:{"option1":value1,"option2":value2}
// 1. task_type:任务类型【0: 关闭版式分析与处理 1: 开启版式分析处理】可选参数,Int32类型,默认值为1
// 2. is_structuralization:是否结构化输出【true:返回包体同时返回通用和结构化输出 false:返回包体返回通用输出】 可选参数,Bool类型,默认值为true
// 3. if_readable_format:是否按照版式整合通用文本/公式输出结果 可选参数,Bool类型,默认值为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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*EduPaperOCRResponse) ToJsonString ¶
func (r *EduPaperOCRResponse) ToJsonString() string
type EnglishOCRRequest ¶
type EnglishOCRRequest 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"`
// 单词四点坐标开关,开启可返回图片中单词的四点坐标。
// 该参数默认值为false。
EnableCoordPoint *bool `json:"EnableCoordPoint,omitempty" name:"EnableCoordPoint"`
// 候选字开关,开启可返回识别时多个可能的候选字(每个候选字对应其置信度)。
// 该参数默认值为false。
EnableCandWord *bool `json:"EnableCandWord,omitempty" name:"EnableCandWord"`
}
func NewEnglishOCRRequest ¶
func NewEnglishOCRRequest() (request *EnglishOCRRequest)
func (*EnglishOCRRequest) FromJsonString ¶
func (r *EnglishOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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`
// 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
Angel *float64 `json:"Angel,omitempty" name:"Angel"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewEnglishOCRResponse ¶
func NewEnglishOCRResponse() (response *EnglishOCRResponse)
func (*EnglishOCRResponse) FromJsonString ¶
func (r *EnglishOCRResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*EnglishOCRResponse) ToJsonString ¶
func (r *EnglishOCRResponse) ToJsonString() string
type EnterpriseLicenseInfo ¶
type EnterpriseLicenseInfo struct {
// 识别出的字段名称(关键字),不同证件类型可能不同,证件类型包含企业登记证书、许可证书、企业执照、三证合一类证书;
// 支持以下字段:统一社会信用代码、法定代表人、公司名称、公司地址、注册资金、企业关型、经营范围、成立日期、有效期、开办资金、经费来源、举办单位等;
Name *string `json:"Name,omitempty" name:"Name"`
// 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
Value *string `json:"Value,omitempty" name:"Value"`
}
type EnterpriseLicenseOCRRequest ¶
type EnterpriseLicenseOCRRequest struct {
*tchttp.BaseRequest
// 图片的 Base64 值。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片的 Url 地址。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}
func NewEnterpriseLicenseOCRRequest ¶
func NewEnterpriseLicenseOCRRequest() (request *EnterpriseLicenseOCRRequest)
func (*EnterpriseLicenseOCRRequest) FromJsonString ¶
func (r *EnterpriseLicenseOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*EstateCertOCRResponse) ToJsonString ¶
func (r *EstateCertOCRResponse) ToJsonString() string
type FinanBillInfo ¶
type FinanBillInfo struct {
// 识别出的字段名称(关键字),支持以下字段:
// 【进账单】
// 日期、出票全称、出票账号、出票开户行、收款人全称、收款人账号、收款开户行、大写金额、小写金额、票据种类、票据张数、票据号码;
// 【支票】
// 开户银行、支票种类、凭证号码2、日期、大写金额、小写金额、付款行编号、密码、凭证号码1;
// 【银行承兑汇票】或【商业承兑汇票】
// 出票日期、行号1、行号2、出票人全称、出票人账号、付款行全称、收款人全称、收款人账号、收款人开户行、出票金额大写、出票金额小写、汇票到期日、付款行行号、付款行地址。
Name *string `json:"Name,omitempty" name:"Name"`
// 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
Value *string `json:"Value,omitempty" name:"Value"`
}
type FinanBillOCRRequest ¶
type FinanBillOCRRequest struct {
*tchttp.BaseRequest
// 图片的 Base64 值。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片的 Url 地址。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}
func NewFinanBillOCRRequest ¶
func NewFinanBillOCRRequest() (request *FinanBillOCRRequest)
func (*FinanBillOCRRequest) FromJsonString ¶
func (r *FinanBillOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*FinanBillSliceOCRResponse) ToJsonString ¶
func (r *FinanBillSliceOCRResponse) ToJsonString() string
type FlightInvoiceInfo ¶
type FlightInvoiceInfo struct {
// 识别出的字段名称(关键字),支持以下字段:
// 票价、合计金额、填开日期、有效身份证件号码、电子客票号码、验证码、旅客姓名、填开单位、其他税费、燃油附加费、民航发展基金、保险费、销售单位代号、始发地、目的地、航班号、时间、日期、座位等级、承运人、发票消费类型、国内国际标签、印刷序号、客票级别/类别、客票生效日期、有效期截止日期、免费行李。
Name *string `json:"Name,omitempty" name:"Name"`
// 识别出的字段名称对应的值,也就是字段 Name 对应的字符串结果。
Value *string `json:"Value,omitempty" name:"Value"`
// 多个行程的字段所在行号,下标从0开始,非行字段或未能识别行号的该值返回-1。
Row *int64 `json:"Row,omitempty" name:"Row"`
}
type FlightInvoiceOCRRequest ¶
type FlightInvoiceOCRRequest 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 NewFlightInvoiceOCRRequest ¶
func NewFlightInvoiceOCRRequest() (request *FlightInvoiceOCRRequest)
func (*FlightInvoiceOCRRequest) FromJsonString ¶
func (r *FlightInvoiceOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*FormulaOCRResponse) ToJsonString ¶
func (r *FormulaOCRResponse) ToJsonString() string
type GeneralAccurateOCRRequest ¶
type GeneralAccurateOCRRequest struct {
*tchttp.BaseRequest
// 图片的 Base64 值。
// 要求图片经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP格式。
// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片的 Url 地址。
// 要求图片经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP格式。
// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}
func NewGeneralAccurateOCRRequest ¶
func NewGeneralAccurateOCRRequest() (request *GeneralAccurateOCRRequest)
func (*GeneralAccurateOCRRequest) FromJsonString ¶
func (r *GeneralAccurateOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GeneralAccurateOCRRequest) ToJsonString ¶
func (r *GeneralAccurateOCRRequest) ToJsonString() string
type GeneralAccurateOCRResponse ¶
type GeneralAccurateOCRResponse struct {
*tchttp.BaseResponse
Response *struct {
// 检测到的文本信息,包括文本行内容、置信度、文本行坐标以及文本行旋转纠正后的坐标,具体内容请点击左侧链接。
TextDetections []*TextDetection `json:"TextDetections,omitempty" name:"TextDetections" list`
// 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
Angel *float64 `json:"Angel,omitempty" name:"Angel"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGeneralAccurateOCRResponse ¶
func NewGeneralAccurateOCRResponse() (response *GeneralAccurateOCRResponse)
func (*GeneralAccurateOCRResponse) FromJsonString ¶
func (r *GeneralAccurateOCRResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GeneralAccurateOCRResponse) ToJsonString ¶
func (r *GeneralAccurateOCRResponse) ToJsonString() string
type GeneralBasicOCRRequest ¶
type GeneralBasicOCRRequest struct {
*tchttp.BaseRequest
// 图片/PDF的 Base64 值。
// 要求图片/PDF经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。
// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片/PDF的 Url 地址。
// 要求图片/PDF经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。
// 图片存储于腾讯云的 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\ara
// 可选值分别表示:
// 中英文混合、自动识别、日语、韩语、
// 西班牙语、法语、德语、葡萄牙语、
// 越南语、马来语、俄语、意大利语、
// 荷兰语、瑞典语、芬兰语、丹麦语、
// 挪威语、匈牙利语、泰语、拉丁语系、
// 阿拉伯语。
LanguageType *string `json:"LanguageType,omitempty" name:"LanguageType"`
// 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
IsPdf *bool `json:"IsPdf,omitempty" name:"IsPdf"`
// 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
PdfPageNumber *uint64 `json:"PdfPageNumber,omitempty" name:"PdfPageNumber"`
}
func NewGeneralBasicOCRRequest ¶
func NewGeneralBasicOCRRequest() (request *GeneralBasicOCRRequest)
func (*GeneralBasicOCRRequest) FromJsonString ¶
func (r *GeneralBasicOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GeneralBasicOCRRequest) ToJsonString ¶
func (r *GeneralBasicOCRRequest) ToJsonString() string
type GeneralBasicOCRResponse ¶
type GeneralBasicOCRResponse struct {
*tchttp.BaseResponse
Response *struct {
// 检测到的文本信息,包括文本行内容、置信度、文本行坐标以及文本行旋转纠正后的坐标,具体内容请点击左侧链接。
TextDetections []*TextDetection `json:"TextDetections,omitempty" name:"TextDetections" list`
// 检测到的语言类型,目前支持的语言类型参考入参LanguageType说明。
Language *string `json:"Language,omitempty" name:"Language"`
// 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
Angel *float64 `json:"Angel,omitempty" name:"Angel"`
// 图片为PDF时,返回PDF的总页数,默认为0
PdfPageSize *int64 `json:"PdfPageSize,omitempty" name:"PdfPageSize"`
// 唯一请求 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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GeneralBasicOCRResponse) ToJsonString ¶
func (r *GeneralBasicOCRResponse) ToJsonString() string
type GeneralEfficientOCRRequest ¶
type GeneralEfficientOCRRequest struct {
*tchttp.BaseRequest
// 图片的 Base64 值。
// 要求图片经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP格式。
// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片的 Url 地址。
// 要求图片经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP格式。
// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}
func NewGeneralEfficientOCRRequest ¶
func NewGeneralEfficientOCRRequest() (request *GeneralEfficientOCRRequest)
func (*GeneralEfficientOCRRequest) FromJsonString ¶
func (r *GeneralEfficientOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GeneralEfficientOCRRequest) ToJsonString ¶
func (r *GeneralEfficientOCRRequest) ToJsonString() string
type GeneralEfficientOCRResponse ¶
type GeneralEfficientOCRResponse struct {
*tchttp.BaseResponse
Response *struct {
// 检测到的文本信息,包括文本行内容、置信度、文本行坐标以及文本行旋转纠正后的坐标,具体内容请点击左侧链接。
TextDetections []*TextDetection `json:"TextDetections,omitempty" name:"TextDetections" list`
// 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
Angel *float64 `json:"Angel,omitempty" name:"Angel"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGeneralEfficientOCRResponse ¶
func NewGeneralEfficientOCRResponse() (response *GeneralEfficientOCRResponse)
func (*GeneralEfficientOCRResponse) FromJsonString ¶
func (r *GeneralEfficientOCRResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GeneralEfficientOCRResponse) ToJsonString ¶
func (r *GeneralEfficientOCRResponse) ToJsonString() string
type GeneralFastOCRRequest ¶
type GeneralFastOCRRequest 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"`
// 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
IsPdf *bool `json:"IsPdf,omitempty" name:"IsPdf"`
// 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
PdfPageNumber *uint64 `json:"PdfPageNumber,omitempty" name:"PdfPageNumber"`
}
func NewGeneralFastOCRRequest ¶
func NewGeneralFastOCRRequest() (request *GeneralFastOCRRequest)
func (*GeneralFastOCRRequest) FromJsonString ¶
func (r *GeneralFastOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GeneralFastOCRRequest) ToJsonString ¶
func (r *GeneralFastOCRRequest) ToJsonString() string
type GeneralFastOCRResponse ¶
type GeneralFastOCRResponse struct {
*tchttp.BaseResponse
Response *struct {
// 检测到的文本信息,具体内容请点击左侧链接。
TextDetections []*TextDetection `json:"TextDetections,omitempty" name:"TextDetections" list`
// 检测到的语言,目前支持的语种范围为:简体中文、繁体中文、英文、日文、韩文。未来将陆续新增对更多语种的支持。
// 返回结果含义为:zh - 中英混合,jap - 日文,kor - 韩文。
Language *string `json:"Language,omitempty" name:"Language"`
// 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负
Angel *float64 `json:"Angel,omitempty" name:"Angel"`
// 图片为PDF时,返回PDF的总页数,默认为0
PdfPageSize *int64 `json:"PdfPageSize,omitempty" name:"PdfPageSize"`
// 唯一请求 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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GeneralFastOCRResponse) ToJsonString ¶
func (r *GeneralFastOCRResponse) ToJsonString() string
type GeneralHandwritingOCRRequest ¶
type GeneralHandwritingOCRRequest 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"`
// 场景字段,默认不用填写。
// 可选值:only_hw 表示只输出手写体识别结果,过滤印刷体。
Scene *string `json:"Scene,omitempty" name:"Scene"`
// 是否开启单字的四点定位坐标输出,默认值为false。
EnableWordPolygon *bool `json:"EnableWordPolygon,omitempty" name:"EnableWordPolygon"`
}
func NewGeneralHandwritingOCRRequest ¶
func NewGeneralHandwritingOCRRequest() (request *GeneralHandwritingOCRRequest)
func (*GeneralHandwritingOCRRequest) FromJsonString ¶
func (r *GeneralHandwritingOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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`
// 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
Angel *float64 `json:"Angel,omitempty" name:"Angel"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGeneralHandwritingOCRResponse ¶
func NewGeneralHandwritingOCRResponse() (response *GeneralHandwritingOCRResponse)
func (*GeneralHandwritingOCRResponse) FromJsonString ¶
func (r *GeneralHandwritingOCRResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GeneralHandwritingOCRResponse) ToJsonString ¶
func (r *GeneralHandwritingOCRResponse) ToJsonString() string
type HKIDCardOCRRequest ¶
type HKIDCardOCRRequest struct {
*tchttp.BaseRequest
// 是否鉴伪。
DetectFake *bool `json:"DetectFake,omitempty" name:"DetectFake"`
// 是否返回人像照片。
ReturnHeadImage *bool `json:"ReturnHeadImage,omitempty" name:"ReturnHeadImage"`
// 图片的 Base64 值。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片的 Url 地址。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}
func NewHKIDCardOCRRequest ¶
func NewHKIDCardOCRRequest() (request *HKIDCardOCRRequest)
func (*HKIDCardOCRRequest) FromJsonString ¶
func (r *HKIDCardOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*HKIDCardOCRRequest) ToJsonString ¶
func (r *HKIDCardOCRRequest) ToJsonString() string
type HKIDCardOCRResponse ¶
type HKIDCardOCRResponse struct {
*tchttp.BaseResponse
Response *struct {
// 中文姓名
CnName *string `json:"CnName,omitempty" name:"CnName"`
// 英文姓名
EnName *string `json:"EnName,omitempty" name:"EnName"`
// 中文姓名对应电码
TelexCode *string `json:"TelexCode,omitempty" name:"TelexCode"`
// 性别 :“男M”或“女F”
Sex *string `json:"Sex,omitempty" name:"Sex"`
// 出生日期
Birthday *string `json:"Birthday,omitempty" name:"Birthday"`
// 永久性居民身份证。
// 0:非永久;
// 1:永久;
// -1:未知。
Permanent *int64 `json:"Permanent,omitempty" name:"Permanent"`
// 身份证号码
IdNum *string `json:"IdNum,omitempty" name:"IdNum"`
// 证件符号,出生日期下的符号,例如"***AZ"
Symbol *string `json:"Symbol,omitempty" name:"Symbol"`
// 首次签发日期
FirstIssueDate *string `json:"FirstIssueDate,omitempty" name:"FirstIssueDate"`
// 最近领用日期
CurrentIssueDate *string `json:"CurrentIssueDate,omitempty" name:"CurrentIssueDate"`
// 真假判断。
// 0:无法判断(图像模糊、不完整、反光、过暗等导致无法判断);
// 1:假;
// 2:真。
// 注意:此字段可能返回 null,表示取不到有效值。
FakeDetectResult *int64 `json:"FakeDetectResult,omitempty" name:"FakeDetectResult"`
// 人像照片Base64后的结果
// 注意:此字段可能返回 null,表示取不到有效值。
HeadImage *string `json:"HeadImage,omitempty" name:"HeadImage"`
// 多重告警码,当身份证是翻拍、复印、PS件时返回对应告警码。
// -9102:证照复印件告警
// -9103:证照翻拍告警
// -9104:证照PS告警
// -9105:证照防伪告警
WarningCode []*int64 `json:"WarningCode,omitempty" name:"WarningCode" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewHKIDCardOCRResponse ¶
func NewHKIDCardOCRResponse() (response *HKIDCardOCRResponse)
func (*HKIDCardOCRResponse) FromJsonString ¶
func (r *HKIDCardOCRResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*HKIDCardOCRResponse) ToJsonString ¶
func (r *HKIDCardOCRResponse) ToJsonString() string
type HmtResidentPermitOCRRequest ¶
type HmtResidentPermitOCRRequest struct {
*tchttp.BaseRequest
// 图片的 Base64 值。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片的 Url 地址。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
// FRONT:有照片的一面(人像面),
// BACK:无照片的一面(国徽面),
// 该参数如果不填或填错,将为您自动判断正反面。
CardSide *string `json:"CardSide,omitempty" name:"CardSide"`
}
func NewHmtResidentPermitOCRRequest ¶
func NewHmtResidentPermitOCRRequest() (request *HmtResidentPermitOCRRequest)
func (*HmtResidentPermitOCRRequest) FromJsonString ¶
func (r *HmtResidentPermitOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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"`
// 签发次数
VisaNum *string `json:"VisaNum,omitempty" name:"VisaNum"`
// 通行证号码
PassNo *string `json:"PassNo,omitempty" name:"PassNo"`
// 唯一请求 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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*HmtResidentPermitOCRResponse) ToJsonString ¶
func (r *HmtResidentPermitOCRResponse) ToJsonString() string
type IDCardOCRRequest ¶
type IDCardOCRRequest struct {
*tchttp.BaseRequest
// 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
// 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
// FRONT:身份证有照片的一面(人像面),
// BACK:身份证有国徽的一面(国徽面),
// 该参数如果不填,将为您自动判断身份证正反面。
CardSide *string `json:"CardSide,omitempty" name:"CardSide"`
// 以下可选字段均为bool 类型,默认false:
// CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)
// CropPortrait,人像照片裁剪(自动抠取身份证头像区域)
// CopyWarn,复印件告警
// BorderCheckWarn,边框和框内遮挡告警
// ReshootWarn,翻拍告警
// DetectPsWarn,PS检测告警
// TempIdWarn,临时身份证告警
// InvalidDateWarn,身份证有效日期不合法告警
// Quality,图片质量分数(评价图片的模糊程度)
// MultiCardDetect,是否开启多卡证检测
// ReflectWarn,是否开启反光检测
//
// 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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*IDCardOCRRequest) ToJsonString ¶
func (r *IDCardOCRRequest) ToJsonString() string
type IDCardOCRResponse ¶
type IDCardOCRResponse struct {
*tchttp.BaseResponse
Response *struct {
// 姓名(人像面)
Name *string `json:"Name,omitempty" name:"Name"`
// 性别(人像面)
Sex *string `json:"Sex,omitempty" name:"Sex"`
// 民族(人像面)
Nation *string `json:"Nation,omitempty" name:"Nation"`
// 出生日期(人像面)
Birth *string `json:"Birth,omitempty" name:"Birth"`
// 地址(人像面)
Address *string `json:"Address,omitempty" name:"Address"`
// 身份证号(人像面)
IdNum *string `json:"IdNum,omitempty" name:"IdNum"`
// 发证机关(国徽面)
Authority *string `json:"Authority,omitempty" name:"Authority"`
// 证件有效期(国徽面)
ValidDate *string `json:"ValidDate,omitempty" name:"ValidDate"`
// 扩展信息,不请求则不返回,具体输入参考示例3和示例4。
// IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;
// Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;
//
// Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0~100,分数越低越模糊,建议阈值≥50);
// BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0~100,分数越低边框遮挡可能性越低,建议阈值≥50);
//
// WarnInfos,告警信息,Code 告警码列表和释义:
// -9100 身份证有效日期不合法告警,
// -9101 身份证边框不完整告警,
// -9102 身份证复印件告警,
// -9103 身份证翻拍告警,
// -9105 身份证框内遮挡告警,
// -9104 临时身份证告警,
// -9106 身份证 PS 告警,
// -9107 身份证反光告警。
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InstitutionOCRResponse) ToJsonString ¶
func (r *InstitutionOCRResponse) ToJsonString() string
type InsuranceBillInfo ¶
type InsuranceBillInfo struct {
// 识别出的字段名称(关键字),支持以下字段:
// 【病案首页】
// 姓名、性别、出生日期、出院诊断、疾病编码、入院病情等。
// 【费用清单】
// 医疗参保人员类别、身份证号、入院方式、结账日期、项目、金额等。
// 【结算单】
// 名称、单价、数量、金额、医保内、医保外等。
// 【医疗发票】
// 姓名、性别、住院时间、收费项目、金额、合计等。
Name *string `json:"Name,omitempty" name:"Name"`
// 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
Value *string `json:"Value,omitempty" name:"Value"`
}
type InsuranceBillOCRRequest ¶
type InsuranceBillOCRRequest struct {
*tchttp.BaseRequest
// 图片的 Base64 值。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片的 Url 地址。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}
func NewInsuranceBillOCRRequest ¶
func NewInsuranceBillOCRRequest() (request *InsuranceBillOCRRequest)
func (*InsuranceBillOCRRequest) FromJsonString ¶
func (r *InsuranceBillOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InsuranceBillOCRResponse) ToJsonString ¶
func (r *InsuranceBillOCRResponse) ToJsonString() string
type InvoiceDetectInfo ¶
type InvoiceDetectInfo struct {
// 识别出的图片在混贴票据图片中的旋转角度。
Angle *float64 `json:"Angle,omitempty" name:"Angle"`
// 识别出的图片所属的票据类型。
// -1:未知类型
// 0:出租车发票
// 1:定额发票
// 2:火车票
// 3:增值税发票
// 4:客运限额发票
// 5:机票行程单
// 6:酒店账单
// 7:完税证明
// 8:通用机打发票
// 9:汽车票
// 10:轮船票
// 11:增值税发票(卷票 )
// 12:购车发票
// 13:过路过桥费发票
// 14:购物小票
Type *int64 `json:"Type,omitempty" name:"Type"`
// 识别出的图片在混贴票据图片中的位置信息。与Angel结合可以得出原图位置,组成RotatedRect((X+0.5\*Width,Y+0.5\*Height), (Width, Height), Angle),详情可参考OpenCV文档。
Rect *Rect `json:"Rect,omitempty" name:"Rect"`
// 入参 ReturnImage 为 True 时返回 Base64 编码后的图片。
// 注意:此字段可能返回 null,表示取不到有效值。
Image *string `json:"Image,omitempty" name:"Image"`
}
type InvoiceGeneralInfo ¶
type InvoiceGeneralInfo struct {
// 识别出的字段名称(关键字),支持以下字段:
// 发票代码、发票号码、日期、合计金额(小写)、合计金额(大写)、购买方识别号、销售方识别号、校验码、购买方名称、销售方名称、时间、种类、发票消费类型、省、市、是否有公司印章。
Name *string `json:"Name,omitempty" name:"Name"`
// 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
Value *string `json:"Value,omitempty" name:"Value"`
// 文本行在旋转纠正之后的图像中的像素坐标。
Rect *Rect `json:"Rect,omitempty" name:"Rect"`
}
type InvoiceGeneralOCRRequest ¶
type InvoiceGeneralOCRRequest struct {
*tchttp.BaseRequest
// 图片的 Base64 值。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片的 Url 地址。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}
func NewInvoiceGeneralOCRRequest ¶
func NewInvoiceGeneralOCRRequest() (request *InvoiceGeneralOCRRequest)
func (*InvoiceGeneralOCRRequest) FromJsonString ¶
func (r *InvoiceGeneralOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InvoiceGeneralOCRResponse) ToJsonString ¶
func (r *InvoiceGeneralOCRResponse) ToJsonString() string
type LicensePlateOCRRequest ¶
type LicensePlateOCRRequest 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 NewLicensePlateOCRRequest ¶
func NewLicensePlateOCRRequest() (request *LicensePlateOCRRequest)
func (*LicensePlateOCRRequest) FromJsonString ¶
func (r *LicensePlateOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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"`
// 文本行在原图片中的像素坐标框。
Rect *Rect `json:"Rect,omitempty" name:"Rect"`
// 唯一请求 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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*LicensePlateOCRResponse) ToJsonString ¶
func (r *LicensePlateOCRResponse) ToJsonString() string
type MLIDCardOCRRequest ¶
type MLIDCardOCRRequest struct {
*tchttp.BaseRequest
// 图片的 Base64 值。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片的 Url 地址。( 中国地区之外不支持这个字段 )
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
// 是否返回图片,默认false
RetImage *bool `json:"RetImage,omitempty" name:"RetImage"`
}
func NewMLIDCardOCRRequest ¶
func NewMLIDCardOCRRequest() (request *MLIDCardOCRRequest)
func (*MLIDCardOCRRequest) FromJsonString ¶
func (r *MLIDCardOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*MLIDCardOCRRequest) ToJsonString ¶
func (r *MLIDCardOCRRequest) ToJsonString() string
type MLIDCardOCRResponse ¶
type MLIDCardOCRResponse struct {
*tchttp.BaseResponse
Response *struct {
// 身份证号
ID *string `json:"ID,omitempty" name:"ID"`
// 姓名
Name *string `json:"Name,omitempty" name:"Name"`
// 地址
Address *string `json:"Address,omitempty" name:"Address"`
// 性别
Sex *string `json:"Sex,omitempty" name:"Sex"`
// 告警码
// -9103 证照翻拍告警
// -9102 证照复印件告警
// -9106 证件遮挡告警
Warn []*int64 `json:"Warn,omitempty" name:"Warn" list`
// 证件图片
Image *string `json:"Image,omitempty" name:"Image"`
// 扩展字段:
// {
// ID:{
// Confidence:0.9999
// },
// Name:{
// Confidence:0.9996
// }
// }
AdvancedInfo *string `json:"AdvancedInfo,omitempty" name:"AdvancedInfo"`
// 证件类型
// MyKad 身份证
// MyPR 永居证
// MyTentera 军官证
// MyKAS 临时身份证
// POLIS 警察
// IKAD 劳工证
Type *string `json:"Type,omitempty" name:"Type"`
// 出生日期(目前该字段仅支持IKAD劳工证)
Birthday *string `json:"Birthday,omitempty" name:"Birthday"`
// 唯一请求 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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*MLIDCardOCRResponse) ToJsonString ¶
func (r *MLIDCardOCRResponse) ToJsonString() string
type MLIDPassportOCRRequest ¶
type MLIDPassportOCRRequest struct {
*tchttp.BaseRequest
// 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 是否返回图片,默认false
RetImage *bool `json:"RetImage,omitempty" name:"RetImage"`
}
func NewMLIDPassportOCRRequest ¶
func NewMLIDPassportOCRRequest() (request *MLIDPassportOCRRequest)
func (*MLIDPassportOCRRequest) FromJsonString ¶
func (r *MLIDPassportOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*MixedInvoiceDetectResponse) ToJsonString ¶
func (r *MixedInvoiceDetectResponse) ToJsonString() string
type MixedInvoiceItem ¶
type MixedInvoiceItem struct {
// 识别结果。
// OK:表示识别成功;FailedOperation.UnsupportedInvioce:表示不支持识别;
// FailedOperation.UnKnowError:表示识别失败;
// 其它错误码见各个票据接口的定义。
Code *string `json:"Code,omitempty" name:"Code"`
// 识别出的图片所属的票据类型。
// -1:未知类型
// 0:出租车发票
// 1:定额发票
// 2:火车票
// 3:增值税发票
// 5:机票行程单
// 8:通用机打发票
// 9:汽车票
// 10:轮船票
// 11:增值税发票(卷票 )
// 12:购车发票
// 13:过路过桥费发票
Type *int64 `json:"Type,omitempty" name:"Type"`
// 识别出的图片在混贴票据图片中的位置信息。与Angel结合可以得出原图位置,组成RotatedRect((X+0.5\*Width,Y+0.5\*Height), (Width, Height), Angle),详情可参考OpenCV文档。
Rect *Rect `json:"Rect,omitempty" name:"Rect"`
// 识别出的图片在混贴票据图片中的旋转角度。
Angle *float64 `json:"Angle,omitempty" name:"Angle"`
// 识别到的内容。
SingleInvoiceInfos []*SingleInvoiceInfo `json:"SingleInvoiceInfos,omitempty" name:"SingleInvoiceInfos" list`
}
type MixedInvoiceOCRRequest ¶
type MixedInvoiceOCRRequest struct {
*tchttp.BaseRequest
// 图片的 Base64 值。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经Base64编码后不超过 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"`
// 需要识别的票据类型列表,为空或不填表示识别全部类型。
// 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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PermitOCRResponse) ToJsonString ¶
func (r *PermitOCRResponse) ToJsonString() string
type Polygon ¶
type Polygon struct {
// 左上顶点坐标
LeftTop *Coord `json:"LeftTop,omitempty" name:"LeftTop"`
// 右上顶点坐标
RightTop *Coord `json:"RightTop,omitempty" name:"RightTop"`
// 右下顶点坐标
RightBottom *Coord `json:"RightBottom,omitempty" name:"RightBottom"`
// 左下顶点坐标
LeftBottom *Coord `json:"LeftBottom,omitempty" name:"LeftBottom"`
}
type ProductDataRecord ¶
type ProductDataRecord struct {
// 产品名称
ProductName *string `json:"ProductName,omitempty" name:"ProductName"`
// 产品名称(英文)
EnName *string `json:"EnName,omitempty" name:"EnName"`
// 品牌名称
BrandName *string `json:"BrandName,omitempty" name:"BrandName"`
// 规格型号
Type *string `json:"Type,omitempty" name:"Type"`
// 宽度,单位毫米
Width *string `json:"Width,omitempty" name:"Width"`
// 高度,单位毫米
Height *string `json:"Height,omitempty" name:"Height"`
// 深度,单位毫米
Depth *string `json:"Depth,omitempty" name:"Depth"`
// 关键字
KeyWord *string `json:"KeyWord,omitempty" name:"KeyWord"`
// 简短描述
Description *string `json:"Description,omitempty" name:"Description"`
// 图片链接
ImageLink []*string `json:"ImageLink,omitempty" name:"ImageLink" list`
// 厂家名称
ManufacturerName *string `json:"ManufacturerName,omitempty" name:"ManufacturerName"`
// 厂家地址
ManufacturerAddress *string `json:"ManufacturerAddress,omitempty" name:"ManufacturerAddress"`
// 企业社会信用代码
FirmCode *string `json:"FirmCode,omitempty" name:"FirmCode"`
// 表示数据查询状态
// checkResult 状态说明
// 1 经查,该商品条码已在中国物品编码中心注册
// 2 经查,该厂商识别代码已在中国物品编码中心注册,但编码信息未按规定通报。
// 3 经查,该厂商识别代码已于xxxxx注销,请关注产品生产日期。
// 4 经查,该企业以及条码未经条码中心注册,属于违法使用
// -1 经查,该商品条码被冒用
// -2 经查,该厂商识别代码已在中国物品编码中心注册,但该产品已经下市
// S001 未找到该厂商识别代码的注册信息。
// S002 该厂商识别代码已经在GS1注册,但编码信息未通报
// S003 该商品条码已在GS1通报
// S004 该商品条码已注销
// S005 数字不正确。GS1前缀(3位国家/地区代码)用于特殊用途。
// E001 完整性失败:此GTIN的长度无效。
// E002 完整性失败:校验位不正确。
// E003 完整性失败:字符串包含字母数字字符。
// E004 数字不正确。GS1前缀(3位国家/地区代码)不存在。
// E005 数字不正确。GS1前缀(3位国家/地区代码)用于特殊用途。
// E006 数字不正确。尚未分配该GS1公司前缀。
// E008 经查,该企业厂商识别代码以及条码尚未通报
CheckResult *string `json:"CheckResult,omitempty" name:"CheckResult"`
// UNSPSC分类码
CategoryCode *string `json:"CategoryCode,omitempty" name:"CategoryCode"`
}
type PropOwnerCertOCRRequest ¶
type PropOwnerCertOCRRequest struct {
*tchttp.BaseRequest
// 图片的 Base64 值。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片的 Url 地址。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}
func NewPropOwnerCertOCRRequest ¶
func NewPropOwnerCertOCRRequest() (request *PropOwnerCertOCRRequest)
func (*PropOwnerCertOCRRequest) FromJsonString ¶
func (r *PropOwnerCertOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PropOwnerCertOCRResponse) ToJsonString ¶
func (r *PropOwnerCertOCRResponse) ToJsonString() string
type QrcodeImgSize ¶
type QrcodeOCRRequest ¶
type QrcodeOCRRequest struct {
*tchttp.BaseRequest
// 图片的 Base64 值。要求图片经Base64编码后不超过 3M,支持PNG、JPG、JPEG格式。
// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片的 Url 地址。要求图片经Base64编码后不超过 3M,支持PNG、JPG、JPEG格式。
// 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}
func NewQrcodeOCRRequest ¶
func NewQrcodeOCRRequest() (request *QrcodeOCRRequest)
func (*QrcodeOCRRequest) FromJsonString ¶
func (r *QrcodeOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*QrcodeOCRResponse) ToJsonString ¶
func (r *QrcodeOCRResponse) ToJsonString() string
type QrcodePositionObj ¶
type QrcodePositionObj struct {
// 左上顶点坐标(如果是条形码,X和Y都为-1)
LeftTop *Coord `json:"LeftTop,omitempty" name:"LeftTop"`
// 右上顶点坐标(如果是条形码,X和Y都为-1)
RightTop *Coord `json:"RightTop,omitempty" name:"RightTop"`
// 右下顶点坐标(如果是条形码,X和Y都为-1)
RightBottom *Coord `json:"RightBottom,omitempty" name:"RightBottom"`
// 左下顶点坐标(如果是条形码,X和Y都为-1)
LeftBottom *Coord `json:"LeftBottom,omitempty" name:"LeftBottom"`
}
type QrcodeResultsInfo ¶
type QrcodeResultsInfo struct {
// 类型(二维码、条形码)
TypeName *string `json:"TypeName,omitempty" name:"TypeName"`
// 二维码/条形码包含的地址
Url *string `json:"Url,omitempty" name:"Url"`
// 二维码/条形码坐标(二维码会返回位置坐标,条形码暂不返回位置坐标,因此默认X和Y返回值均为-1)
Position *QrcodePositionObj `json:"Position,omitempty" name:"Position"`
}
type QueryBarCodeRequest ¶
type QueryBarCodeRequest struct {
*tchttp.BaseRequest
// 条形码
BarCode *string `json:"BarCode,omitempty" name:"BarCode"`
}
func NewQueryBarCodeRequest ¶
func NewQueryBarCodeRequest() (request *QueryBarCodeRequest)
func (*QueryBarCodeRequest) FromJsonString ¶
func (r *QueryBarCodeRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*QueryBarCodeRequest) ToJsonString ¶
func (r *QueryBarCodeRequest) ToJsonString() string
type QueryBarCodeResponse ¶
type QueryBarCodeResponse struct {
*tchttp.BaseResponse
Response *struct {
// 条码
BarCode *string `json:"BarCode,omitempty" name:"BarCode"`
// 条码信息数组
ProductDataRecords []*ProductDataRecord `json:"ProductDataRecords,omitempty" name:"ProductDataRecords" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewQueryBarCodeResponse ¶
func NewQueryBarCodeResponse() (response *QueryBarCodeResponse)
func (*QueryBarCodeResponse) FromJsonString ¶
func (r *QueryBarCodeResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*QueryBarCodeResponse) ToJsonString ¶
func (r *QueryBarCodeResponse) ToJsonString() string
type QuestionBlockObj ¶
type QuestionBlockObj struct {
// 数学试题识别结构化信息数组
QuestionArr []*QuestionObj `json:"QuestionArr,omitempty" name:"QuestionArr" list`
// 题目主体区域检测框在图片中的像素坐标
QuestionBboxCoord *Rect `json:"QuestionBboxCoord,omitempty" name:"QuestionBboxCoord"`
}
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"`
// 示意图检测框在的图片中的像素坐标
QuestionImageCoords []*Rect `json:"QuestionImageCoords,omitempty" name:"QuestionImageCoords" list`
}
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*QuotaInvoiceOCRResponse) ToJsonString ¶
func (r *QuotaInvoiceOCRResponse) ToJsonString() string
type RecognizeTableOCRRequest ¶
type RecognizeTableOCRRequest struct {
*tchttp.BaseRequest
// 图片/PDF的 Base64 值。
// 要求图片/PDF经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。
// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片/PDF的 Url 地址。
// 要求图片/PDF经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。
// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
// 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
IsPdf *bool `json:"IsPdf,omitempty" name:"IsPdf"`
// 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
PdfPageNumber *uint64 `json:"PdfPageNumber,omitempty" name:"PdfPageNumber"`
// 语言,zh:中英文(默认)jap:日文
TableLanguage *string `json:"TableLanguage,omitempty" name:"TableLanguage"`
}
func NewRecognizeTableOCRRequest ¶
func NewRecognizeTableOCRRequest() (request *RecognizeTableOCRRequest)
func (*RecognizeTableOCRRequest) FromJsonString ¶
func (r *RecognizeTableOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RecognizeTableOCRRequest) ToJsonString ¶
func (r *RecognizeTableOCRRequest) ToJsonString() string
type RecognizeTableOCRResponse ¶
type RecognizeTableOCRResponse struct {
*tchttp.BaseResponse
Response *struct {
// 检测到的文本信息,具体内容请点击左侧链接。
TableDetections []*TableDetectInfo `json:"TableDetections,omitempty" name:"TableDetections" list`
// Base64 编码后的 Excel 数据。
Data *string `json:"Data,omitempty" name:"Data"`
// 图片为PDF时,返回PDF的总页数,默认为0
PdfPageSize *int64 `json:"PdfPageSize,omitempty" name:"PdfPageSize"`
// 图片旋转角度(角度制),文本的水平
// 方向为 0°;顺时针为正,逆时针为负
Angle *float64 `json:"Angle,omitempty" name:"Angle"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewRecognizeTableOCRResponse ¶
func NewRecognizeTableOCRResponse() (response *RecognizeTableOCRResponse)
func (*RecognizeTableOCRResponse) FromJsonString ¶
func (r *RecognizeTableOCRResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RecognizeTableOCRResponse) ToJsonString ¶
func (r *RecognizeTableOCRResponse) ToJsonString() string
type RecognizeThaiIDCardOCRRequest ¶
type RecognizeThaiIDCardOCRRequest 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"`
}
func NewRecognizeThaiIDCardOCRRequest ¶
func NewRecognizeThaiIDCardOCRRequest() (request *RecognizeThaiIDCardOCRRequest)
func (*RecognizeThaiIDCardOCRRequest) FromJsonString ¶
func (r *RecognizeThaiIDCardOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RecognizeThaiIDCardOCRRequest) ToJsonString ¶
func (r *RecognizeThaiIDCardOCRRequest) ToJsonString() string
type RecognizeThaiIDCardOCRResponse ¶
type RecognizeThaiIDCardOCRResponse struct {
*tchttp.BaseResponse
Response *struct {
// 身份证号码
ID *string `json:"ID,omitempty" name:"ID"`
// 泰文姓名
ThaiName *string `json:"ThaiName,omitempty" name:"ThaiName"`
// 英文姓名
EnFirstName *string `json:"EnFirstName,omitempty" name:"EnFirstName"`
// 地址
Address *string `json:"Address,omitempty" name:"Address"`
// 出生日期
Birthday *string `json:"Birthday,omitempty" name:"Birthday"`
// 首次领用日期
IssueDate *string `json:"IssueDate,omitempty" name:"IssueDate"`
// 签发日期
ExpirationDate *string `json:"ExpirationDate,omitempty" name:"ExpirationDate"`
// 英文姓名
EnLastName *string `json:"EnLastName,omitempty" name:"EnLastName"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewRecognizeThaiIDCardOCRResponse ¶
func NewRecognizeThaiIDCardOCRResponse() (response *RecognizeThaiIDCardOCRResponse)
func (*RecognizeThaiIDCardOCRResponse) FromJsonString ¶
func (r *RecognizeThaiIDCardOCRResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RecognizeThaiIDCardOCRResponse) ToJsonString ¶
func (r *RecognizeThaiIDCardOCRResponse) 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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ResidenceBookletOCRResponse) ToJsonString ¶
func (r *ResidenceBookletOCRResponse) ToJsonString() string
type RideHailingDriverLicenseOCRRequest ¶
type RideHailingDriverLicenseOCRRequest struct {
*tchttp.BaseRequest
// 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
// 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}
func NewRideHailingDriverLicenseOCRRequest ¶
func NewRideHailingDriverLicenseOCRRequest() (request *RideHailingDriverLicenseOCRRequest)
func (*RideHailingDriverLicenseOCRRequest) FromJsonString ¶
func (r *RideHailingDriverLicenseOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RideHailingDriverLicenseOCRRequest) ToJsonString ¶
func (r *RideHailingDriverLicenseOCRRequest) ToJsonString() string
type RideHailingDriverLicenseOCRResponse ¶
type RideHailingDriverLicenseOCRResponse struct {
*tchttp.BaseResponse
Response *struct {
// 姓名
Name *string `json:"Name,omitempty" name:"Name"`
// 证号,对应网约车驾驶证字段:证号/从业资格证号/驾驶员证号/身份证号
LicenseNumber *string `json:"LicenseNumber,omitempty" name:"LicenseNumber"`
// 有效起始日期
StartDate *string `json:"StartDate,omitempty" name:"StartDate"`
// 有效期截止时间,对应网约车驾驶证字段:有效期至/营运期限止
EndDate *string `json:"EndDate,omitempty" name:"EndDate"`
// 初始发证日期,对应网约车驾驶证字段:初始领证日期/发证日期
ReleaseDate *string `json:"ReleaseDate,omitempty" name:"ReleaseDate"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewRideHailingDriverLicenseOCRResponse ¶
func NewRideHailingDriverLicenseOCRResponse() (response *RideHailingDriverLicenseOCRResponse)
func (*RideHailingDriverLicenseOCRResponse) FromJsonString ¶
func (r *RideHailingDriverLicenseOCRResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RideHailingDriverLicenseOCRResponse) ToJsonString ¶
func (r *RideHailingDriverLicenseOCRResponse) ToJsonString() string
type RideHailingTransportLicenseOCRRequest ¶
type RideHailingTransportLicenseOCRRequest struct {
*tchttp.BaseRequest
// 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
// 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}
func NewRideHailingTransportLicenseOCRRequest ¶
func NewRideHailingTransportLicenseOCRRequest() (request *RideHailingTransportLicenseOCRRequest)
func (*RideHailingTransportLicenseOCRRequest) FromJsonString ¶
func (r *RideHailingTransportLicenseOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RideHailingTransportLicenseOCRRequest) ToJsonString ¶
func (r *RideHailingTransportLicenseOCRRequest) ToJsonString() string
type RideHailingTransportLicenseOCRResponse ¶
type RideHailingTransportLicenseOCRResponse struct {
*tchttp.BaseResponse
Response *struct {
// 交运管许可字号。
OperationLicenseNumber *string `json:"OperationLicenseNumber,omitempty" name:"OperationLicenseNumber"`
// 车辆所有人,对应网约车运输证字段:车辆所有人/车主名称/业户名称。
VehicleOwner *string `json:"VehicleOwner,omitempty" name:"VehicleOwner"`
// 车牌号码,对应网约车运输证字段:车牌号码/车辆号牌。
VehicleNumber *string `json:"VehicleNumber,omitempty" name:"VehicleNumber"`
// 有效起始日期。
StartDate *string `json:"StartDate,omitempty" name:"StartDate"`
// 有效期截止时间,对应网约车运输证字段:有效期至/营运期限止。
EndDate *string `json:"EndDate,omitempty" name:"EndDate"`
// 初始发证日期,对应网约车运输证字段:初始领证日期/发证日期。
ReleaseDate *string `json:"ReleaseDate,omitempty" name:"ReleaseDate"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewRideHailingTransportLicenseOCRResponse ¶
func NewRideHailingTransportLicenseOCRResponse() (response *RideHailingTransportLicenseOCRResponse)
func (*RideHailingTransportLicenseOCRResponse) FromJsonString ¶
func (r *RideHailingTransportLicenseOCRResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RideHailingTransportLicenseOCRResponse) ToJsonString ¶
func (r *RideHailingTransportLicenseOCRResponse) ToJsonString() string
type SealOCRRequest ¶
type SealOCRRequest struct {
*tchttp.BaseRequest
// 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
// 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}
func NewSealOCRRequest ¶
func NewSealOCRRequest() (request *SealOCRRequest)
func (*SealOCRRequest) FromJsonString ¶
func (r *SealOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SealOCRRequest) ToJsonString ¶
func (r *SealOCRRequest) ToJsonString() string
type SealOCRResponse ¶
type SealOCRResponse struct {
*tchttp.BaseResponse
Response *struct {
// 印章内容
SealBody *string `json:"SealBody,omitempty" name:"SealBody"`
// 印章坐标
Location *Rect `json:"Location,omitempty" name:"Location"`
// 其它文本内容
OtherTexts []*string `json:"OtherTexts,omitempty" name:"OtherTexts" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewSealOCRResponse ¶
func NewSealOCRResponse() (response *SealOCRResponse)
func (*SealOCRResponse) FromJsonString ¶
func (r *SealOCRResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SealOCRResponse) ToJsonString ¶
func (r *SealOCRResponse) ToJsonString() string
type ShipInvoiceInfo ¶
type ShipInvoiceInfo struct {
// 识别出的字段名称(关键字),支持以下字段:
// 发票代码、发票号码、日期、票价、始发地、目的地、姓名、时间、发票消费类型、省、市、币种。
Name *string `json:"Name,omitempty" name:"Name"`
// 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
Value *string `json:"Value,omitempty" name:"Value"`
// 文本行在旋转纠正之后的图像中的像素坐标。
Rect *Rect `json:"Rect,omitempty" name:"Rect"`
}
type ShipInvoiceOCRRequest ¶
type ShipInvoiceOCRRequest struct {
*tchttp.BaseRequest
// 图片的 Base64 值。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片的 Url 地址。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}
func NewShipInvoiceOCRRequest ¶
func NewShipInvoiceOCRRequest() (request *ShipInvoiceOCRRequest)
func (*ShipInvoiceOCRRequest) FromJsonString ¶
func (r *ShipInvoiceOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ShipInvoiceOCRResponse) ToJsonString ¶
func (r *ShipInvoiceOCRResponse) ToJsonString() string
type SingleInvoiceInfo ¶
type TableCell ¶
type TableCell 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"`
// 单元格内识别出的字符串文本,若文本存在多行,以换行符"\n"隔开
Text *string `json:"Text,omitempty" name:"Text"`
// 单元格类型
Type *string `json:"Type,omitempty" name:"Type"`
// 单元格置信度
Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"`
// 单元格在图像中的四点坐标
Polygon []*Coord `json:"Polygon,omitempty" name:"Polygon" list`
// 此字段为扩展字段
// 注意:此字段可能返回 null,表示取不到有效值。
AdvancedInfo *string `json:"AdvancedInfo,omitempty" name:"AdvancedInfo"`
// 单元格文本属性
Contents []*CellContent `json:"Contents,omitempty" name:"Contents" list`
}
type TableDetectInfo ¶
type TableDetectInfo struct {
// 单元格内容
// 注意:此字段可能返回 null,表示取不到有效值。
Cells []*TableCell `json:"Cells,omitempty" name:"Cells" list`
// 表格标题
// 注意:此字段可能返回 null,表示取不到有效值。
Titles []*TableTitle `json:"Titles,omitempty" name:"Titles" list`
// 图像中的文本块类型,0 为非表格文本,
// 1 为有线表格,2 为无线表格
// (接口暂不支持日文无线表格识别,若传入日文无线表格,返回0)
// 注意:此字段可能返回 null,表示取不到有效值。
Type *int64 `json:"Type,omitempty" name:"Type"`
// 表格主体四个顶点坐标(依次为左上角,
// 右上角,右下角,左下角)
// 注意:此字段可能返回 null,表示取不到有效值。
TableCoordPoint []*Coord `json:"TableCoordPoint,omitempty" name:"TableCoordPoint" list`
}
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*TableOCRResponse) ToJsonString ¶
func (r *TableOCRResponse) ToJsonString() string
type TableTitle ¶
type TableTitle struct {
// 表格名称
// 注意:此字段可能返回 null,表示取不到有效值。
Text *string `json:"Text,omitempty" name:"Text"`
}
type TaxiInvoiceOCRRequest ¶
type TaxiInvoiceOCRRequest 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 NewTaxiInvoiceOCRRequest ¶
func NewTaxiInvoiceOCRRequest() (request *TaxiInvoiceOCRRequest)
func (*TaxiInvoiceOCRRequest) FromJsonString ¶
func (r *TaxiInvoiceOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*TaxiInvoiceOCRResponse) ToJsonString ¶
func (r *TaxiInvoiceOCRResponse) ToJsonString() string
type TextArithmetic ¶
type TextArithmetic struct {
// 识别出的文本行内容
DetectedText *string `json:"DetectedText,omitempty" name:"DetectedText"`
// 算式运算结果,true-正确 false-错误或非法参数
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"`
// 错题推荐答案,算式运算结果正确返回为"",算式运算结果错误返回推荐答案 (注:暂不支持多个关系运算符(如1<10<7)、无关系运算符(如frac(1,2)+frac(2,3))、单位换算(如1元=100角)错题的推荐答案返回)
Answer *string `json:"Answer,omitempty" name:"Answer"`
}
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*TextDetectResponse) ToJsonString ¶
func (r *TextDetectResponse) ToJsonString() string
type TextDetection ¶
type TextDetection struct {
// 识别出的文本行内容
DetectedText *string `json:"DetectedText,omitempty" name:"DetectedText"`
// 置信度 0 ~100
Confidence *int64 `json:"Confidence,omitempty" name:"Confidence"`
// 文本行坐标,以四个顶点坐标表示
// 注意:此字段可能返回 null,表示取不到有效值。
Polygon []*Coord `json:"Polygon,omitempty" name:"Polygon" list`
// 此字段为扩展字段。
// GeneralBasicOcr接口返回段落信息Parag,包含ParagNo。
AdvancedInfo *string `json:"AdvancedInfo,omitempty" name:"AdvancedInfo"`
// 文本行在旋转纠正之后的图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height)
ItemPolygon *ItemCoord `json:"ItemPolygon,omitempty" name:"ItemPolygon"`
}
type TextDetectionEn ¶
type TextDetectionEn struct {
// 识别出的文本行内容。
DetectedText *string `json:"DetectedText,omitempty" name:"DetectedText"`
// 置信度 0 ~100。
Confidence *int64 `json:"Confidence,omitempty" name:"Confidence"`
// 文本行在原图中的四点坐标。
// 注意:此字段可能返回 null,表示取不到有效值。
Polygon []*Coord `json:"Polygon,omitempty" name:"Polygon" list`
// 此字段为扩展字段。目前EnglishOCR接口返回内容为空。
AdvancedInfo *string `json:"AdvancedInfo,omitempty" name:"AdvancedInfo"`
// 英文单词在原图中的四点坐标。
WordCoordPoint []*WordCoordPoint `json:"WordCoordPoint,omitempty" name:"WordCoordPoint" list`
// 候选字符集(包含候选字Character以及置信度Confidence)。
CandWord []*CandWord `json:"CandWord,omitempty" name:"CandWord" list`
// 识别出来的单词信息(包括单词Character和单词置信度confidence)
Words []*Words `json:"Words,omitempty" name:"Words" list`
}
type TextEduPaper ¶
type TextEduPaper struct {
// 识别出的字段名称(关键字)
Item *string `json:"Item,omitempty" name:"Item"`
// 识别出的字段名称对应的值,也就是字段Item对应的字符串结果
DetectedText *string `json:"DetectedText,omitempty" name:"DetectedText"`
// 文本行在旋转纠正之后的图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height)
Itemcoord *ItemCoord `json:"Itemcoord,omitempty" name:"Itemcoord"`
}
type TextFormula ¶
type TextFormula struct {
// 识别出的文本行内容
DetectedText *string `json:"DetectedText,omitempty" name:"DetectedText"`
}
type TextGeneralHandwriting ¶
type TextGeneralHandwriting struct {
// 识别出的文本行内容
DetectedText *string `json:"DetectedText,omitempty" name:"DetectedText"`
// 置信度 0 - 100
Confidence *int64 `json:"Confidence,omitempty" name:"Confidence"`
// 文本行坐标,以四个顶点坐标表示
Polygon []*Coord `json:"Polygon,omitempty" name:"Polygon" list`
// 此字段为扩展字段。
// 能返回文本行的段落信息,例如:{\"Parag\":{\"ParagNo\":2}},
// 其中ParagNo为段落行,从1开始。
AdvancedInfo *string `json:"AdvancedInfo,omitempty" name:"AdvancedInfo"`
// 字的坐标数组,以四个顶点坐标表示
// 注意:此字段可能返回 null,表示取不到有效值。
WordPolygon []*Polygon `json:"WordPolygon,omitempty" name:"WordPolygon" list`
}
type TextTable ¶
type TextTable struct {
// 单元格左上角的列索引
ColTl *int64 `json:"ColTl,omitempty" name:"ColTl"`
// 单元格左上角的行索引
RowTl *int64 `json:"RowTl,omitempty" name:"RowTl"`
// 单元格右下角的列索引
ColBr *int64 `json:"ColBr,omitempty" name:"ColBr"`
// 单元格右下角的行索引
RowBr *int64 `json:"RowBr,omitempty" name:"RowBr"`
// 单元格文字
Text *string `json:"Text,omitempty" name:"Text"`
// 单元格类型,包含body(表格主体)、header(表头)、footer(表尾)三种
Type *string `json:"Type,omitempty" name:"Type"`
// 置信度 0 ~100
Confidence *int64 `json:"Confidence,omitempty" name:"Confidence"`
// 文本行坐标,以四个顶点坐标表示
Polygon []*Coord `json:"Polygon,omitempty" name:"Polygon" list`
// 此字段为扩展字段
AdvancedInfo *string `json:"AdvancedInfo,omitempty" name:"AdvancedInfo"`
}
type TextVatInvoice ¶
type TextVatInvoice struct {
// 识别出的字段名称(关键字)。支持以下字段的识别:
// 发票代码、 发票号码、 打印发票代码、 打印发票号码、 开票日期、 购买方识别号、 小写金额、 价税合计(大写)、 销售方识别号、 校验码、 购买方名称、 销售方名称、 税额、 复核、 联次名称、 备注、 联次、 密码区、 开票人、 收款人、 (货物或应税劳务、服务名称)、省、 市、 服务类型、 通行费标志、 是否代开、 是否收购、 合计金额、 是否有公司印章、 发票消费类型、 车船税、 机器编号、 成品油标志、 税率、 合计税额、 (购买方地址、电话)、 (销售方地址、电话)、 单价、 金额、 销售方开户行及账号、 购买方开户行及账号、 规格型号、 发票名称、 单位、 数量、 校验码备选、 校验码后六位备选、发票号码备选。
Name *string `json:"Name,omitempty" name:"Name"`
// 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
Value *string `json:"Value,omitempty" name:"Value"`
// 字段在原图中的中的四点坐标。
// 注意:此字段可能返回 null,表示取不到有效值。
// 注意:此字段可能返回 null,表示取不到有效值。
Polygon *Polygon `json:"Polygon,omitempty" name:"Polygon"`
}
type TextVehicleBack ¶
type TextVehicleBack struct {
// 号牌号码
// 注意:此字段可能返回 null,表示取不到有效值。
PlateNo *string `json:"PlateNo,omitempty" name:"PlateNo"`
// 档案编号
// 注意:此字段可能返回 null,表示取不到有效值。
FileNo *string `json:"FileNo,omitempty" name:"FileNo"`
// 核定人数
// 注意:此字段可能返回 null,表示取不到有效值。
AllowNum *string `json:"AllowNum,omitempty" name:"AllowNum"`
// 总质量
// 注意:此字段可能返回 null,表示取不到有效值。
TotalMass *string `json:"TotalMass,omitempty" name:"TotalMass"`
// 整备质量
// 注意:此字段可能返回 null,表示取不到有效值。
CurbWeight *string `json:"CurbWeight,omitempty" name:"CurbWeight"`
// 核定载质量
// 注意:此字段可能返回 null,表示取不到有效值。
LoadQuality *string `json:"LoadQuality,omitempty" name:"LoadQuality"`
// 外廓尺寸
// 注意:此字段可能返回 null,表示取不到有效值。
ExternalSize *string `json:"ExternalSize,omitempty" name:"ExternalSize"`
// 备注
// 注意:此字段可能返回 null,表示取不到有效值。
Marks *string `json:"Marks,omitempty" name:"Marks"`
// 检验记录
// 注意:此字段可能返回 null,表示取不到有效值。
Record *string `json:"Record,omitempty" name:"Record"`
// 准牵引总质量
// 注意:此字段可能返回 null,表示取不到有效值。
TotalQuasiMass *string `json:"TotalQuasiMass,omitempty" name:"TotalQuasiMass"`
}
type TextVehicleFront ¶
type TextVehicleFront struct {
// 号牌号码
// 注意:此字段可能返回 null,表示取不到有效值。
PlateNo *string `json:"PlateNo,omitempty" name:"PlateNo"`
// 车辆类型
// 注意:此字段可能返回 null,表示取不到有效值。
VehicleType *string `json:"VehicleType,omitempty" name:"VehicleType"`
// 所有人
// 注意:此字段可能返回 null,表示取不到有效值。
Owner *string `json:"Owner,omitempty" name:"Owner"`
// 住址
// 注意:此字段可能返回 null,表示取不到有效值。
Address *string `json:"Address,omitempty" name:"Address"`
// 使用性质
// 注意:此字段可能返回 null,表示取不到有效值。
UseCharacter *string `json:"UseCharacter,omitempty" name:"UseCharacter"`
// 品牌型号
// 注意:此字段可能返回 null,表示取不到有效值。
Model *string `json:"Model,omitempty" name:"Model"`
// 车辆识别代号
// 注意:此字段可能返回 null,表示取不到有效值。
Vin *string `json:"Vin,omitempty" name:"Vin"`
// 发动机号码
// 注意:此字段可能返回 null,表示取不到有效值。
EngineNo *string `json:"EngineNo,omitempty" name:"EngineNo"`
// 注册日期
// 注意:此字段可能返回 null,表示取不到有效值。
RegisterDate *string `json:"RegisterDate,omitempty" name:"RegisterDate"`
// 发证日期
// 注意:此字段可能返回 null,表示取不到有效值。
IssueDate *string `json:"IssueDate,omitempty" name:"IssueDate"`
// 印章
// 注意:此字段可能返回 null,表示取不到有效值。
Seal *string `json:"Seal,omitempty" name:"Seal"`
}
type TextWaybill ¶
type TextWaybill struct {
// 收件人姓名
RecName *WaybillObj `json:"RecName,omitempty" name:"RecName"`
// 收件人手机号
RecNum *WaybillObj `json:"RecNum,omitempty" name:"RecNum"`
// 收件人地址
RecAddr *WaybillObj `json:"RecAddr,omitempty" name:"RecAddr"`
// 寄件人姓名
SenderName *WaybillObj `json:"SenderName,omitempty" name:"SenderName"`
// 寄件人手机号
SenderNum *WaybillObj `json:"SenderNum,omitempty" name:"SenderNum"`
// 寄件人地址
SenderAddr *WaybillObj `json:"SenderAddr,omitempty" name:"SenderAddr"`
// 运单号
WaybillNum *WaybillObj `json:"WaybillNum,omitempty" name:"WaybillNum"`
}
type TollInvoiceInfo ¶
type TollInvoiceInfo struct {
// 识别出的字段名称(关键字)。支持以下字段的识别:
// 发票代码、发票号码、日期、金额、入口、出口、时间、发票消费类型、高速标志。
Name *string `json:"Name,omitempty" name:"Name"`
// 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
Value *string `json:"Value,omitempty" name:"Value"`
// 文本行在旋转纠正之后的图像中的像素坐标。
Rect *Rect `json:"Rect,omitempty" name:"Rect"`
}
type TollInvoiceOCRRequest ¶
type TollInvoiceOCRRequest struct {
*tchttp.BaseRequest
// 图片的 Base64 值。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片的 Url 地址。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}
func NewTollInvoiceOCRRequest ¶
func NewTollInvoiceOCRRequest() (request *TollInvoiceOCRRequest)
func (*TollInvoiceOCRRequest) FromJsonString ¶
func (r *TollInvoiceOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*TollInvoiceOCRResponse) ToJsonString ¶
func (r *TollInvoiceOCRResponse) ToJsonString() string
type TrainTicketOCRRequest ¶
type TrainTicketOCRRequest 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 NewTrainTicketOCRRequest ¶
func NewTrainTicketOCRRequest() (request *TrainTicketOCRRequest)
func (*TrainTicketOCRRequest) FromJsonString ¶
func (r *TrainTicketOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*TrainTicketOCRResponse) ToJsonString ¶
func (r *TrainTicketOCRResponse) ToJsonString() string
type VatInvoice ¶
type VatInvoice struct {
// 发票代码
Code *string `json:"Code,omitempty" name:"Code"`
// 发票号码
Number *string `json:"Number,omitempty" name:"Number"`
// 开票日期
Date *string `json:"Date,omitempty" name:"Date"`
// 购方抬头
BuyerName *string `json:"BuyerName,omitempty" name:"BuyerName"`
// 购方税号
BuyerTaxCode *string `json:"BuyerTaxCode,omitempty" name:"BuyerTaxCode"`
// 购方地址电话
BuyerAddressPhone *string `json:"BuyerAddressPhone,omitempty" name:"BuyerAddressPhone"`
// 购方银行账号
BuyerBankAccount *string `json:"BuyerBankAccount,omitempty" name:"BuyerBankAccount"`
// 销方名称
SellerName *string `json:"SellerName,omitempty" name:"SellerName"`
// 销方税号
SellerTaxCode *string `json:"SellerTaxCode,omitempty" name:"SellerTaxCode"`
// 销方地址电话
SellerAddressPhone *string `json:"SellerAddressPhone,omitempty" name:"SellerAddressPhone"`
// 销方银行账号
SellerBankAccount *string `json:"SellerBankAccount,omitempty" name:"SellerBankAccount"`
// 备注
Remark *string `json:"Remark,omitempty" name:"Remark"`
// 机器编码
MachineNo *string `json:"MachineNo,omitempty" name:"MachineNo"`
// 发票类型
// 01:专用发票
// 02:货运发票
// 03:机动车发票
// 04:普通发票
// 10:电子发票
// 11:卷式发票
// 14:通行费发票
// 15:二手车发票
Type *string `json:"Type,omitempty" name:"Type"`
// 检验码
CheckCode *string `json:"CheckCode,omitempty" name:"CheckCode"`
// 是否作废(红冲)是否作废(红冲)
// Y: 已作废 N:未作废 H:红冲
IsAbandoned *string `json:"IsAbandoned,omitempty" name:"IsAbandoned"`
// 是否有销货清单
// Y: 有清单 N:无清单
// 卷票无
HasSellerList *string `json:"HasSellerList,omitempty" name:"HasSellerList"`
// 销货清单标题
SellerListTitle *string `json:"SellerListTitle,omitempty" name:"SellerListTitle"`
// 销货清单税额
SellerListTax *string `json:"SellerListTax,omitempty" name:"SellerListTax"`
// 不含税金额
AmountWithoutTax *string `json:"AmountWithoutTax,omitempty" name:"AmountWithoutTax"`
// 税额
TaxAmount *string `json:"TaxAmount,omitempty" name:"TaxAmount"`
// 含税金额
AmountWithTax *string `json:"AmountWithTax,omitempty" name:"AmountWithTax"`
// 项目明细
Items []*VatInvoiceItem `json:"Items,omitempty" name:"Items" list`
}
type VatInvoiceGoodsInfo ¶
type VatInvoiceGoodsInfo struct {
// 项目名称
Item *string `json:"Item,omitempty" name:"Item"`
// 规格型号
Specification *string `json:"Specification,omitempty" name:"Specification"`
// 单位
MeasurementDimension *string `json:"MeasurementDimension,omitempty" name:"MeasurementDimension"`
// 价格
Price *string `json:"Price,omitempty" name:"Price"`
// 数量
Quantity *string `json:"Quantity,omitempty" name:"Quantity"`
// 金额
Amount *string `json:"Amount,omitempty" name:"Amount"`
// 税率(如6%、免税)
TaxScheme *string `json:"TaxScheme,omitempty" name:"TaxScheme"`
// 税额
TaxAmount *string `json:"TaxAmount,omitempty" name:"TaxAmount"`
}
type VatInvoiceItem ¶
type VatInvoiceItem struct {
// 行号
LineNo *string `json:"LineNo,omitempty" name:"LineNo"`
// 名称
Name *string `json:"Name,omitempty" name:"Name"`
// 规格
Spec *string `json:"Spec,omitempty" name:"Spec"`
// 单位
Unit *string `json:"Unit,omitempty" name:"Unit"`
// 数量
Quantity *string `json:"Quantity,omitempty" name:"Quantity"`
// 单价
UnitPrice *string `json:"UnitPrice,omitempty" name:"UnitPrice"`
// 不含税金额
AmountWithoutTax *string `json:"AmountWithoutTax,omitempty" name:"AmountWithoutTax"`
// 税率
TaxRate *string `json:"TaxRate,omitempty" name:"TaxRate"`
// 税额
TaxAmount *string `json:"TaxAmount,omitempty" name:"TaxAmount"`
}
type VatInvoiceOCRRequest ¶
type VatInvoiceOCRRequest struct {
*tchttp.BaseRequest
// 图片/PDF的 Base64 值。
// 支持的文件格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。
// 支持的图片/PDF大小:所下载文件经Base64编码后不超过 7M。文件下载时间不超过 3 秒。
// 输入参数 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片/PDF的 Url 地址。
// 支持的文件格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。
// 支持的图片/PDF大小:所下载文件经 Base64 编码后不超过 7M。文件下载时间不超过 3 秒。
// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
// 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
IsPdf *bool `json:"IsPdf,omitempty" name:"IsPdf"`
// 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
PdfPageNumber *uint64 `json:"PdfPageNumber,omitempty" name:"PdfPageNumber"`
}
func NewVatInvoiceOCRRequest ¶
func NewVatInvoiceOCRRequest() (request *VatInvoiceOCRRequest)
func (*VatInvoiceOCRRequest) FromJsonString ¶
func (r *VatInvoiceOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*VatInvoiceOCRRequest) ToJsonString ¶
func (r *VatInvoiceOCRRequest) ToJsonString() string
type VatInvoiceOCRResponse ¶
type VatInvoiceOCRResponse struct {
*tchttp.BaseResponse
Response *struct {
// 检测到的文本信息,具体内容请点击左侧链接。
VatInvoiceInfos []*TextVatInvoice `json:"VatInvoiceInfos,omitempty" name:"VatInvoiceInfos" list`
// 明细条目。VatInvoiceInfos中关于明细项的具体条目。
Items []*VatInvoiceItem `json:"Items,omitempty" name:"Items" list`
// 图片为PDF时,返回PDF的总页数,默认为0
PdfPageSize *int64 `json:"PdfPageSize,omitempty" name:"PdfPageSize"`
// 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
Angle *float64 `json:"Angle,omitempty" name:"Angle"`
// 唯一请求 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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*VatInvoiceOCRResponse) ToJsonString ¶
func (r *VatInvoiceOCRResponse) ToJsonString() string
type VatInvoiceUserInfo ¶
type VatInvoiceUserInfo struct {
// 名称
Name *string `json:"Name,omitempty" name:"Name"`
// 纳税人识别号
TaxId *string `json:"TaxId,omitempty" name:"TaxId"`
// 地 址、电 话
AddrTel *string `json:"AddrTel,omitempty" name:"AddrTel"`
// 开户行及账号
FinancialAccount *string `json:"FinancialAccount,omitempty" name:"FinancialAccount"`
}
type VatInvoiceVerifyRequest ¶
type VatInvoiceVerifyRequest struct {
*tchttp.BaseRequest
// 发票代码, 一张发票一天只能查询5次。
InvoiceCode *string `json:"InvoiceCode,omitempty" name:"InvoiceCode"`
// 发票号码(8位)。
InvoiceNo *string `json:"InvoiceNo,omitempty" name:"InvoiceNo"`
// 开票日期(不支持当天发票查询,只支持一年以内),如:2019-12-20。
InvoiceDate *string `json:"InvoiceDate,omitempty" name:"InvoiceDate"`
// 金额/发票校验码后6位(根据票种传递对应值,如果报参数错误,请仔细检查每个票种对应的值)
// 增值税专用发票:开具金额(不含税)
// 增值税普通发票、增值税电子普通发票(含通行费发票)、增值税普通发票(卷票):校验码后6位
// 机动车销售统一发票:不含税价
// 货物运输业增值税专用发票:合计金额
// 二手车销售统一发票:车价合计
Additional *string `json:"Additional,omitempty" name:"Additional"`
}
func NewVatInvoiceVerifyRequest ¶
func NewVatInvoiceVerifyRequest() (request *VatInvoiceVerifyRequest)
func (*VatInvoiceVerifyRequest) FromJsonString ¶
func (r *VatInvoiceVerifyRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*VatInvoiceVerifyRequest) ToJsonString ¶
func (r *VatInvoiceVerifyRequest) ToJsonString() string
type VatInvoiceVerifyResponse ¶
type VatInvoiceVerifyResponse struct {
*tchttp.BaseResponse
Response *struct {
// 增值税发票信息,详情请点击左侧链接。
Invoice *VatInvoice `json:"Invoice,omitempty" name:"Invoice"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewVatInvoiceVerifyResponse ¶
func NewVatInvoiceVerifyResponse() (response *VatInvoiceVerifyResponse)
func (*VatInvoiceVerifyResponse) FromJsonString ¶
func (r *VatInvoiceVerifyResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*VatInvoiceVerifyResponse) ToJsonString ¶
func (r *VatInvoiceVerifyResponse) ToJsonString() string
type VatRollInvoiceInfo ¶
type VatRollInvoiceInfo struct {
// 识别出的字段名称(关键字),支持以下字段:
// 发票代码、合计金额(小写)、合计金额(大写)、开票日期、发票号码、购买方识别号、销售方识别号、校验码、销售方名称、购买方名称、发票消费类型、省、市、是否有公司印章、服务类型、品名、种类。
Name *string `json:"Name,omitempty" name:"Name"`
// 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
Value *string `json:"Value,omitempty" name:"Value"`
// 文本行在旋转纠正之后的图像中的像素坐标。
Rect *Rect `json:"Rect,omitempty" name:"Rect"`
}
type VatRollInvoiceOCRRequest ¶
type VatRollInvoiceOCRRequest struct {
*tchttp.BaseRequest
// 图片的 Base64 值。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 图片的 Url 地址。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
// 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
// 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
}
func NewVatRollInvoiceOCRRequest ¶
func NewVatRollInvoiceOCRRequest() (request *VatRollInvoiceOCRRequest)
func (*VatRollInvoiceOCRRequest) FromJsonString ¶
func (r *VatRollInvoiceOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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 为行驶证副页正面(有号码号牌的一面)。
// 默认值为:FRONT。
CardSide *string `json:"CardSide,omitempty" name:"CardSide"`
}
func NewVehicleLicenseOCRRequest ¶
func NewVehicleLicenseOCRRequest() (request *VehicleLicenseOCRRequest)
func (*VehicleLicenseOCRRequest) FromJsonString ¶
func (r *VehicleLicenseOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*VehicleLicenseOCRResponse) ToJsonString ¶
func (r *VehicleLicenseOCRResponse) ToJsonString() string
type VehicleRegCertInfo ¶
type VehicleRegCertInfo struct {
// 识别出的字段名称(关键字),支持以下字段:
// 【注册登记页】
// 车辆型号、车辆识别代号/车架号、发动机号、制造厂名称、轴距、轮胎数、总质量、外廓尺寸、轴数、车辆出厂日期、发证日期、使用性质、车辆获得方式、车辆类型、国产/进口、燃料种类、车身颜色、发动机型号、车辆品牌、编号、转向形式、
// 机动车所有人1、身份证明名称1、号码1、登记机关1、登记日期1
// 机动车所有人2、身份证明名称2、号码2、登记机关2、登记日期2
// 机动车所有人3、身份证明名称3、号码3、登记机关3、登记日期3
// 机动车所有人4、身份证明名称4、号码4、登记机关4、登记日期4
// 机动车所有人5、身份证明名称5、号码5、登记机关5、登记日期5
// 机动车所有人6、身份证明名称6、号码6、登记机关6、登记日期6
// 机动车所有人7、身份证明名称7、号码7、登记机关7、登记日期7
// 【抵押登记页】
// 机动车登记证书编号、身份证明名称/号码、抵押权人姓名/名称、抵押登记日期。
Name *string `json:"Name,omitempty" name:"Name"`
// 识别出的字段名称对应的值,也就是字段name对应的字符串结果。
Value *string `json:"Value,omitempty" name:"Value"`
}
type VehicleRegCertOCRRequest ¶
type VehicleRegCertOCRRequest struct {
*tchttp.BaseRequest
// 图片的 Base64 值。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经Base64编码后不超过 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 NewVehicleRegCertOCRRequest ¶
func NewVehicleRegCertOCRRequest() (request *VehicleRegCertOCRRequest)
func (*VehicleRegCertOCRRequest) FromJsonString ¶
func (r *VehicleRegCertOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*VehicleRegCertOCRResponse) ToJsonString ¶
func (r *VehicleRegCertOCRResponse) ToJsonString() string
type VerifyBasicBizLicenseRequest ¶
type VerifyBasicBizLicenseRequest struct {
*tchttp.BaseRequest
// 用于入参是营业执照图片的场景,ImageBase64和ImageUrl必须提供一个,如果都提供,只使用 ImageUrl。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 用于入参是营业执照图片的场景,ImageBase64和ImageUrl必须提供一个,如果都提供,只使用 ImageUrl。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
// 用于入参是营业执照图片的场景,表示需要校验的参数:RegNum(注册号或者统一社会信用代码),Name(企业名称),Address(经营地址)。选择后会返回相关参数校验结果。RegNum为必选,Name和Address可选。
// 格式为{RegNum: true, Name:true/false, Address:true/false}
//
// 设置方式参考:
// Config = Json.stringify({"Name":true,"Address":true})
// API 3.0 Explorer 设置方式参考:
// Config = {"Name":true,"Address":true}
ImageConfig *string `json:"ImageConfig,omitempty" name:"ImageConfig"`
// 用于入参是文本的场景,RegNum表示注册号或者统一社会信用代码。若没有传入营业执照图片,则RegNum为必选项,若图片和RegNum都传入,则只使用RegNum。
RegNum *string `json:"RegNum,omitempty" name:"RegNum"`
// 用于入参是文本的场景,Name表示企业名称。Name为可选项,填写后会返回Name的校验结果。
Name *string `json:"Name,omitempty" name:"Name"`
// 用于入参是文本的场景,Address表示经营地址。Address为可选项,填写后会返回Address的校验结果。
Address *string `json:"Address,omitempty" name:"Address"`
// 1表示输出注册资本字段(单位:万元),其他值表示不输出。默认不输出。
RegCapital *int64 `json:"RegCapital,omitempty" name:"RegCapital"`
}
func NewVerifyBasicBizLicenseRequest ¶
func NewVerifyBasicBizLicenseRequest() (request *VerifyBasicBizLicenseRequest)
func (*VerifyBasicBizLicenseRequest) FromJsonString ¶
func (r *VerifyBasicBizLicenseRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*VerifyBasicBizLicenseRequest) ToJsonString ¶
func (r *VerifyBasicBizLicenseRequest) ToJsonString() string
type VerifyBasicBizLicenseResponse ¶
type VerifyBasicBizLicenseResponse struct {
*tchttp.BaseResponse
Response *struct {
// 状态码,成功时返回0
ErrorCode *int64 `json:"ErrorCode,omitempty" name:"ErrorCode"`
// 统一社会信用代码
CreditCode *string `json:"CreditCode,omitempty" name:"CreditCode"`
// 经营期限自(YYYY-MM-DD)
Opfrom *string `json:"Opfrom,omitempty" name:"Opfrom"`
// 经营期限至(YYYY-MM-DD)
Opto *string `json:"Opto,omitempty" name:"Opto"`
// 法人姓名
Frname *string `json:"Frname,omitempty" name:"Frname"`
// 经营状态(在营、注销、吊销、其他)
Entstatus *string `json:"Entstatus,omitempty" name:"Entstatus"`
// 经营业务范围
Zsopscope *string `json:"Zsopscope,omitempty" name:"Zsopscope"`
// 查询的状态信息
Reason *string `json:"Reason,omitempty" name:"Reason"`
// 原注册号
Oriregno *string `json:"Oriregno,omitempty" name:"Oriregno"`
// 要核验的工商注册号
VerifyRegno *string `json:"VerifyRegno,omitempty" name:"VerifyRegno"`
// 工商注册号
Regno *string `json:"Regno,omitempty" name:"Regno"`
// 要核验的企业名称
VerifyEntname *string `json:"VerifyEntname,omitempty" name:"VerifyEntname"`
// 企业名称
Entname *string `json:"Entname,omitempty" name:"Entname"`
// 要核验的住址
VerifyDom *string `json:"VerifyDom,omitempty" name:"VerifyDom"`
// 住址
Dom *string `json:"Dom,omitempty" name:"Dom"`
// 验证结果
RegNumResult *BizLicenseVerifyResult `json:"RegNumResult,omitempty" name:"RegNumResult"`
// 注册资本(单位:万元),只有输入参数regCapital为1的时候才输出
RegCapital *string `json:"RegCapital,omitempty" name:"RegCapital"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewVerifyBasicBizLicenseResponse ¶
func NewVerifyBasicBizLicenseResponse() (response *VerifyBasicBizLicenseResponse)
func (*VerifyBasicBizLicenseResponse) FromJsonString ¶
func (r *VerifyBasicBizLicenseResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*VerifyBasicBizLicenseResponse) ToJsonString ¶
func (r *VerifyBasicBizLicenseResponse) ToJsonString() string
type VerifyBizLicenseRequest ¶
type VerifyBizLicenseRequest struct {
*tchttp.BaseRequest
// 用于入参是营业执照图片的场景,ImageBase64和ImageUrl必须提供一个,如果都提供,只使用 ImageUrl。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"`
// 用于入参是营业执照图片的场景,ImageBase64和ImageUrl必须提供一个,如果都提供,只使用 ImageUrl。
// 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
// 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"`
// 用于入参是营业执照图片的场景,表示需要校验的参数:RegNum(注册号或者统一社会信用代码),Name(企业名称),Address(经营地址)。选择后会返回相关参数校验结果。RegNum为必选,Name和Address可选。
// 格式为{RegNum: true, Name:true/false, Address:true/false}
//
// 设置方式参考:
// Config = Json.stringify({"Name":true,"Address":true})
// API 3.0 Explorer 设置方式参考:
// Config = {"Name":true,"Address":true}
ImageConfig *string `json:"ImageConfig,omitempty" name:"ImageConfig"`
// 用于入参是文本的场景,RegNum表示注册号或者统一社会信用代码。若没有传入营业执照图片,则RegNum为必选项,若图片和RegNum都传入,则只使用RegNum。
RegNum *string `json:"RegNum,omitempty" name:"RegNum"`
// 用于入参是文本的场景,Name表示企业名称。Name为可选项,填写后会返回Name的校验结果。
Name *string `json:"Name,omitempty" name:"Name"`
// 用于入参是文本的场景,Address表示经营地址,填写后会返回Address的校验结果。
Address *string `json:"Address,omitempty" name:"Address"`
}
func NewVerifyBizLicenseRequest ¶
func NewVerifyBizLicenseRequest() (request *VerifyBizLicenseRequest)
func (*VerifyBizLicenseRequest) FromJsonString ¶
func (r *VerifyBizLicenseRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*VerifyBizLicenseRequest) ToJsonString ¶
func (r *VerifyBizLicenseRequest) ToJsonString() string
type VerifyBizLicenseResponse ¶
type VerifyBizLicenseResponse struct {
*tchttp.BaseResponse
Response *struct {
// 状态码
ErrorCode *int64 `json:"ErrorCode,omitempty" name:"ErrorCode"`
// 统一社会信用代码
CreditCode *string `json:"CreditCode,omitempty" name:"CreditCode"`
// 组织机构代码
OrgCode *string `json:"OrgCode,omitempty" name:"OrgCode"`
// 经营期限自(YYYY-MM-DD)
OpenFrom *string `json:"OpenFrom,omitempty" name:"OpenFrom"`
// 经营期限至(YYYY-MM-DD)
OpenTo *string `json:"OpenTo,omitempty" name:"OpenTo"`
// 法人姓名
FrName *string `json:"FrName,omitempty" name:"FrName"`
// 经营状态(在营、注销、吊销、其他)
EnterpriseStatus *string `json:"EnterpriseStatus,omitempty" name:"EnterpriseStatus"`
// 经营(业务)范围及方式
OperateScopeAndForm *string `json:"OperateScopeAndForm,omitempty" name:"OperateScopeAndForm"`
// 注册资金(单位:万元)
RegCap *string `json:"RegCap,omitempty" name:"RegCap"`
// 注册币种
RegCapCur *string `json:"RegCapCur,omitempty" name:"RegCapCur"`
// 登记机关
RegOrg *string `json:"RegOrg,omitempty" name:"RegOrg"`
// 开业日期(YYYY-MM-DD)
EsDate *string `json:"EsDate,omitempty" name:"EsDate"`
// 企业(机构)类型
EnterpriseType *string `json:"EnterpriseType,omitempty" name:"EnterpriseType"`
// 注销日期
CancelDate *string `json:"CancelDate,omitempty" name:"CancelDate"`
// 吊销日期
RevokeDate *string `json:"RevokeDate,omitempty" name:"RevokeDate"`
// 许可经营项目
AbuItem *string `json:"AbuItem,omitempty" name:"AbuItem"`
// 一般经营项目
CbuItem *string `json:"CbuItem,omitempty" name:"CbuItem"`
// 核准时间
ApprDate *string `json:"ApprDate,omitempty" name:"ApprDate"`
// 省
Province *string `json:"Province,omitempty" name:"Province"`
// 地级市
City *string `json:"City,omitempty" name:"City"`
// 区\县
County *string `json:"County,omitempty" name:"County"`
// 住所所在行政区划代码
AreaCode *string `json:"AreaCode,omitempty" name:"AreaCode"`
// 行业门类代码
IndustryPhyCode *string `json:"IndustryPhyCode,omitempty" name:"IndustryPhyCode"`
// 行业门类名称
IndustryPhyName *string `json:"IndustryPhyName,omitempty" name:"IndustryPhyName"`
// 国民经济行业代码
IndustryCode *string `json:"IndustryCode,omitempty" name:"IndustryCode"`
// 国民经济行业名称
IndustryName *string `json:"IndustryName,omitempty" name:"IndustryName"`
// 经营(业务)范围
OperateScope *string `json:"OperateScope,omitempty" name:"OperateScope"`
// 要核验的工商注册号
VerifyRegNo *string `json:"VerifyRegNo,omitempty" name:"VerifyRegNo"`
// 工商注册号
RegNo *string `json:"RegNo,omitempty" name:"RegNo"`
// 要核验的企业名称
VerifyEnterpriseName *string `json:"VerifyEnterpriseName,omitempty" name:"VerifyEnterpriseName"`
// 企业名称
EnterpriseName *string `json:"EnterpriseName,omitempty" name:"EnterpriseName"`
// 要核验的注册地址
VerifyAddress *string `json:"VerifyAddress,omitempty" name:"VerifyAddress"`
// 注册地址
Address *string `json:"Address,omitempty" name:"Address"`
// 验证结果
RegNumResult *BizLicenseVerifyResult `json:"RegNumResult,omitempty" name:"RegNumResult"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewVerifyBizLicenseResponse ¶
func NewVerifyBizLicenseResponse() (response *VerifyBizLicenseResponse)
func (*VerifyBizLicenseResponse) FromJsonString ¶
func (r *VerifyBizLicenseResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*VerifyBizLicenseResponse) ToJsonString ¶
func (r *VerifyBizLicenseResponse) ToJsonString() string
type VerifyOfdVatInvoiceOCRRequest ¶
type VerifyOfdVatInvoiceOCRRequest struct {
*tchttp.BaseRequest
// OFD文件的 Url 地址。
OfdFileUrl *string `json:"OfdFileUrl,omitempty" name:"OfdFileUrl"`
// OFD文件的 Base64 值。
// OfdFileUrl 和 OfdFileBase64 必传其一,若两者都传,只解析OfdFileBase64。
OfdFileBase64 *string `json:"OfdFileBase64,omitempty" name:"OfdFileBase64"`
}
func NewVerifyOfdVatInvoiceOCRRequest ¶
func NewVerifyOfdVatInvoiceOCRRequest() (request *VerifyOfdVatInvoiceOCRRequest)
func (*VerifyOfdVatInvoiceOCRRequest) FromJsonString ¶
func (r *VerifyOfdVatInvoiceOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*VerifyOfdVatInvoiceOCRRequest) ToJsonString ¶
func (r *VerifyOfdVatInvoiceOCRRequest) ToJsonString() string
type VerifyOfdVatInvoiceOCRResponse ¶
type VerifyOfdVatInvoiceOCRResponse struct {
*tchttp.BaseResponse
Response *struct {
// 发票类型
// 026:增值税电子普通发票
// 028:增值税电子专用发票
Type *string `json:"Type,omitempty" name:"Type"`
// 发票代码
InvoiceCode *string `json:"InvoiceCode,omitempty" name:"InvoiceCode"`
// 发票号码
InvoiceNumber *string `json:"InvoiceNumber,omitempty" name:"InvoiceNumber"`
// 开票日期
IssueDate *string `json:"IssueDate,omitempty" name:"IssueDate"`
// 验证码
InvoiceCheckCode *string `json:"InvoiceCheckCode,omitempty" name:"InvoiceCheckCode"`
// 机器编号
MachineNumber *string `json:"MachineNumber,omitempty" name:"MachineNumber"`
// 密码区
TaxControlCode *string `json:"TaxControlCode,omitempty" name:"TaxControlCode"`
// 购买方
Buyer *VatInvoiceUserInfo `json:"Buyer,omitempty" name:"Buyer"`
// 销售方
Seller *VatInvoiceUserInfo `json:"Seller,omitempty" name:"Seller"`
// 价税合计
TaxInclusiveTotalAmount *string `json:"TaxInclusiveTotalAmount,omitempty" name:"TaxInclusiveTotalAmount"`
// 开票人
InvoiceClerk *string `json:"InvoiceClerk,omitempty" name:"InvoiceClerk"`
// 收款人
Payee *string `json:"Payee,omitempty" name:"Payee"`
// 复核人
Checker *string `json:"Checker,omitempty" name:"Checker"`
// 税额
TaxTotalAmount *string `json:"TaxTotalAmount,omitempty" name:"TaxTotalAmount"`
// 不含税金额
TaxExclusiveTotalAmount *string `json:"TaxExclusiveTotalAmount,omitempty" name:"TaxExclusiveTotalAmount"`
// 备注
Note *string `json:"Note,omitempty" name:"Note"`
// 货物或服务清单
GoodsInfos []*VatInvoiceGoodsInfo `json:"GoodsInfos,omitempty" name:"GoodsInfos" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewVerifyOfdVatInvoiceOCRResponse ¶
func NewVerifyOfdVatInvoiceOCRResponse() (response *VerifyOfdVatInvoiceOCRResponse)
func (*VerifyOfdVatInvoiceOCRResponse) FromJsonString ¶
func (r *VerifyOfdVatInvoiceOCRResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*VerifyOfdVatInvoiceOCRResponse) ToJsonString ¶
func (r *VerifyOfdVatInvoiceOCRResponse) ToJsonString() string
type VinOCRRequest ¶
type VinOCRRequest 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 NewVinOCRRequest ¶
func NewVinOCRRequest() (request *VinOCRRequest)
func (*VinOCRRequest) FromJsonString ¶
func (r *VinOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*VinOCRResponse) ToJsonString ¶
func (r *VinOCRResponse) ToJsonString() string
type WaybillOCRRequest ¶
type WaybillOCRRequest 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"`
// 预检测开关,当待识别运单占整个输入图像的比例较小时,建议打开预检测开关。默认值为false。
EnablePreDetect *bool `json:"EnablePreDetect,omitempty" name:"EnablePreDetect"`
}
func NewWaybillOCRRequest ¶
func NewWaybillOCRRequest() (request *WaybillOCRRequest)
func (*WaybillOCRRequest) FromJsonString ¶
func (r *WaybillOCRRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*WaybillOCRResponse) ToJsonString ¶
func (r *WaybillOCRResponse) ToJsonString() string
type WaybillObj ¶
type WaybillObj struct {
// 识别出的文本行内容
Text *string `json:"Text,omitempty" name:"Text"`
}
type WordCoordPoint ¶
type WordCoordPoint struct {
// 英文OCR识别出的每个单词在原图中的四点坐标。
WordCoordinate []*Coord `json:"WordCoordinate,omitempty" name:"WordCoordinate" list`
}