Documentation
¶
Index ¶
- Constants
- type ArithmeticOCRRequest
- type ArithmeticOCRResponse
- type Client
- func (c *Client) ArithmeticOCR(request *ArithmeticOCRRequest) (response *ArithmeticOCRResponse, err error)
- func (c *Client) EnglishOCR(request *EnglishOCRRequest) (response *EnglishOCRResponse, 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) GeneralFastOCR(request *GeneralFastOCRRequest) (response *GeneralFastOCRResponse, err error)
- func (c *Client) IDCardOCR(request *IDCardOCRRequest) (response *IDCardOCRResponse, err error)
- func (c *Client) TableOCR(request *TableOCRRequest) (response *TableOCRResponse, 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 EnglishOCRRequest
- type EnglishOCRResponse
- type GeneralAccurateOCRRequest
- type GeneralAccurateOCRResponse
- type GeneralBasicOCRRequest
- type GeneralBasicOCRResponse
- type GeneralFastOCRRequest
- type GeneralFastOCRResponse
- type IDCardOCRRequest
- type IDCardOCRResponse
- type TableOCRRequest
- type TableOCRResponse
- type TextArithmetic
- type TextDetection
- type TextDetectionEn
- type TextTable
- type TextWaybill
- type VinOCRRequest
- type VinOCRResponse
- type WaybillOCRRequest
- type WaybillOCRResponse
- type WaybillObj
Constants ¶
View Source
const APIVersion = "2018-11-19"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArithmeticOCRRequest ¶
type ArithmeticOCRRequest struct { *tchttp.BaseRequest // 图片的 Base64 值。 // 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。 // 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。 // 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。 ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"` // 图片的 Url 地址。 // 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。 // 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。 // 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。 // 非腾讯云存储的 Url 速度和稳定性可能受一定影响。 ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"` }
func NewArithmeticOCRRequest ¶
func NewArithmeticOCRRequest() (request *ArithmeticOCRRequest)
func (*ArithmeticOCRRequest) FromJsonString ¶
func (r *ArithmeticOCRRequest) FromJsonString(s string) error
func (*ArithmeticOCRRequest) ToJsonString ¶
func (r *ArithmeticOCRRequest) ToJsonString() string
type ArithmeticOCRResponse ¶
type ArithmeticOCRResponse struct { *tchttp.BaseResponse Response *struct { // 检测到的文本信息,具体内容请点击左侧链接。 TextDetections []*TextArithmetic `json:"TextDetections,omitempty" name:"TextDetections" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewArithmeticOCRResponse ¶
func NewArithmeticOCRResponse() (response *ArithmeticOCRResponse)
func (*ArithmeticOCRResponse) FromJsonString ¶
func (r *ArithmeticOCRResponse) FromJsonString(s string) error
func (*ArithmeticOCRResponse) ToJsonString ¶
func (r *ArithmeticOCRResponse) ToJsonString() string
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) ArithmeticOCR ¶
func (c *Client) ArithmeticOCR(request *ArithmeticOCRRequest) (response *ArithmeticOCRResponse, err error)
本接口支持作业算式题目的自动识别,目前覆盖 K12 学力范围内的 14 种题型,包括加减乘除四则运算、分数四则运算、竖式四则运算、脱式计算等。
func (*Client) EnglishOCR ¶
func (c *Client) EnglishOCR(request *EnglishOCRRequest) (response *EnglishOCRResponse, err error)
本接口支持图像英文文字的检测和识别,返回文字框位置与文字内容。支持多场景、任意版面下的英文、字母、数字和常见字符的识别,同时覆盖英文印刷体和英文手写体识别。
func (*Client) GeneralAccurateOCR ¶
func (c *Client) GeneralAccurateOCR(request *GeneralAccurateOCRRequest) (response *GeneralAccurateOCRResponse, err error)
本接口支持图像整体文字的检测和识别,返回文字框位置与文字内容。相比通用印刷体识别接口,准确率和召回率更高。
func (*Client) GeneralBasicOCR ¶
func (c *Client) GeneralBasicOCR(request *GeneralBasicOCRRequest) (response *GeneralBasicOCRResponse, err error)
本接口支持多场景、任意版面下整图文字的识别,包括中英文、字母、数字和日文、韩文的识别。应用场景包括:印刷文档识别、网络图片识别、广告图文字识别、街景店招识别、菜单识别、视频标题识别、头像文字识别等。
func (*Client) GeneralFastOCR ¶
func (c *Client) GeneralFastOCR(request *GeneralFastOCRRequest) (response *GeneralFastOCRResponse, err error)
本接口支持图片中整体文字的检测和识别,返回文字框位置与文字内容。相比通用印刷体识别接口,识别速度更快、支持的 QPS 更高。
func (*Client) IDCardOCR ¶
func (c *Client) IDCardOCR(request *IDCardOCRRequest) (response *IDCardOCRResponse, err error)
本接口支持二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限;具备身份证照片、人像照片的裁剪功能和翻拍件、复印件的识别告警功能。
func (*Client) TableOCR ¶
func (c *Client) TableOCR(request *TableOCRRequest) (response *TableOCRResponse, err error)
本接口支持图片内表格文档的检测和识别,返回每个单元格的文字内容,支持将识别结果保存为 Excel 格式。
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 EnglishOCRRequest ¶
type EnglishOCRRequest struct { *tchttp.BaseRequest // 图片的 Base64 值。 // 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。 // 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。 // 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。 ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"` // 图片的 Url 地址。 // 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。 // 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。 // 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。 // 非腾讯云存储的 Url 速度和稳定性可能受一定影响。 ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"` }
func NewEnglishOCRRequest ¶
func NewEnglishOCRRequest() (request *EnglishOCRRequest)
func (*EnglishOCRRequest) FromJsonString ¶
func (r *EnglishOCRRequest) FromJsonString(s string) error
func (*EnglishOCRRequest) ToJsonString ¶
func (r *EnglishOCRRequest) ToJsonString() string
type EnglishOCRResponse ¶
type EnglishOCRResponse struct { *tchttp.BaseResponse Response *struct { // 检测到的文本信息,具体内容请点击左侧链接。 TextDetections []*TextDetectionEn `json:"TextDetections,omitempty" name:"TextDetections" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewEnglishOCRResponse ¶
func NewEnglishOCRResponse() (response *EnglishOCRResponse)
func (*EnglishOCRResponse) FromJsonString ¶
func (r *EnglishOCRResponse) FromJsonString(s string) error
func (*EnglishOCRResponse) ToJsonString ¶
func (r *EnglishOCRResponse) ToJsonString() string
type GeneralAccurateOCRRequest ¶
type GeneralAccurateOCRRequest struct { *tchttp.BaseRequest // 图片的 Base64 值。 // 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。 // 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。 // 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。 ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"` // 图片的 Url 地址。 // 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。 // 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。 // 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。 // 非腾讯云存储的 Url 速度和稳定性可能受一定影响。 ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"` }
func NewGeneralAccurateOCRRequest ¶
func NewGeneralAccurateOCRRequest() (request *GeneralAccurateOCRRequest)
func (*GeneralAccurateOCRRequest) FromJsonString ¶
func (r *GeneralAccurateOCRRequest) FromJsonString(s string) error
func (*GeneralAccurateOCRRequest) ToJsonString ¶
func (r *GeneralAccurateOCRRequest) ToJsonString() string
type GeneralAccurateOCRResponse ¶
type GeneralAccurateOCRResponse struct { *tchttp.BaseResponse Response *struct { // 检测到的文本信息,具体内容请点击左侧链接。 TextDetections []*TextDetection `json:"TextDetections,omitempty" name:"TextDetections" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewGeneralAccurateOCRResponse ¶
func NewGeneralAccurateOCRResponse() (response *GeneralAccurateOCRResponse)
func (*GeneralAccurateOCRResponse) FromJsonString ¶
func (r *GeneralAccurateOCRResponse) FromJsonString(s string) error
func (*GeneralAccurateOCRResponse) ToJsonString ¶
func (r *GeneralAccurateOCRResponse) ToJsonString() string
type GeneralBasicOCRRequest ¶
type GeneralBasicOCRRequest struct { *tchttp.BaseRequest // 图片的 Base64 值。 // 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。 // 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。 // 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。 ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"` // 图片的 Url 地址。 // 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。 // 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。 // 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。 // 非腾讯云存储的 Url 速度和稳定性可能受一定影响。 ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"` // 保留字段。 Scene *string `json:"Scene,omitempty" name:"Scene"` }
func NewGeneralBasicOCRRequest ¶
func NewGeneralBasicOCRRequest() (request *GeneralBasicOCRRequest)
func (*GeneralBasicOCRRequest) FromJsonString ¶
func (r *GeneralBasicOCRRequest) FromJsonString(s string) error
func (*GeneralBasicOCRRequest) ToJsonString ¶
func (r *GeneralBasicOCRRequest) ToJsonString() string
type GeneralBasicOCRResponse ¶
type GeneralBasicOCRResponse struct { *tchttp.BaseResponse Response *struct { // 检测到的文本信息,具体内容请点击左侧链接。 TextDetections []*TextDetection `json:"TextDetections,omitempty" name:"TextDetections" list` // 检测到的语言,目前支持的语种范围为:简体中文、繁体中文、英文、日文、韩文。未来将陆续新增对更多语种的支持。 // 返回结果含义为:zh-中英混合,jap-日文,kor-韩文。 Language *string `json:"Language,omitempty" name:"Language"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewGeneralBasicOCRResponse ¶
func NewGeneralBasicOCRResponse() (response *GeneralBasicOCRResponse)
func (*GeneralBasicOCRResponse) FromJsonString ¶
func (r *GeneralBasicOCRResponse) FromJsonString(s string) error
func (*GeneralBasicOCRResponse) ToJsonString ¶
func (r *GeneralBasicOCRResponse) ToJsonString() string
type GeneralFastOCRRequest ¶
type GeneralFastOCRRequest struct { *tchttp.BaseRequest // 图片的 Base64 值。 // 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。 // 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。 // 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。 ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"` // 图片的 Url 地址。 // 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。 // 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。 // 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。 // 非腾讯云存储的 Url 速度和稳定性可能受一定影响。 ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"` }
func NewGeneralFastOCRRequest ¶
func NewGeneralFastOCRRequest() (request *GeneralFastOCRRequest)
func (*GeneralFastOCRRequest) FromJsonString ¶
func (r *GeneralFastOCRRequest) FromJsonString(s string) error
func (*GeneralFastOCRRequest) ToJsonString ¶
func (r *GeneralFastOCRRequest) ToJsonString() string
type GeneralFastOCRResponse ¶
type GeneralFastOCRResponse struct { *tchttp.BaseResponse Response *struct { // 检测到的文本信息,具体内容请点击左侧链接。 TextDetections []*TextDetection `json:"TextDetections,omitempty" name:"TextDetections" list` // 检测到的语言,目前支持的语种范围为:简体中文、繁体中文、英文、日文、韩文。未来将陆续新增对更多语种的支持。 // 返回结果含义为:zh - 中英混合,jap - 日文,kor - 韩文。 Language *string `json:"Language,omitempty" name:"Language"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewGeneralFastOCRResponse ¶
func NewGeneralFastOCRResponse() (response *GeneralFastOCRResponse)
func (*GeneralFastOCRResponse) FromJsonString ¶
func (r *GeneralFastOCRResponse) FromJsonString(s string) error
func (*GeneralFastOCRResponse) ToJsonString ¶
func (r *GeneralFastOCRResponse) ToJsonString() string
type IDCardOCRRequest ¶
type IDCardOCRRequest 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"` // 可选字段,根据需要选择是否请求对应字段。 // 目前包含的字段为: // CropIdCard,身份证照片裁剪,bool 类型, // CropPortrait,人像照片裁剪,bool 类型, // CopyWarn,复印件告警,bool 类型, // ReshootWarn,翻拍告警,bool 类型。 // // SDK 设置方式参考: // Config = Json.stringify({"CropIdCard":true,"CropPortrait":true}) // API 3.0 Explorer 设置方式参考: // Config = {"CropIdCard":true,"CropPortrait":true} Config *string `json:"Config,omitempty" name:"Config"` }
func NewIDCardOCRRequest ¶
func NewIDCardOCRRequest() (request *IDCardOCRRequest)
func (*IDCardOCRRequest) FromJsonString ¶
func (r *IDCardOCRRequest) FromJsonString(s string) error
func (*IDCardOCRRequest) ToJsonString ¶
func (r *IDCardOCRRequest) ToJsonString() string
type IDCardOCRResponse ¶
type IDCardOCRResponse struct { *tchttp.BaseResponse Response *struct { // 姓名(人像面) Name *string `json:"Name,omitempty" name:"Name"` // 性别(人像面) Sex *string `json:"Sex,omitempty" name:"Sex"` // 民族(人像面) Nation *string `json:"Nation,omitempty" name:"Nation"` // 出生日期(人像面) Birth *string `json:"Birth,omitempty" name:"Birth"` // 地址(人像面) Address *string `json:"Address,omitempty" name:"Address"` // 身份证号(人像面) IdNum *string `json:"IdNum,omitempty" name:"IdNum"` // 发证机关(国徽面) Authority *string `json:"Authority,omitempty" name:"Authority"` // 证件有效期(国徽面) ValidDate *string `json:"ValidDate,omitempty" name:"ValidDate"` // 扩展信息,根据请求的可选字段返回对应内容,不请求则不返回,具体输入参考示例3。目前支持的扩展字段为: // IdCard,身份证照片,请求 CropIdCard 时返回; // Portrait,人像照片,请求 CropPortrait 时返回; // WarnInfos,告警信息(Code - 告警码,Msg - 告警信息内容),识别出翻拍件或复印件时返回。 // // Code 告警码列表和释义: // -9103 身份证翻拍告警, // -9102 身份证复印件告警。 AdvancedInfo *string `json:"AdvancedInfo,omitempty" name:"AdvancedInfo"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewIDCardOCRResponse ¶
func NewIDCardOCRResponse() (response *IDCardOCRResponse)
func (*IDCardOCRResponse) FromJsonString ¶
func (r *IDCardOCRResponse) FromJsonString(s string) error
func (*IDCardOCRResponse) ToJsonString ¶
func (r *IDCardOCRResponse) ToJsonString() string
type TableOCRRequest ¶
type TableOCRRequest struct { *tchttp.BaseRequest // 图片的 Base64 值。 // 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。 // 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。 // 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。 ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"` // 图片的 Url 地址。 // 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。 // 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。 // 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。 // 非腾讯云存储的 Url 速度和稳定性可能受一定影响。 ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"` }
func NewTableOCRRequest ¶
func NewTableOCRRequest() (request *TableOCRRequest)
func (*TableOCRRequest) FromJsonString ¶
func (r *TableOCRRequest) FromJsonString(s string) error
func (*TableOCRRequest) ToJsonString ¶
func (r *TableOCRRequest) ToJsonString() string
type TableOCRResponse ¶
type TableOCRResponse struct { *tchttp.BaseResponse Response *struct { // 检测到的文本信息,具体内容请点击左侧链接。 TextDetections []*TextTable `json:"TextDetections,omitempty" name:"TextDetections" list` // Base64 编码后的 Excel 数据。 Data *string `json:"Data,omitempty" name:"Data"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewTableOCRResponse ¶
func NewTableOCRResponse() (response *TableOCRResponse)
func (*TableOCRResponse) FromJsonString ¶
func (r *TableOCRResponse) FromJsonString(s string) error
func (*TableOCRResponse) ToJsonString ¶
func (r *TableOCRResponse) ToJsonString() string
type TextArithmetic ¶
type TextArithmetic struct { // 识别出的文本行内容 DetectedText *string `json:"DetectedText,omitempty" name:"DetectedText"` // 结果 Result *bool `json:"Result,omitempty" name:"Result"` // 置信度 0 ~100 Confidence *int64 `json:"Confidence,omitempty" name:"Confidence"` // 文本行坐标,以四个顶点坐标表示 // 注意:此字段可能返回 null,表示取不到有效值。 Polygon []*Coord `json:"Polygon,omitempty" name:"Polygon" list` // 此字段为扩展字段。 AdvancedInfo *string `json:"AdvancedInfo,omitempty" name:"AdvancedInfo"` }
type TextDetection ¶
type TextDetection struct { // 识别出的文本行内容 DetectedText *string `json:"DetectedText,omitempty" name:"DetectedText"` // 置信度 0 ~100 Confidence *int64 `json:"Confidence,omitempty" name:"Confidence"` // 文本行坐标,以四个顶点坐标表示 // 注意:此字段可能返回 null,表示取不到有效值。 Polygon []*Coord `json:"Polygon,omitempty" name:"Polygon" list` // 此字段为扩展字段。 // GeneralBasicOcr接口返回段落信息Parag,包含ParagNo。 AdvancedInfo *string `json:"AdvancedInfo,omitempty" name:"AdvancedInfo"` }
type TextDetectionEn ¶
type TextDetectionEn struct { // 识别出的文本行内容 DetectedText *string `json:"DetectedText,omitempty" name:"DetectedText"` // 置信度 0 ~100 Confidence *int64 `json:"Confidence,omitempty" name:"Confidence"` // 文本行坐标,以四个顶点坐标表示 // 注意:此字段可能返回 null,表示取不到有效值。 Polygon []*Coord `json:"Polygon,omitempty" name:"Polygon" list` // 此字段为扩展字段。目前EnglishOCR接口返回内容为空。 AdvancedInfo *string `json:"AdvancedInfo,omitempty" name:"AdvancedInfo"` }
type 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 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 VinOCRRequest ¶
type VinOCRRequest struct { *tchttp.BaseRequest // 图片的 Base64 值。 // 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。 // 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。 // 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。 ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"` // 图片的 Url 地址。 // 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。 // 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。 // 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。 // 非腾讯云存储的 Url 速度和稳定性可能受一定影响。 ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"` }
func NewVinOCRRequest ¶
func NewVinOCRRequest() (request *VinOCRRequest)
func (*VinOCRRequest) FromJsonString ¶
func (r *VinOCRRequest) FromJsonString(s string) error
func (*VinOCRRequest) ToJsonString ¶
func (r *VinOCRRequest) ToJsonString() string
type VinOCRResponse ¶
type VinOCRResponse struct { *tchttp.BaseResponse Response *struct { // 检测到的车辆 VIN 码。 Vin *string `json:"Vin,omitempty" name:"Vin"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewVinOCRResponse ¶
func NewVinOCRResponse() (response *VinOCRResponse)
func (*VinOCRResponse) FromJsonString ¶
func (r *VinOCRResponse) FromJsonString(s string) error
func (*VinOCRResponse) ToJsonString ¶
func (r *VinOCRResponse) ToJsonString() string
type WaybillOCRRequest ¶
type WaybillOCRRequest struct { *tchttp.BaseRequest // 图片的 Base64 值。 // 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。 // 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。 // 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。 ImageBase64 *string `json:"ImageBase64,omitempty" name:"ImageBase64"` // 图片的 Url 地址。 // 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。 // 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。 // 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。 // 非腾讯云存储的 Url 速度和稳定性可能受一定影响。 ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"` }
func NewWaybillOCRRequest ¶
func NewWaybillOCRRequest() (request *WaybillOCRRequest)
func (*WaybillOCRRequest) FromJsonString ¶
func (r *WaybillOCRRequest) FromJsonString(s string) error
func (*WaybillOCRRequest) ToJsonString ¶
func (r *WaybillOCRRequest) ToJsonString() string
type WaybillOCRResponse ¶
type WaybillOCRResponse struct { *tchttp.BaseResponse Response *struct { // 检测到的文本信息,具体内容请点击左侧链接。 // 注意:此字段可能返回 null,表示取不到有效值。 TextDetections *TextWaybill `json:"TextDetections,omitempty" name:"TextDetections"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewWaybillOCRResponse ¶
func NewWaybillOCRResponse() (response *WaybillOCRResponse)
func (*WaybillOCRResponse) FromJsonString ¶
func (r *WaybillOCRResponse) FromJsonString(s string) error
func (*WaybillOCRResponse) ToJsonString ¶
func (r *WaybillOCRResponse) ToJsonString() string
type WaybillObj ¶
type WaybillObj struct { // 识别出的文本行内容 Text *string `json:"Text,omitempty" name:"Text"` }
Click to show internal directories.
Click to hide internal directories.