示例#1
0
// void TessBaseAPISetRectangle(TessBaseAPI* handle, int left, int top, int width, int height);
func (t *Tess) SetRectangle(left, top, width, height int) {
	C.TessBaseAPISetRectangle(t.tba, C.int(left), C.int(top), C.int(width), C.int(height))
}
示例#2
0
func (t *TesseractAPI) BaseAPISetRectangle(rect Rectangle) {
	C.TessBaseAPISetRectangle(t.api,
		C.int(rect.left), C.int(rect.top),
		C.int(rect.width), C.int(rect.height))
}