(image)
| 124 | return skeleton |
| 125 | |
| 126 | def 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 | |
| 132 | def url_to_image(url, readFlag=cv2.IMREAD_COLOR): |
| 133 | # download the image, convert it to a NumPy array, and then read |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…