Пример #1
0
// SetInputName sets the name of the input file. Needed only for training and loading a UNLV zone file.
// ++ TODO: drop this?
func (t *Tess) SetInputName(filename string) {
	cFilename := C.CString(filename)
	defer C.free(unsafe.Pointer(cFilename))
	C.TessBaseAPISetInputName(t.tba, cFilename)
}
Пример #2
0
func (t *TesseractAPI) BaseAPISetInputName(name string) {
	cName := C.CString(name)
	defer C.free(unsafe.Pointer(cName))

	C.TessBaseAPISetInputName(t.api, cName)
}