// Text returns text after analysing the image(s) func (t *Tess) Text() string { cText := C.TessBaseAPIGetUTF8Text(t.tba) defer C.free(unsafe.Pointer(cText)) text := C.GoString(cText) return text }
func (t *TesseractAPI) BaseAPIGetUTF8Text() string { cText := C.TessBaseAPIGetUTF8Text(t.api) defer C.free(unsafe.Pointer(cText)) return C.GoString(cText) }