MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / load_image

Function load_image

tools/preprocess/human_visualization.py:1018–1025  ·  view source on GitHub ↗
(img, reverse=False)

Source from the content-addressed store, hash-verified

1016
1017
1018def load_image(img, reverse=False):
1019 if type(img) == str: # noqa
1020 img = cv2.imread(img)
1021 if reverse:
1022 img = img.astype(np.float32)
1023 img = img[:, :, ::-1]
1024 img = img.astype(np.uint8)
1025 return img
1026
1027
1028def draw_skeleten(meta):

Callers 3

draw_bboxFunction · 0.70
draw_kp2dsFunction · 0.70
draw_maskFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected