Skip to content

Commit

Permalink
Add lstmbox and wordstrbox to C-API
Browse files Browse the repository at this point in the history
  • Loading branch information
Shreeshrii committed Mar 1, 2019
1 parent 08e9651 commit 76ec21d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/api/capi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,16 @@ TESS_API TessResultRenderer* TESS_CALL TessBoxTextRendererCreate(const char* out
return new TessBoxTextRenderer(outputbase);
}

TESS_API TessResultRenderer* TESS_CALL TessWordStrBoxRendererCreate(const char* outputbase)
{
return new TessWordStrBoxRenderer(outputbase);
}

TESS_API TessResultRenderer* TESS_CALL TessLSTMBOXRendererCreate(const char* outputbase)
{
return new TessLSTMBOXRenderer(outputbase);
}

TESS_API void TESS_CALL TessDeleteResultRenderer(TessResultRenderer* renderer)
{
delete renderer;
Expand Down Expand Up @@ -495,6 +505,16 @@ TESS_API char* TESS_CALL TessBaseAPIGetBoxText(TessBaseAPI* handle, int page_num
return handle->GetBoxText(page_number);
}

TESS_API char* TESS_CALL TessBaseAPIGetWordStrBoxText(TessBaseAPI* handle, int page_number)
{
return handle->GetWordStrBoxText(page_number);
}

TESS_API char* TESS_CALL TessBaseAPIGetLSTMBOXText(TessBaseAPI* handle, int page_number)
{
return handle->GetLSTMBOXText(page_number);
}

TESS_API char* TESS_CALL TessBaseAPIGetUNLVText(TessBaseAPI* handle)
{
return handle->GetUNLVText();
Expand Down

0 comments on commit 76ec21d

Please sign in to comment.