示例#1
0
 public int PageIteratorIsAtFinalElement(IntPtr handle,
                                         PageIteratorLevel level,
                                         PageIteratorLevel element
                                         )
 {
     return(UnsafeTesseractPrimitives.PageIteratorIsAtFinalElement(handle, (int)level, (int)element));
 }
示例#2
0
 /// <inheritdoc />
 public int BaseApiSetDebugVariable(IEngineHandle engine,
                                    string name,
                                    string value
                                    )
 {
     return(UnsafeTesseractPrimitives.BaseApiSetDebugVariable(engine.Handle, name, value));
 }
示例#3
0
 /// <inheritdoc />
 public int BaseApiGetIntVariable(IEngineHandle engine,
                                  string name,
                                  out int value
                                  )
 {
     return(UnsafeTesseractPrimitives.BaseApiGetIntVariable(engine.Handle, name, out value));
 }
示例#4
0
 /// <inheritdoc />
 public void BaseApiSetRectangle(IEngineHandle engine,
                                 int left,
                                 int top,
                                 int width,
                                 int height
                                 )
 {
     UnsafeTesseractPrimitives.BaseApiSetRectangle(engine.Handle, left, top, width, height);
 }
示例#5
0
 public IntPtr PageIteratorGetImage(IntPtr handle,
                                    PageIteratorLevel level,
                                    int padding,
                                    out int left,
                                    out int top
                                    )
 {
     return(UnsafeTesseractPrimitives.PageIteratorGetImage(handle, (int)level, padding, out left, out top));
 }
示例#6
0
 /// <inheritdoc />
 public int BaseApiInit(IEngineHandle engine,
                        string datapath,
                        string language,
                        int mode,
                        IntPtr configs, int configs_size,
                        IntPtr vars_vec, int vars_vec_size, IntPtr vars_values, int vars_values_size
                        )
 {
     return(UnsafeTesseractPrimitives.BaseApiInit(engine.Handle, datapath, language, mode, configs, configs_size, vars_vec, vars_vec_size, vars_values, vars_values_size));
 }
示例#7
0
 public int PageIteratorBoundingBox(IntPtr handle,
                                    PageIteratorLevel level,
                                    out int left,
                                    out int top,
                                    out int right,
                                    out int bottom
                                    )
 {
     return(UnsafeTesseractPrimitives.PageIteratorBoundingBox(handle, (int)level, out left, out top, out right, out bottom));
 }
示例#8
0
 public int PageIteratorBaseline(IntPtr handle,
                                 PageIteratorLevel level,
                                 out int x1,
                                 out int y1,
                                 out int x2,
                                 out int y2
                                 )
 {
     return(UnsafeTesseractPrimitives.PageIteratorBaseline(handle, (int)level, out x1, out y1, out x2, out y2));
 }
示例#9
0
        public void PageIteratorOrientation(IntPtr handle,
                                            out Orientation orientation,
                                            out WritingDirection writingDirection,
                                            out TextLineOrder textLineOrder,
                                            out float deskew_angle
                                            )
        {
            int intOrientation = 0;
            int intWritingDirection;
            int intTextLineOrder;

            UnsafeTesseractPrimitives.PageIteratorOrientation(handle, out intOrientation, out intWritingDirection, out intTextLineOrder, out deskew_angle);
            orientation      = (Orientation)intOrientation;
            writingDirection = (WritingDirection)intWritingDirection;
            textLineOrder    = (TextLineOrder)intTextLineOrder;
        }
示例#10
0
 /// <inheritdoc />
 public IntPtr ResultIteratorCopy(IntPtr handle)
 {
     return(UnsafeTesseractPrimitives.ResultIteratorCopy(handle));
 }
示例#11
0
 public IntPtr PageIteratorGetBinaryImage(IntPtr handle,
                                          PageIteratorLevel level
                                          )
 {
     return(UnsafeTesseractPrimitives.PageIteratorGetBinaryImage(handle, (int)level));
 }
示例#12
0
 public PolyBlockType PageIteratorBlockType(IntPtr handle)
 {
     return((PolyBlockType)UnsafeTesseractPrimitives.PageIteratorBlockType(handle));
 }
