MCPcopy Create free account
hub / github.com/chibohe/text_recognition_toolbox / writeCache

Function writeCache

tools/create_lmdb_dataset.py:22–25  ·  view source on GitHub ↗
(env, cache)

Source from the content-addressed store, hash-verified

20
21
22def writeCache(env, cache):
23 with env.begin(write=True) as txn:
24 for k, v in cache.items():
25 txn.put(k, v)
26
27
28def createDataset(inputPath, gtFile, outputPath, checkValid=True):

Callers 1

createDatasetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected