From ff547d6ef92e7deae6a88c30ed2912339a5888b2 Mon Sep 17 00:00:00 2001 From: jubjamie Date: Thu, 23 Feb 2017 14:31:06 +0000 Subject: [PATCH] Fix CV2 BGR2RGB Transform Caller --- deconv_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deconv_utils.py b/deconv_utils.py index bf601cd..3924c72 100644 --- a/deconv_utils.py +++ b/deconv_utils.py @@ -161,7 +161,7 @@ def plot_image(im): def plot_image_cv2(im): im = deprocess_image(im) - im = cv2.cvtColor(im, cv2.cv.CV_BGR2RGB) + im = cv2.cvtColor(im, cv2.COLOR_BGR2RGB) plt.figure() plt.imshow(im) #cv.imshow("Image",im)