Ask Your Question

Revision history [back]

Problem in cv2.add

Hi all!

My name is Arturo, this is my first question.

I have a problem with cv2.add function, I have two images with the same size and the same type, but when I try to do cv2.add I have this error:

error: /tmp/binarydeb/ros-kinetic-opencv3-3.2.0/modules/core/src/arithm.cpp:659: error: (-209) 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 arithm_op

I don't know what can be happening.

Thanks in advance,
Arturo.

Problem in cv2.add

Hi all!

My name is Arturo, this is my first question.

I have a problem with cv2.add function, I have two images with the same size and the same type, but when I try to do cv2.add I have this error:

error: /tmp/binarydeb/ros-kinetic-opencv3-3.2.0/modules/core/src/arithm.cpp:659: error: (-209) 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 arithm_op

I don't know what can be happening.

Thanks in advance,
Arturo.