func (t *TesseractAPI) baseAPIEnd() { t.mutex.Lock() defer t.mutex.Unlock() if !t.disposed { C.TessBaseAPIEnd(t.api) t.disposed = true } }
// void TessBaseAPIDelete(TessBaseAPI* handle); // void TessBaseAPIEnd(TessBaseAPI* handle); func (t *Tess) delete() { if t.tba != nil { C.TessBaseAPIEnd(t.tba) C.TessBaseAPIDelete(t.tba) } }