public synchronized void delete() { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; VisionProxyJNI.delete_OCRRect(swigCPtr); } swigCPtr = 0; } }
public synchronized void delete() { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; VisionProxyJNI.delete_OCRParagraph(swigCPtr); } swigCPtr = 0; } super.delete(); }
public void reserve(long n) { VisionProxyJNI.OCRWords_reserve(swigCPtr, this, n); }
public void setWidth(int value) { VisionProxyJNI.OCRRect_width_set(swigCPtr, this, value); }
public void setHeight(int value) { VisionProxyJNI.OCRRect_height_set(swigCPtr, this, value); }
public void setY(int value) { VisionProxyJNI.OCRRect_y_set(swigCPtr, this, value); }
public OCRRect() { this(VisionProxyJNI.new_OCRRect__SWIG_0(), true); }
public Vision() { this(VisionProxyJNI.new_Vision(), true); }
public static void setSParameter(String param, String val) { VisionProxyJNI.Vision_setSParameter(param, val); }
protected OCRParagraph(long cPtr, boolean cMemoryOwn) { super(VisionProxyJNI.OCRParagraph_SWIGUpcast(cPtr), cMemoryOwn); swigCPtr = cPtr; }
public void set(int i, OCRWord val) { VisionProxyJNI.OCRWords_set(swigCPtr, this, i, OCRWord.getCPtr(val), val); }
public OCRWord get(int i) { return new OCRWord(VisionProxyJNI.OCRWords_get(swigCPtr, this, i), false); }
public void add(OCRWord x) { VisionProxyJNI.OCRWords_add(swigCPtr, this, OCRWord.getCPtr(x), x); }
public void clear() { VisionProxyJNI.OCRWords_clear(swigCPtr, this); }
public boolean isEmpty() { return VisionProxyJNI.OCRWords_isEmpty(swigCPtr, this); }
public static Mat createMat(int _rows, int _cols, byte[] _data) { return new Mat(VisionProxyJNI.Vision_createMat(_rows, _cols, _data), true); }
public static float getParameter(String param) { return VisionProxyJNI.Vision_getParameter(param); }
public OCRLines getLines() { return new OCRLines(VisionProxyJNI.OCRParagraph_getLines(swigCPtr, this), true); }
public static String getSParameter(String param) { return VisionProxyJNI.Vision_getSParameter(param); }
public OCRParagraph() { this(VisionProxyJNI.new_OCRParagraph(), true); }
public static FindResults findChanges(FindInput q) { return new FindResults(VisionProxyJNI.Vision_findChanges(FindInput.getCPtr(q), q), true); }
public static double compare(Mat m1, Mat m2) { return VisionProxyJNI.Vision_compare(Mat.getCPtr(m1), m1, Mat.getCPtr(m2), m2); }
public OCRRect(int x_, int y_, int width_, int height_) { this(VisionProxyJNI.new_OCRRect__SWIG_1(x_, y_, width_, height_), true); }
public static void initOCR(String ocrDataPath) { VisionProxyJNI.Vision_initOCR(ocrDataPath); }
public int getY() { return VisionProxyJNI.OCRRect_y_get(swigCPtr, this); }
public static OCRText recognize_as_ocrtext(Mat image) { return new OCRText(VisionProxyJNI.Vision_recognize_as_ocrtext(Mat.getCPtr(image), image), true); }
public int getHeight() { return VisionProxyJNI.OCRRect_height_get(swigCPtr, this); }
public static String recognizeWord(Mat image) { return VisionProxyJNI.Vision_recognizeWord(Mat.getCPtr(image), image); }
public int getWidth() { return VisionProxyJNI.OCRRect_width_get(swigCPtr, this); }
public long capacity() { return VisionProxyJNI.OCRWords_capacity(swigCPtr, this); }