Example #1
0
// 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
}
Example #2
0
func (t *TesseractAPI) BaseAPIGetUTF8Text() string {
	cText := C.TessBaseAPIGetUTF8Text(t.api)
	defer C.free(unsafe.Pointer(cText))

	return C.GoString(cText)
}