MCPcopy Create free account
hub / github.com/PyImageSearch/imutils / opencv2matplotlib

Function opencv2matplotlib

imutils/convenience.py:126–130  ·  view source on GitHub ↗
(image)

Source from the content-addressed store, hash-verified

124 return skeleton
125
126def opencv2matplotlib(image):
127 # OpenCV represents images in BGR order; however, Matplotlib
128 # expects the image in RGB order, so simply convert from BGR
129 # to RGB and return
130 return cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
131
132def url_to_image(url, readFlag=cv2.IMREAD_COLOR):
133 # download the image, convert it to a NumPy array, and then read

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…