MCPcopy Create free account
hub / github.com/buaacxf/VIPTR / ImgPIL2CV

Function ImgPIL2CV

dataload/dataAug.py:10–12  ·  view source on GitHub ↗
(img)

Source from the content-addressed store, hash-verified

8from dataload.aug import tia_distort, tia_stretch, tia_perspective
9
10def ImgPIL2CV(img):
11 img = cv2.cvtColor(np.array(img), cv2.COLOR_RGB2BGR)
12 return img
13
14
15def ImgPIL2CV_fast(img):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected