Exemple #1
0
// SetImagePix sets the input image using a leptonica Pix
func (t *Tess) SetImagePix(pix *leptonica.Pix) {
	C.TessBaseAPISetImage2(t.tba, (*C.struct_Pix)(unsafe.Pointer(pix.CPIX())))
}
Exemple #2
0
func (t *TesseractAPI) BaseAPISetImage(pix *lept.Pix) {
	cPix := pix.RawPix()
	C.TessBaseAPISetImage2(t.api, (*C.struct_Pix)(unsafe.Pointer(cPix)))
}