Mask two images with python

Umar Yusuf bintacomputers at gmail.com
Fri Dec 21 04:25:57 EST 2018


On Wednesday, 19 December 2018 19:22:51 UTC+1, Oscar Benjamin  wrote:
> On Wed, 19 Dec 2018 at 05:42, Umar Yusuf <bin... 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


Hello Oscar,
Thank you for your time.. Here is attached is an example set of the images: https://drive.google.com/file/d/1hyiWswx4GCZQDepXZjktq2zgM_LBbxXt/view?usp=sharing basically, it is "design + mask and glow = result"







More information about the Python-list mailing list