{"id":26067172,"url":"https://github.com/zygotecode/nsfwsharp","last_synced_at":"2026-05-08T05:52:58.136Z","repository":{"id":276215263,"uuid":"928597740","full_name":"ZygoteCode/NsfwSharp","owner":"ZygoteCode","description":"So far, the best C#.NET 9.0 open-source library that uses YOLOv11 with YoloDotNet (Microsoft.ML.OnnxRuntime) with a heavy trained ONNX model on a big NSFW images dataset!","archived":false,"fork":false,"pushed_at":"2025-02-06T22:45:02.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T12:40:24.088Z","etag":null,"topics":["classification","classifier","csharp","detector","dotnet","dotnet-core","dotnetcore","image-classification","inappropriate","machine-learning","mlnet","nsfw","nsfw-classifier","nsfw-detection","nsfw-recognition","nude","nudity","nudity-detection","porn","pornography"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZygoteCode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-06T22:32:36.000Z","updated_at":"2025-02-06T22:45:06.000Z","dependencies_parsed_at":"2025-02-06T23:28:59.867Z","dependency_job_id":"e8c7d33c-a775-4c3f-b85e-09651243de51","html_url":"https://github.com/ZygoteCode/NsfwSharp","commit_stats":null,"previous_names":["gabryb03/nsfwsharp","zygotecode/nsfwsharp"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZygoteCode%2FNsfwSharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZygoteCode%2FNsfwSharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZygoteCode%2FNsfwSharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZygoteCode%2FNsfwSharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZygoteCode","download_url":"https://codeload.github.com/ZygoteCode/NsfwSharp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242610240,"owners_count":20157664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["classification","classifier","csharp","detector","dotnet","dotnet-core","dotnetcore","image-classification","inappropriate","machine-learning","mlnet","nsfw","nsfw-classifier","nsfw-detection","nsfw-recognition","nude","nudity","nudity-detection","porn","pornography"],"created_at":"2025-03-08T21:33:59.729Z","updated_at":"2026-05-08T05:52:58.130Z","avatar_url":"https://github.com/ZygoteCode.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NsfwSharp\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![C# .NET 9.0](https://img.shields.io/badge/C%23-.NET%209.0-blue)](https://dotnet.microsoft.com/download/dotnet/9.0)\n[![YOLOv11](https://img.shields.io/badge/YOLOv11-ONNX%20Model-blueviolet)](#)\n\n\u003e **So far, the best C#.NET 9.0 open-source library that uses YOLOv11 with YoloDotNet (Microsoft.ML.OnnxRuntime) powered by a heavily trained ONNX model on a vast NSFW images dataset!**\n\nNsfwSharp is the world's **first implementation** of an ONNX model with YOLOv11 for object detection in C# .NET 9.0, meticulously engineered to detect nudity, inappropriate, and NSFW content with unmatched precision.\n\n---\n\n## Table of Contents\n\n- [Features](#features)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Contributing](#contributing)\n- [Reporting Issues](#reporting-issues)\n- [License](#license)\n- [Acknowledgements](#acknowledgements)\n- [Contact](#contact)\n\n---\n\n## Features\n\n- **Cutting-Edge Detection:** Utilizes YOLOv11 for robust NSFW content detection.\n- **ONNX Integration:** Powered by Microsoft.ML.OnnxRuntime for high performance.\n- **Modern C# Development:** Built exclusively for C# .NET 9.0.\n- **Extensive Dataset:** Trained on an enormous dataset to ensure superior accuracy.\n\n---\n\n## Installation\n\nIntegrate NsfwSharp into your project by following these simple steps:\n\n1. **Clone the Repository:**\n\n   ```bash\n   git clone https://github.com/yourusername/NsfwSharp.git\n   cd NsfwSharp\n   ```\n\n2. **Install Dependencies:**\n\n   Ensure you have the [.NET 9.0 SDK](https://dotnet.microsoft.com/download/dotnet/9.0) installed. Then, restore NuGet packages:\n\n   ```bash\n   dotnet restore\n   ```\n\n3. **Install YoloDotNet:**\n\n   NsfwSharp requires **YoloDotNet** for YOLOv11 integration. Install it via NuGet:\n\n   ```bash\n   dotnet add package YoloDotNet\n   ```\n\n4. **Build the Project:**\n\n   ```bash\n   dotnet build\n   ```\n\n---\n\n## Usage\n\nAfter installation, integrate NSFW detection into your application with ease. Here’s a quick example:\n\n```csharp\nusing NsfwSharp;\nusing SkiaSharp;\nusing YoloDotNet.Extensions;\n\npublic class Program\n{\n    public static void Main()\n    {\n        NsfwAnalyzer nsfwAnalyzer = new NsfwAnalyzer(@\"yolo_11m_nsfw.onnx\");\n        NsfwAnalysis nsfwAnalysis = nsfwAnalyzer.GetNsfwAnalysis(@\"test.jpg\");\n        Console.WriteLine(nsfwAnalysis.Detections[0].Name);\n        Console.WriteLine(nsfwAnalysis.Detections[0].Confidence);\n        nsfwAnalysis.DetectionsImage.Save(\"result.jpg\", SKEncodedImageFormat.Jpeg, 100);\n    }\n}\n```\n\nFor more detailed examples and documentation, please refer to the [Usage Guide](./docs/USAGE.md).\n\n---\n\n## Contributing\n\nWe welcome contributions from developers and enthusiasts alike! Follow these steps to contribute:\n\n1. **Fork the Repository:**\n\n   Click the **Fork** button at the top-right of this repository.\n\n2. **Create a New Branch:**\n\n   ```bash\n   git checkout -b feature/your-feature-name\n   ```\n\n3. **Make Your Changes:**\n\n   Commit your modifications with clear and concise commit messages:\n\n   ```bash\n   git commit -m \"Add: [description of your changes]\"\n   ```\n\n4. **Push to Your Fork:**\n\n   ```bash\n   git push origin feature/your-feature-name\n   ```\n\n5. **Create a Pull Request:**\n\n   - Navigate to your fork on GitHub.\n   - Click the **Compare \u0026 pull request** button.\n   - Fill in the PR template with details about your changes.\n   - Submit your pull request.\n\nYour contributions are greatly appreciated and help improve NsfwSharp for everyone!\n\n---\n\n## Reporting Issues\n\nEncountered a bug or have a feature request? I’d love to hear from you! Please follow these steps:\n\n1. **Navigate to the Issues Tab:**\n\n   Click on the **Issues** tab in the repository.\n\n2. **Create a New Issue:**\n\n   Click the **New Issue** button.\n\n3. **Fill Out the Issue Template:**\n\n   Provide a clear title and a detailed description including steps to reproduce the issue.\n\n4. **Submit the Issue:**\n\n   Once submitted, I’ll review and address it as soon as possible.\n\n---\n\n## License\n\nNsfwSharp is open-sourced under the [MIT License](LICENSE). This permissive license allows you to use, modify, and distribute the library with confidence.\n\n---\n\n## Acknowledgements\n\nA heartfelt thank you goes out to the original author of the pre-trained model. For more details, check out the model on [HuggingFace](https://huggingface.co/erax-ai/EraX-NSFW-V1.0?not-for-all-audiences=true).\n\n---\n\n## Contact\n\nFor any questions, suggestions, or feedback, please feel free to reach out via [GitHub Issues](https://github.com/ZygoteCode/NsfwSharp/issues) or contact the repository maintainer directly.\n\n---\n\nHappy coding! 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzygotecode%2Fnsfwsharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzygotecode%2Fnsfwsharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzygotecode%2Fnsfwsharp/lists"}