mirror of
https://codeberg.org/aryak/mozhi
synced 2025-06-04 00:41:07 +05:30
imgtxt was dumb
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"github.com/otiai10/gosseract/v2"
|
||||
)
|
||||
|
||||
func ImgTxt(file string) (string, error) {
|
||||
client := gosseract.NewClient()
|
||||
defer client.Close()
|
||||
client.SetImage(file)
|
||||
text, err := client.Text()
|
||||
return text, err
|
||||
}
|
Reference in New Issue
Block a user