Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nsfwrecog

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nsfwrecog

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

  • 1.0
  • PyPI
  • Socket score

Maintainers
1

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

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc