Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

vnudity

1.0.13 • Public • Published

VNudity

Node.js video nudity detector based on nude.js

Prerequisites

$ sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++

Install

$ npm install --save vnudity

Usage

var VNudity = require('vnudity');
 
new VNudity('https://mme.whatsapp.net/d/kVgx2VsFi0T7z-lYvMUP0FbMlDU/AgWaWTZDB0emjOvhtPQBixCIwAZuYw0GFgFxGetvH0vb.mp4?x=2', 
       {storage: "/tmp/", nSeconds: 1}, 
       function (err, res){
            if (res) {console.log("Adult content");} else {console.log("for all audiences");}
       });
 

API

new VNudity(url, options, callback)

Creates a new VNudity instance.

options

Type: object

options.storage

Type: string Defines the path where the video will be downloaded.

options.nSeconds

Type: integer Set the time between capture.

install

npm i vnudity

Downloadsweekly downloads

0

version

1.0.13

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability