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

Function load_json

anyword_data.py:12–16  ·  view source on GitHub ↗
(file_path: str)

Source from the content-addressed store, hash-verified

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

Callers 1

load_dataMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected