Below is a dumbed downed version of my application:
# python 2.7 import cv2 from matplotlib import pyplot as plt import numpy as np def fig2img(fig):