diff --git a/README.md b/README.md index 6862a68..cd0b52e 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ cv2.imshow("Skeleton", skeleton) Skeletonization example ## Displaying with Matplotlib -In the Python bindings of OpenCV, images are represented as NumPy arrays in BGR order. This works fine when using the `cv2.imshow` function. However, if you intend on using Matplotlib, the `plt.imshow` function assumes the image is in RGB order. A simple call to `cv2.cvtColor` will resolve this problem, or you can use the `opencv2matplotlib` conveince function. +In the Python bindings of OpenCV, images are represented as NumPy arrays in BGR order. This works fine when using the `cv2.imshow` function. However, if you intend on using Matplotlib, the `plt.imshow` function assumes the image is in RGB order. A simple call to `cv2.cvtColor` will resolve this problem, or you can use the `opencv2matplotlib` convenience function. #### Example:
# INCORRECT: show the image without converting color spaces
@@ -79,4 +79,4 @@ plt.imshow(imutils.opencv2matplotlib(cactus))
 plt.show()
#### Output: -Matplotlib example \ No newline at end of file +Matplotlib example