def _create_image_from_data(self, image_data):

        np_array = np.fromstring(image_data, np.uint8)
        image = cv2.imdecode(np_array, cv2.CV_LOAD_IMAGE_COLOR)
        return image
Convert string image data to cv2.Mat.
dataset/ETHPy150Open GoogleCloudPlatform/appengine-opencv-sudoku-python/sudoku_image_parser.py/SudokuImageParser._create_image_from_data