示例#13
0
 /// <inheritdoc />
 public string ResultIteratorGetUTF8Text(IntPtr handle,
                                         PageIteratorLevel level
                                         )
 {
     return(UnsafeTesseractPrimitives.ResultIteratorGetUTF8Text(handle, (int)level).IntPtrToStringSafe());
 }
示例#14
0
 /// <inheritdoc />
 public void BaseApiDelete(IEngineHandle engine)
 {
     UnsafeTesseractPrimitives.BaseApiDelete(engine.Handle);
 }
示例#15
0
 /// <inheritdoc />
 public void DeleteBlockList(IntPtr arr)
 {
     UnsafeTesseractPrimitives.DeleteBlockList(arr);
 }
示例#16
0
 public int PageIteratorNext(IntPtr handle,
                             PageIteratorLevel level
                             )
 {
     return(UnsafeTesseractPrimitives.PageIteratorNext(handle, (int)level));
 }
示例#17
0
 public void PageIteratorBegin(IntPtr handle)
 {
     UnsafeTesseractPrimitives.PageIteratorBegin(handle);
 }
示例#18
0
 public IntPtr PageIteratorCopy(IntPtr handle)
 {
     return(UnsafeTesseractPrimitives.PageIteratorCopy(handle));
 }
示例#19
0
 public void PageIteratorDelete(IntPtr handle)
 {
     UnsafeTesseractPrimitives.PageIteratorDelete(handle);
 }
示例#20
0
 /// <inheritdoc />
 public float ResultIteratorGetConfidence(IntPtr handle,
                                          PageIteratorLevel level
                                          )
 {
     return(UnsafeTesseractPrimitives.ResultIteratorGetConfidence(handle, (int)level));
 }
示例#21
0
 /// <inheritdoc />
 public void DeleteText(IntPtr textPtr)
 {
     UnsafeTesseractPrimitives.DeleteText(textPtr);
 }
示例#22
0
 /// <inheritdoc />
 public string BaseApiGetUTF8Text(IEngineHandle engine)
 {
     return(UnsafeTesseractPrimitives.BaseAPIGetUTF8Text(engine.Handle).IntPtrToStringSafe());
 }
示例#23
0
 /// <inheritdoc />
 public void DeleteIntArray(IntPtr arr)
 {
     UnsafeTesseractPrimitives.DeleteIntArray(arr);
 }
示例#24
0
 /// <inheritdoc />
 public string BaseApiGetHOCRText(IEngineHandle engine,
                                  int pageNum
                                  )
 {
     return(UnsafeTesseractPrimitives.BaseAPIGetHOCRText(engine.Handle, pageNum).IntPtrToStringSafe());
 }
示例#25
0
 /// <inheritdoc />
 public IntPtr BaseApiCreate()
 {
     return(UnsafeTesseractPrimitives.BaseApiCreate());
 }
示例#26
0
 /// <inheritdoc />
 public void ResultIteratorDelete(IntPtr handle)
 {
     UnsafeTesseractPrimitives.ResultIteratorDelete(handle);
 }
示例#27
0
 /// <inheritdoc />
 public int BaseApiMeanTextConf(IEngineHandle engine)
 {
     return(UnsafeTesseractPrimitives.BaseAPIMeanTextConf(engine.Handle));
 }
示例#28
0
 /// <inheritdoc />
 public IntPtr ResultIteratorGetPageIterator(IntPtr handle)
 {
     return(UnsafeTesseractPrimitives.ResultIteratorGetPageIterator(handle));
 }
示例#29
0
 public int PageIteratorIsAtBeginningOf(IntPtr handle,
                                        PageIteratorLevel level
                                        )
 {
     return(UnsafeTesseractPrimitives.PageIteratorIsAtBeginningOf(handle, (int)level));
 }
示例#30
0
 /// <inheritdoc />
 public void BaseApiClear(IEngineHandle engine)
 {
     UnsafeTesseractPrimitives.BaseAPIClear(engine.Handle);
 }