Following code:
img = np.array([[[1,2,4]]]) cv2.subtract(img, tuple([1.0]))
Results in error:
Traceback (most recent call