Python Numpy Array To Opencv Image Segmentation Vs Classification