Documentation ¶
Overview ¶
Package ai AI
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Recognize ¶
OCR文字识别
See: https://ding-doc.dingtalk.com/doc#/serverapi2/so7gg5
POST https://oapi.dingtalk.com/topapi/ocr/structured/recognize?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/dingding" "github.com/fastwego/dingding/apis/ai" ) func main() { var ctx *dingding.App payload := []byte("{}") resp, err := ai.Recognize(ctx, payload) fmt.Println(resp, err) }
Output:
func Translate ¶
文本翻译
See: https://ding-doc.dingtalk.com/doc#/serverapi2/cvcp9r
POST https://oapi.dingtalk.com/topapi/ai/mt/translate?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/dingding" "github.com/fastwego/dingding/apis/ai" ) func main() { var ctx *dingding.App payload := []byte("{}") resp, err := ai.Translate(ctx, payload) fmt.Println(resp, err) }
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.