MCPcopy Create free account
hub / github.com/asottile/nintendo-microcontrollers / tessapi_int

Function tessapi_int

scripts/engine.py:170–177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168
169@functools.lru_cache
170def tessapi_int() -> tesserocr.PyTessBaseAPI:
171 api = tesserocr.PyTessBaseAPI(
172 tessdata.data_path(),
173 'eng',
174 psm=tesserocr.PSM.SINGLE_LINE,
175 )
176 api.SetVariable('tessedit_char_whitelist', string.digits)
177 return api
178
179
180def tess_text_u8(

Callers 1

get_statsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected