Example #1
0
func (t *TesseractAPI) baseAPIDelete() {
	t.mutex.Lock()
	defer t.mutex.Unlock()

	if !t.disposed {
		C.TessBaseAPIDelete(t.api)
		t.disposed = true
	}
}
Example #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)
	}
}