duanduan626 2022-10-16 17:07 采纳率: 25%
浏览 36
已结题

pycharm运行程序出现问题

问题遇到的现象和发生背景

pycharm运行,用的是anaconda的环境,库都有,但在pycharm中打代码后运行出现这个问题,求解决:

Traceback (most recent call last):
File "E:\my_Project\test.py", line 6, in
img_mix = cv2.addWeighted(img1, 0.6, img2, 0.4, 0)
cv2.error: OpenCV(3.4.2) C:\projects\opencv-python\opencv\modules\core\src\arithm.cpp:659: 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'

用代码块功能插入代码,请勿粘贴截图
  • 写回答

2条回答 默认 最新

  • honestman_ 2022-10-16 17:12
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 10月24日
  • 已采纳回答 10月16日
  • 创建了问题 10月16日