MCPcopy Create free account
hub / github.com/creatale/node-dv / GetBoolVariable

Method GetBoolVariable

deps/tesseract/api/baseapi.cpp:234–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234bool TessBaseAPI::GetBoolVariable(const char *name, bool *value) const {
235 BoolParam *p = ParamUtils::FindParam<BoolParam>(
236 name, GlobalParams()->bool_params, tesseract_->params()->bool_params);
237 if (p == NULL) return false;
238 *value = (BOOL8)(*p);
239 return true;
240}
241
242const char *TessBaseAPI::GetStringVariable(const char *name) const {
243 StringParam *p = ParamUtils::FindParam<StringParam>(

Callers 5

NAN_GETTERFunction · 0.80
AddImageHandlerMethod · 0.80
PreloadRenderersFunction · 0.80
mainFunction · 0.80

Calls 2

GlobalParamsFunction · 0.85
paramsMethod · 0.80

Tested by

no test coverage detected