# 照片修复小小助手 (Inpaint_wechat)
照片修复小小助手是一款快速P图微信小程序,用来消除图片中指定的人和物,基于微信AI能力,纯客户端实现,无服务端。
本程序借鉴了 MI-GAN 原项目和 inpaint_web 网页实现项目的逻辑以及部分代码,代码开源。
鉴于微信小程序仅支持有限的算子,为了弥补这一限制,本程序采用了 WebAssembly (wasm) 技术,并结合适配微信的 OpenCV 技术,以实现对模型的预处理和后处理。
Inpaint_wechat is a WeChat mini-program based on the WeChat AI capabilities, implementing the functionality of inpainting and repairing selected areas in images, which is purely implemented by the client and has no server.
The program draws inspiration from the logic and some code of the original MI-GAN project and inpaint_web project.
Given the limited support for operators in WeChat mini-programs, to address this constraint, the program utilizes WebAssembly (wasm) technology.
Additionally, it integrates with WeChat-adapted OpenCV techniques to achieve model preprocessing and post-processing.
## 特点:
- 手机操作,快速去除图片中的杂物,是发朋友圈图片和其他类似需求的好帮手。
- 去水印,去字幕,去掉闲杂人物。。。 多尝试几次,总会有惊喜等着你。
- 图片数据不上传,100% 确保隐私。
注释:小程序首次执行时,会自动下载约30M AI模型到本机。
## Demo(1.选择图片 2.涂抹遮罩 3.消除)
<kbd>
<img src="media/002.jpg" alt="照片修复小助手" width="600"/>
</kbd>
<kbd>
<img src="media/001.jpg" alt="照片修复小助手" width="600"/>
</kbd>
<kbd>
<img src="media/003.jpg" alt="照片修复小助手" width="600"/>
</kbd>
<kbd>
<img src="media/004.jpg" alt="照片修复小助手" width="600"/>
</kbd>
<kbd>
<img src="media/005.jpg" alt="照片修复小助手" width="600"/>
</kbd>
## Video Demo(视频演示)
https://github.com/shifu-group/inpaint_wechat/assets/104042064/06260321-8666-4950-bf9d-116485d5dc0a
## QR Code for the Wechat App (扫描微信小程序二维码打开小程序)
![照片修复小助手](images/mini_code.jpg)
## Operation Tips (操作建议)
1. Multiple inpainting operations can be performed on the target area until satisfactory results are achieved.
可以对目标区域进行连续的多次消除操作,直到对结果满意为止。
2. If you are not satisfied with the current result, you can use "undo" to cancel the operation and then reselect the area.
Please note that this operation is irreversible.
如果对当前结果不满意,可以用“回退”来取消操作,再重新选择区域。注意此操作不可逆。
## Product Roadmap (版本演进)
- [x] Execution speed optimization.
优化执行速度,执行时间缩短2秒以上。
- [x] Manually adjust the mask to zoom in or out.
遮罩手动扩大和缩小。
- [x] New UI.
新的界面。
- [x] Manual download AI model
手动下载AI模型。
- [x] Enlarge the image and apply a mask to a specific portion of the area.
放大图像并在指定区域涂抹遮罩。
- [ ] Workflow UI.
工作流式界面,现有的界面可以看作工作室模式,计划两者共存。
- [ ] Segment anything
调用AI模型实现目标自动识别。 已完成技术调研,由于微信算子的限制,需要接入后端。暂无开发计划。
## Contact
[![Twitter Follow](https://img.shields.io/twitter/follow/zhiyuan?style=social)](https://x.com/zhiyuan54030554)
[📺 bilibili](https://space.bilibili.com/2031846058)
## Reference
- The MI-GAN model
https://github.com/Picsart-AI-Research/MI-GAN
- The inpaint-web repository
https://github.com/lxfater/inpaint-web
- Adapted opencv for WeChat
https://github.com/sanyuered/WeChat-MiniProgram-AR-WASM
- Image Cropper
https://github.com/1977474741/image-cropper
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
【项目资源】: 包含前端、后端、移动开发、操作系统、人工智能、物联网、信息化管理、数据库、硬件开发、大数据、课程资源、音视频、网站开发等各种技术项目的源码。 包括STM32、ESP8266、PHP、QT、Linux、iOS、C++、Java、python、web、C#、EDA、proteus、RTOS等项目的源码。 【项目质量】: 所有源码都经过严格测试,可以直接运行。 功能在确认正常工作后才上传。 【适用人群】: 适用于希望学习不同技术领域的小白或进阶学习者。 可作为毕设项目、课程设计、大作业、工程实训或初期项目立项。 【附加价值】: 项目具有较高的学习借鉴价值,也可直接拿来修改复刻。 对于有一定基础或热衷于研究的人来说,可以在这些基础代码上进行修改和扩展,实现其他功能。 【沟通交流】: 有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。 鼓励下载和使用,并欢迎大家互相学习,共同进步。
资源推荐
资源详情
资源评论
收起资源包目录
《照片修复小小助手》是一款基于微信AI能力的微信小程序,实现了图片选定区域的消除修复功能,纯客户端实现,无服务端。I.zip (56个子文件)
资料总结
sitemap.json 201B
project.private.config.json 390B
pages
cropper
cropper.js 3KB
cropper.json 273B
cropper.wxss 516B
cropper.wxml 767B
logs
logs.json 54B
logs.js 266B
logs.wxml 188B
logs.wxss 106B
painting2
painting2.wxss 3KB
painting2.js 14KB
painting2.wxml 4KB
imageProcessor.js 7KB
painting2.json 137B
migan.js 17KB
app.json 281B
project.config.json 792B
media
005.jpg 112KB
inpaint-wechat_480.mp4 2.65MB
003.jpg 160KB
002.jpg 137KB
004.jpg 110KB
001.jpg 86KB
app.js 1KB
LICENSE 34KB
utils
util.js 460B
opencv3.4.16.wasm.br 1.15MB
opencv_exec.js 438KB
app.wxss 15B
.idea
vcs.xml 167B
workspace.xml 6KB
misc.xml 276B
inspectionProfiles
profiles_settings.xml 174B
modules.xml 276B
component
image-cropper
image-cropper.wxss 2KB
image-cropper.wxml 2KB
image-cropper.json 22B
image-cropper.js 48KB
images
mini_code.jpg 57KB
static
icons
drag.png 8KB
zoom-out.png 17KB
edit.png 6KB
undo.png 16KB
save-fill.png 9KB
folder-open.png 9KB
edit-fill.png 5KB
folder-open-fill.png 6KB
clear.png 8KB
zoom-in.png 18KB
ellipsis.png 3KB
paint.png 2KB
save.png 10KB
caret-right.png 6KB
brush.png 1KB
README.md 4KB
共 56 条
- 1
资源评论
妄北y
- 粉丝: 1w+
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Picasso_v3.1 2.ipa
- chromedriver-mac-arm64.zip
- 蓝zapro.apk
- chromedriver-linux64.zip
- UCAS研一深度学习实验-MNIST手写数字识别python源码+详细注释(高分项目)
- 基于Python和PyTorch框架完成的一个手写数字识别实验源码(带MINIST手写数字数据集)+详细注释(高分项目)
- 基于Matlab在MNIST数据集上利用CNN完成手写体数字识别任务,并实现单层CNN反向传播算法+源代码+文档说明(高分项目)
- NVIDIA驱动、CUDA和Pytorch及其依赖
- 基于SVM多特征融合的微表情识别python源码+项目说明+详细注释(高分课程设计)
- html动态爱心代码一(附源码)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功