예제 #1
0
func (t *TesseractAPI) baseAPIEnd() {
	t.mutex.Lock()
	defer t.mutex.Unlock()

	if !t.disposed {
		C.TessBaseAPIEnd(t.api)
		t.disposed = true
	}
}
예제 #2
0
// void TessBaseAPIDelete(TessBaseAPI* handle);
// void TessBaseAPIEnd(TessBaseAPI* handle);
func (t *Tess) delete() {
	if t.tba != nil {
		C.TessBaseAPIEnd(t.tba)
		C.TessBaseAPIDelete(t.tba)
	}
}