Here is my code:
import cv2 as cv
import numpy as np
x=np.uint8([250])
y=np.uint8([10])
print("x's shape",x.shape)
print("y's shape",y.shape)
print(cv.add(x,y))
and after running the code, the result is as follows:
It should be [[255]] for the question.
New contributor
user24738980 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.