Skip to content

[cv2] cv2.add can accept scalar value, not only Mat #231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
xnuk opened this issue Sep 12, 2022 · 0 comments · Fixed by #285
Closed

[cv2] cv2.add can accept scalar value, not only Mat #231

xnuk opened this issue Sep 12, 2022 · 0 comments · Fixed by #285

Comments

@xnuk
Copy link

xnuk commented Sep 12, 2022

Currently defined as def add(src1: Mat, src2: Mat, ...):

def add(src1: Mat, src2: Mat, dts: Mat = ..., mask: Mat = ..., dtype=...) -> typing.Any:

But both src1 and src2 can be a scalar value, according to OpenCV documents:

Parameters

  • src1 first input array or a scalar.
  • src2 second input array or a scalar.

from: https://docs.opencv.org/4.6.0/d2/de8/group__core__array.html#ga10ac1bfb180e2cfda1701d06c24fdbd6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant