The below code is for illustration purposes:
# python 2.7 import cv2 import numpy as np import matplotlib; matplotlib.use("TkAgg") import matplotlib