ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
**tuotoo/qrcode识别二维码** github地址:https://github.com/tuotoo/qrcode 获取: ~~~ go get github.com/tuotoo/qrcode ~~~ 读取二维码图片: ~~~ package main import ( "fmt" "os" "github.com/tuotoo/qrcode" ) func main() { fi, err := os.Open("qrcode.png") if err != nil { fmt.Println(err.Error()) return } defer fi.Close() qrmatrix, err := qrcode.Decode(fi) if err != nil { fmt.Println(err.Error()) return } fmt.Println(qrmatrix.Content) } ~~~