MCPcopy Create free account
hub / github.com/ChenhongyiYang/QueryDet-PyTorch / copy_image

Function copy_image

visdrone/data_prepare.py:39–43  ·  view source on GitHub ↗
(img_root, img_path, new_img_root)

Source from the content-addressed store, hash-verified

37
38
39def copy_image(img_root, img_path, new_img_root):
40 img = cv2.imread(os.path.join(img_root,img_path))
41 h, w, c = img.shape
42 cv2.imwrite(os.path.join(new_img_root, img_path), img)
43 return h, w
44
45
46def get_new_label(label, img_path, cy, cx, id, img_id_base):

Callers 1

make_new_test_setFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected