intelligent

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IdCardFront = "Front"
	IdCardBack  = "Back"
)

Variables

This section is empty.

Functions

func AddVoice

func AddVoice(clt *core.Client, voice_id string, reader io.Reader) (err error)

提交语音 voice_id 为用户上传,保证唯一性

func GetBankCard

func GetBankCard(clt *core.Client, url_str string) (number string, err error)

银行卡OCR识别接口

func GetPlateNum

func GetPlateNum(clt *core.Client, url_str string) (number string, err error)

车牌识别接口

func QueryVoiceText

func QueryVoiceText(clt *core.Client, voice_id string) (text string, err error)

func TranslateCnToEn

func TranslateCnToEn(clt *core.Client, text string) (err error)

func TranslateEnToCn

func TranslateEnToCn(clt *core.Client, text string) (err error)

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

func GetDriving

func GetDriving(clt *core.Client, url_str string) (card Driving, err error)

行驶证OCR识别接口

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, 仅背面展示
}

func GetIdCard

func GetIdCard(clt *core.Client, url_str string) (card IdCard, err error)

身份证OCR识别接口

type MenuItem struct {
	Name  string  `json:"name"`
	Price float64 `json:"price"`
}

func GetMenuItem

func GetMenuItem(clt *core.Client, url_str string) (items []MenuItem, err error)

菜单识别接口

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

func GetCommText

func GetCommText(clt *core.Client, url_str string) (items []TextItem, err error)

通用印刷体OCR识别接口

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL