def image_preprocess(img): b, g, r = cv2.split(img) return cv2.merge([(b-mean_value[0])/std[0], (g-mean_value[1])/std[1], (r-mean_value[2])/std[2]])