![285069e3c011715111d33ccdbcf74b0e.png](https://img-blog.csdnimg.cn/img_convert/285069e3c011715111d33ccdbcf74b0e.png)
通过opencv 作出这种效果
![2e4108663ffb64309af5d708649ba5e2.png](https://img-blog.csdnimg.cn/img_convert/2e4108663ffb64309af5d708649ba5e2.png)
思路:
![2231beb4cb2862f35aa7aab239bc6f4f.png](https://img-blog.csdnimg.cn/img_convert/2231beb4cb2862f35aa7aab239bc6f4f.png)
import cv2
'''
网址: https://www.pianshen.com/article/7034104097/
目的;把logo添上到fisherman上
思路:1 将logo 灰度化————>二值化 有logo的像素位置黑色,没logo的为白色
2 二值化后的logo 和 fisherman相应位置 进行and 位运算 得到前景
3 反转二值化后的logo 将其和 logo原图像作 and位运算 得到背景
4 前景+背景————》赋值到fisherman相应位置
cv2.bitwise_and cv2.bitwise_