I am trying to call the following C++ method from my python code:
TESS_API TessResultRenderer* TESS_CALL TessTextRendererCreate(const char* outputbase)
{
return new TessTextRenderer(outputbase);
}
I'm having difficulty with how to pass the pointer to the method:
Is following the right way?
textRenderer = self.tesseract.TessTextRendererCreate(ctypes.c_char)
or should I be doing:
outputbase = ctypes.c_char * 512
textRenderer = self.tesseract.TessTextRendererCreate(ctypes.pointer(outputbase))
Doing above gives me error:
TypeError: _type_ must have storage info