# MODNET-Matting-tool **Repository Path**: luojinfang/MODNET-Matting-tool ## Basic Information - **Project Name**: MODNET-Matting-tool - **Description**: No description available - **Primary Language**: C# - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-04-22 - **Last Updated**: 2024-04-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README English | [简体中文](README.md) # MODNET-Matting-tool C# reasoning tool based on deep learning matting tool [[`Paper`](https://arxiv.org/pdf/2011.11961.pdf )] wechat:**人工智能大讲堂** Reply [mat] in the background to get the installation package and model files ## Supports multiple input file types File -> Image File Load a local image file File -> Screenshot File -> Clipboard File -> Video For efficiency, the current Fps is 2, that is, two frames per second ## Support background replacement Background->Background Colo: Replace the background with a solid color Background -> Background Image: Replace the background with an image ## Supports multiple save options Save -> Save Overall :Foreground+Background Save -> Save Foreground: Save only foreground The saved images and videos are all under the path of the exe. ## source code compilation 1. Download the source code to the local 2.Visual Studio opens the .sln project solution
3. Install the Nuget package
3.1 In Visual Studio, right-click on the project and select "Manage NuGet Packages".
3.2 In the "NuGet Package Manager" window, select the "Browse" tab.
3.3 Search for Microsoft.ML.OnnxRuntime, select version 1.15.1, and click Install
3.4 Search for OpenCvSharp4, select version 4.8.0, and click Install
3.5 Search for OpenCvSharp4.runtime.win, select version 4.8.0, and click Install
3.6 Find ScreenCapture.dll under Debug or Release and add it to the reference
5. Put MODNET.onnx in the exe path
6. Run the program