import cv2
file = '../fin.png' # 原图
mask = '../mask.png' # 遮盖mask
pic_to_inpainted = cv2.imread(filename=file,flags=0)
mask = cv2.imread(mask,flags
cv2修复简单图像cv2.inpaint
最新推荐文章于 2024-07-20 14:38:38 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
import cv2
file = '../fin.png' # 原图
mask = '../mask.png' # 遮盖mask
pic_to_inpainted = cv2.imread(filename=file,flags=0)
mask = cv2.imread(mask,flags