简体中文 | [English](README_EN.md)
# MODNET-Matting-tool
基于深度学习的抠图工具C#推理工具
[[`Paper`](https://arxiv.org/pdf/2011.11961.pdf )]
关注微信公众号:**人工智能大讲堂**
<img width="180" src="https://user-images.githubusercontent.com/18625471/228743333-77abe467-2385-476d-86a2-e232c6482291.jpg">
后台回复【mat】获取安装包以及模型文件
## 支持多种文件类型</h2>
文件->图像文件 加载本地图像文件
文件->截图
文件->剪切板
文件->视频 为了效率目前Fps为2,即每秒两帧
<img width="500" src="https://user-images.githubusercontent.com/18625471/258716872-9098bd15-165b-41b8-9fe4-77cc7d42a94c.png">
## 支持背景替换</h2>
背景->背景颜色 背景替换为纯色
<img width="500" src="https://user-images.githubusercontent.com/18625471/258718249-be1ccc3b-bc17-4b52-b77b-42761a75f5e6.png">
背景->背景图像 将背景替换为图像
<img width="500" src="https://user-images.githubusercontent.com/18625471/258718270-b71ece79-cfc6-408c-a089-12e3eb807085.png">
## 支持多种保存选择</h2>
保存->保存整体 前景+背景
<img width="300" src="https://user-images.githubusercontent.com/18625471/258719054-bf497476-c953-420f-a0a3-228545c7a60d.png">
保存->保存前景 只保存前景
<img width="300" src="https://user-images.githubusercontent.com/18625471/258719046-f863bb9e-7334-45cd-ab7c-2b33aa044810.png">
保存的图像和视频都在exe所在路径下。
## 源码编译</h2>
1.下载源码到本地
2.Visual Studio打开.sln项目解决方案
3.安装Nuget包
3.1在Visual Studio中,鼠标右键单击项目并选择“管理NuGet程序包”。
3.2在“NuGet包管理器”窗口中,选择“浏览”选项卡。
3.3搜索Microsoft.ML.OnnxRuntime,选择1.15.1版本,点击安装
3.4搜索OpenCvSharp4,选择4.8.0版本,点击安装
3.5搜索OpenCvSharp4.runtime.win,选择4.8.0版本,点击安装
3.6找到Debug或者Release下的ScreenCapture.dll,添加到引用中
4.将MODNET.onnx放到exe路径下
5.运行程序
注意:有时前景图像中可能带有一些碎片,可以使用OpenCV最大连通域算法去掉小的碎片。


m0_904277151
- 粉丝: 2w+
- 资源: 1万+
最新资源
- [西门子PLC实例源码]啤酒发酵.zip
- [西门子PLC实例源码]啤酒发酵程序.zip
- [西门子PLC实例源码]汽缸.zip
- [西门子PLC实例源码]抢答器.zip
- [西门子PLC实例源码]切丝机LOGO程序1.zip
- [西门子PLC实例源码]热供水控制程序.zip
- [西门子PLC实例源码]倾动,氧枪程序.zip
- [西门子PLC实例源码]绕线机程序例子.zip
- [西门子PLC实例源码]人行横道控制.zip
- [西门子PLC实例源码]热收缩包装机程序.zip
- [西门子PLC实例源码]熔铜水平连铸机.zip
- [西门子PLC实例源码]如何变换模拟量值.zip
- (源码)基于PHP和WordPress的二次元主题系统.zip
- [西门子PLC实例源码]冗余实例.zip
- [西门子PLC实例源码]如何300的Profibus从站DX通讯及例程.zip
- [西门子PLC实例源码]如何将一个贺氏MODEM用于S7-200自由口.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈


