Mask two images with python

Oscar Benjamin oscar.j.benjamin at gmail.com
Wed Dec 19 13:22:21 EST 2018


On Wed, 19 Dec 2018 at 05:42, Umar Yusuf <bintacomputers at gmail.com> wrote:
>
> Hello there,
> How do I supper impose an image design on a transparent png image?
>
> I have tried to use OpenCV's "cv2.bitwise_and" function to no success. I posted the detail question here: https://stackoverflow.com/questions/53791510/python-opencv-mask-and-glow

I don't understand what you're trying to do. Can you show example
input and desired output with example numbers? E.g.:

mask = [
[0, 0, 0, 0],
[0, 1, 1, 0],
...
]

image = [
[12, 32, 45, 56],
...

expected_output = ?

--
Oscar


More information about the Python-list mailing list