Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 17100

Call cv.add(),but it doesn't return the correct answer

$
0
0

Here is my code:

import cv2 as cvimport numpy as npx=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:

result

It should be [[255]] for the question.


Viewing all articles
Browse latest Browse all 17100

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>