%matplotlib inline #The line above is necesary to show Matplotlib's plots inside a Jupyter Notebook import cv2 from matplotlib import pyplot as plt StackOverflow