Documentation
¶
Index ¶
- Constants
- func AddVoice(clt *core.Client, voice_id string, reader io.Reader) (err error)
- func GetBankCard(clt *core.Client, url_str string) (number string, err error)
- func GetPlateNum(clt *core.Client, url_str string) (number string, err error)
- func QueryVoiceText(clt *core.Client, voice_id string) (text string, err error)
- func TranslateCnToEn(clt *core.Client, text string) (err error)
- func TranslateEnToCn(clt *core.Client, text string) (err error)
- type BizLicense
- type Driving
- type DrivingLicense
- type IdCard
- type MenuItem
- type TextItem
Constants ¶
View Source
const ( IdCardFront = "Front" IdCardBack = "Back" )
Variables ¶
This section is empty.
Functions ¶
func GetBankCard ¶
银行卡OCR识别接口
func GetPlateNum ¶
车牌识别接口
func QueryVoiceText ¶
Types ¶
type BizLicense ¶
type BizLicense struct { RegNum string `json:"reg_num"` Serial string `json:"serial"` LegalRepresentative string `json:"legal_representative"` EnterpriseName string `json:"enterprise_name"` TypeOfOrganization string `json:"type_of_organization"` Address string `json:"address"` TypeOfEnterprise string `json:"type_of_enterprise"` BusinessScope string `json:"business_scope"` RegisteredCapital string `json:"registered_capital"` PaidInCapital string `json:"paid_in_capital"` ValidPeriod string `json:"valid_period"` RegisteredDate string `json:"registered_date"` }
func GetBizLicense ¶
func GetBizLicense(clt *core.Client, url_str string) (card BizLicense, err error)
营业执照OCR识别接口
type Driving ¶
type Driving struct { PlateNum string `json:"plate_num"` VehicleType string `json:"vehicle_type"` Owner string `json:"owner"` Addr string `json:"addr"` UseCharacter string `json:"use_character"` Model string `json:"model"` Vin string `json:"vin"` EngineNum string `json:"engine_num"` RegisterDate string `json:"register_date"` IssueDate string `json:"issue_date"` PlateNumB string `json:"plate_num_b"` Record string `json:"record"` PassengersNum string `json:"passengers_num"` TotalQuality string `json:"total_quality"` PrepareQuality string `json:"prepare_quality"` OverallSize string `json:"overall_size"` }
type DrivingLicense ¶
type DrivingLicense struct { IDNum string `json:"id_num"` Name string `json:"name"` Sex string `json:"sex"` Nationality string `json:"nationality"` Address string `json:"address"` BirthDate string `json:"birth_date"` IssueDate string `json:"issue_date"` CarClass string `json:"car_class"` ValidFrom string `json:"valid_from"` ValidTo string `json:"valid_to"` OfficialSeal string `json:"official_seal"` }
func GetDrivingLicense ¶
func GetDrivingLicense(clt *core.Client, url_str string) (card DrivingLicense, err error)
驾驶证OCR识别接口
type IdCard ¶
type IdCard struct { PhotoURL string `json:"photo_url"` Type string `json:"type"` // 正反面信息 Name string `json:"name"` Id string `json:"id"` Addr string `json:"addr"` Gender string `json:"gender"` Nationality string `json:"nationality"` ValidDate string `json:"valid_date"` // 20171025-20271025, 仅背面展示 }
type TextItem ¶
type TextItem struct { Text string `json:"text"` Pos struct { LeftTop struct { X int `json:"x"` Y int `json:"y"` } `json:"left_top"` RightTop struct { X int `json:"x"` Y int `json:"y"` } `json:"right_top"` RightBottom struct { X int `json:"x"` Y int `json:"y"` } `json:"right_bottom"` LeftBottom struct { X int `json:"x"` Y int `json:"y"` } `json:"left_bottom"` } `json:"pos"` }
Click to show internal directories.
Click to hide internal directories.