EADST

OpenCV: Add An Mask to One Image

OpenCV: Add An Mask to One Image

import cv2
img= cv2.imread("test.jpg")
mask_roi = cv2.imread("mask.jpg")
img_mask = cv2.bitwise_and(img, mask_roi) 
cv2.imwrite("img_mask.jpg", img_mask)
相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
站点统计

本站现有博文266篇,共被浏览440638

本站已经建立2019天!

热门文章
文章归档
回到顶部