MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / load_json

Function load_json

anyword_data_lmdb.py:15–19  ·  view source on GitHub ↗
(file_path: str)

Source from the content-addressed store, hash-verified

13import os
14
15def load_json(file_path: str):
16 file_path = pathlib.Path(file_path)
17 with open(file_path, 'rb') as f:
18 content = f.read()
19 return ujson.loads(content)
20
21
22def generate_mask(trans_image, im_shape, resolution, polygon, location):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected