Python Numpy Array To Opencv Image Segmentation Using Tensorflow