pa7 / nude.js

Nudity detection with JavaScript and HTMLCanvas

Home Page:http://www.patrick-wied.at/static/nudejs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.

kostas-jonauskas opened this issue · comments

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

image

Do you have any idea how can I solve this and get it running on my machine?