pa7 / nude.js Goto Github PK
View Code? Open in Web Editor NEWNudity detection with JavaScript and HTMLCanvas
Home Page: http://www.patrick-wied.at/static/nudejs/
Nudity detection with JavaScript and HTMLCanvas
Home Page: http://www.patrick-wied.at/static/nudejs/
I've noticed when doing many scan's, eventually it will always give you a "not nude" result.
Example: (click the image a bunch of times and the results end up changing to "not nude")
http://davidwalsh.name/demo/nude-js.php
Amazing work! I salute you for building this in javascript!
Is it possible to customize it to detect bare body parts like hands, legs, chests and blur those regions? I would like to leave faces only and hide other bare body parts.
Thanks.
I wrote some code that runs nude.js on flickr images, any search you provide, and also renamed and moved stuff so that the scripts can be more easily used (related to that other issue about the worker script).
Will send a pull request someday if I remember to!
The link to the algorithm paper in the readme is currently broken.
I went to the demo which was supposed to show nude.js on a video. There was no video, only a black box where the video should've been, and when I clicked the Video URL
link, I was greeted with this message:
"Who is God? - A Se..." The YouTube account associated with this video has been terminated due to multiple third-party notifications of copyright infringement.
Maybe it would be an idea to change the demo video?
Could you make the script easier to use, so it can easily be made into a chrome addon?
Hi there,
I am working with nude.js to scan a series of images from Flickr. Now everything goes just fine up to the point where I call nude.scan. With that line I get the following security error in Chrome:
Uncaught Error: SECURITY_ERR: DOM Exception 18
And in Firefox:
Security error" code: "1000
http://www.local.com/labs/nude/js/nude.min.js
Line 1
Searched around a bit and found an entry on Stackoverflow that mentions the following:
"Error 1000 usually means you are trying to change something in the DOM which is not allowed." - http://goo.gl/zP1kl
I have tried running this via just plain http://localhost as well as mapped a domain name www.local.com to 127.0.0.1 using the hosts file but, in both cases I get the security error.
Also created a Fiddle you can check out here: http://jsfiddle.net/ossreleasefeed/Crzz3/
Great work! May I suggest you add a license file?
Hi there,
I am facing an issue with the Test project on the nude.js-master branch. I am getting an error message saying:
Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.
And the detection script doesn't work. I am running this test project on my local machine with the original images and did not change anything in the code. I am opening this file in my browser: nude.js-master\tests\index.html
Do you have any idea how can I solve this and get it running on my machine?
A small possible improvement for a better skin model.
For this example, this technique made a difference between nude detection i.e (totalSkin/totalPixels)*100
became greater than 15.
Hi,
NudeJs seem to be awesome in lot of contexts,
I am working on a Cordova app for picture sharing and I am truly interested about your project.
I saw many of forks (like @forlooper or @goddamnbugs jobs) but I do not know the most advanced.
I tried your solution but results are really not reliable for grayscale pictures, non-white people or sandy colored subject.
I think to use neural networks or learning machines to do the job, what is your position about that ?
Kind regards,
Can i use this project in react-native?
Even in the nude.min.js file it still want to load the uncompressed worker.nude.js. Also, it looks for the worker file in the root directory, one should either have to have the option to tell nude where the worker file is located or, it should default to the same directory in which nude is.
A new web worker is made every time scan is called but the old workers are never closed or terminated.
We probably want to call terminate as documented here:
https://developer.mozilla.org/en-US/docs/Web/API/Worker/terminate
The following screenshot is from Google Chrome Developer Tools "Source" tab after scanning multiple images with nude.js:
Related to #1
Isn't this edited image compromising your tests? having that black square would not give wrong results?
The only way to make nude.js practical on a larger scale, such as a browser extension which attempts to hide nude images in Google Images, which displays many images at once is to divide up the processing among worker threads so interaction with the page isn't blocked.
nude.js doesn't check the wether page loaded and its failes even on demo page
Uncaught Error: DATA_CLONE_ERR: DOM Exception 25
shows up on the demo page when clicking Scan image
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.