棄用OCR

This commit is contained in:
2023-04-14 13:35:45 +08:00
parent 094d96cc06
commit de95746dce
2 changed files with 29 additions and 0 deletions

View File

@@ -191,6 +191,15 @@ func main() {
return
}
// test ocr
//client := gosseract.NewClient()
//defer client.Close()
//client.SetLanguage("chi_sim")
//client.SetImage("/home/stori/webp/data/tt.jpeg")
//text, _ := client.Text()
//fmt.Println(text)
//fmt.Println("=======================================")
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
defer LogComponent(time.Now().UnixNano(), r) // 最后打印日志
w.Write([]byte("Hello World!"))