pa7 / nude.js

Nudity detection with JavaScript and HTMLCanvas
http://www.patrick-wied.at/static/nudejs/
2.35k stars 225 forks source link

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

Open kostas-jonauskas opened 2 years ago

kostas-jonauskas commented 2 years ago

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?