|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
import cv2
img1 = cv2.imread("test0.jpg")
img2 = cv2.imread("test01.jpg")
add1 = cv2.add(img1,img2)
cv2.namedWindow("Image",cv2.WINDOW_FREERATIO)
cv2.imshow("Image", add1)
cv2.waitKey(-1)
cv2.destroyAllWindows()
返回
D:\Anaconda\envs\python\python.exe D:\python\dd.py
Traceback (most recent call last):
File "D:\python\dd.py", line 7, in <module>
add1 = cv2.add(img1,img2)
cv2.error: OpenCV(4.6.0) C:\b\abs_74oeeuevib\croots\recipe\opencv-suite_1664548340488\work\modules\core\src\arithm.cpp:650: error: (-209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and the same number of channels), nor 'array op scalar', nor 'scalar op array' in function 'cv::arithm_op'
|
|