import cv2 as cv2 import numpy as np print(f'cv2 v.{cv2.__version__}') x = np.uint8([250]) y = np.uint8([10]) z = cv2.add(x,y) print(x.shape) print(y.shape) print(z.shape) print(z)
cv2 v.4.10.0
(1,)
(4, 1)
[[260.]
[ 0.]
[ 0.]]