Socket
Socket
Sign inDemoInstall

nsfwrecog

Package Overview
Dependencies
43
Maintainers
1
Alerts
File Explorer

Install Socket

Protect your apps from supply chain attacks

Install

nsfwrecog

This library detects nsfw objects and body parts in images and videos and optionally censores them.

    1.0

Maintainers
1

Readme

NSFW Recog

This library is meant to detect and censor nsfw content in public media. Models can be found here, they are downloaded automatically and cached.

sample image

Installation

  • install requirements.txt
  • install pytorch according to your cuda version
  • (optional) install onnxruntime-gpu to support cuda usage

Usage

Instantiate a NsfwDetector class and use the methods detect(), blur(), video() and camera(). The demos show the usage:

  • demo_detect.py: Detecting body parts/objects in an image
  • demo_camera.py: Live detecting objects in a webcam stream
  • demo_video.py: Detecting objects in a video and draw bounding boxes and labels to a new video
  • demo_blur.py: Detecting objects in an image and blurring them.

FAQs


Did you know?

Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc