api_baidu

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetAccessTokenUrl = "https://aip.baidubce.com/oauth/2.0/token"

Functions

func GetAccessTokenFunc

func GetAccessTokenFunc(httpService httpx.IService, appId, appSecret string, extends map[string]any) (res *module_api.OauthInfo, err error)

func GetPlatform

func GetPlatform() *module_api.Platform

Types

type GetAccessTokenResponse

type GetAccessTokenResponse struct {
	AccessToken string `json:"access_token"`
	ExpiresIn   int64  `json:"expires_in"`
}

type OcrAccurateBasic

type OcrAccurateBasic struct {
	LogId          int64                   `json:"log_id"`
	Direction      int32                   `json:"direction"`
	WordsResultNum int32                   `json:"words_result_num"`
	WordsResult    []*OcrAccurateBasicWord `json:"words_result"`
}

func OcrAccurateBasicByImage64

func OcrAccurateBasicByImage64(image64 string) (res *OcrAccurateBasic, err error)

type OcrAccurateBasicWord

type OcrAccurateBasicWord struct {
	Words string `json:"words"`
}

Jump to

Keyboard shortcuts

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