tesseract  5.0.0-alpha-619-ge9db
tesseract::TessUnlvRenderer Class Reference

#include <renderer.h>

Inheritance diagram for tesseract::TessUnlvRenderer:
tesseract::TessResultRenderer

Public Member Functions

 TessUnlvRenderer (const char *outputbase)
 
- Public Member Functions inherited from tesseract::TessResultRenderer
virtual ~TessResultRenderer ()
 
void insert (TessResultRenderer *next)
 
TessResultRenderernext ()
 
bool BeginDocument (const char *title)
 
bool AddImage (TessBaseAPI *api)
 
bool EndDocument ()
 
const char * file_extension () const
 
const char * title () const
 
bool happy ()
 
int imagenum () const
 

Protected Member Functions

bool AddImageHandler (TessBaseAPI *api) override
 
- Protected Member Functions inherited from tesseract::TessResultRenderer
 TessResultRenderer (const char *outputbase, const char *extension)
 
virtual bool BeginDocumentHandler ()
 
virtual bool EndDocumentHandler ()
 
void AppendString (const char *s)
 
void AppendData (const char *s, int len)
 

Detailed Description

Renders tesseract output into a plain UTF-8 text string

Definition at line 253 of file renderer.h.

Constructor & Destructor Documentation

◆ TessUnlvRenderer()

tesseract::TessUnlvRenderer::TessUnlvRenderer ( const char *  outputbase)
explicit

Definition at line 174 of file renderer.cpp.

Member Function Documentation

◆ AddImageHandler()

bool tesseract::TessUnlvRenderer::AddImageHandler ( TessBaseAPI api)
overrideprotectedvirtual

Implements tesseract::TessResultRenderer.

Definition at line 178 of file renderer.cpp.

179  : TessResultRenderer(outputbase, "unlv") {
180 }
181 
183  const std::unique_ptr<const char[]> unlv(api->GetUNLVText());
184  if (unlv == nullptr) return false;
185 

The documentation for this class was generated from the following files:
tesseract::TessResultRenderer::TessResultRenderer
TessResultRenderer(const char *outputbase, const char *extension)
Definition: renderer.cpp:32
tesseract::TessUnlvRenderer::AddImageHandler
bool AddImageHandler(TessBaseAPI *api) override
Definition: renderer.cpp:178
TessBaseAPI
struct TessBaseAPI TessBaseAPI
Definition: capi.h:72