mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 11:09:06 +08:00
Add lstmbox and wordstrbox to C-API
This commit is contained in:
parent
08e96516c6
commit
76ec21df3d
@ -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;
|
||||
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user