A framework in python and opencv that will create classifiers for arbitrary contour shapes