棄用OCR
This commit is contained in:
@@ -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!"))
|
||||
|
Reference in New Issue
Block a user