Esempio n. 1
0
// Simple executes tesseract only with source image file path.
func Simple(imgPath string, whitelist string, languages string) string {
	p := C.CString(imgPath)
	w := C.CString(whitelist)
	l := C.CString(languages)

	s := C.simple(p, w, l)
	return C.GoString(s)
}
Esempio n. 2
0
func Process(filename, language string) (string, error) {
	p := C.CString(filename)
	w := C.CString("")
	s := C.simple(p, w)
	return C.GoString(s)
}