isadult
Version:
Machine learning algorithm written in JS to check if an image contains adult content
23 lines (22 loc) • 728 B
HTML
<html>
<head>
<title>Getting Started with ml5.js</title>
<!--<script src="https://unpkg.com/ml5@0.1.1/dist/ml5.min.js"></script>-->
</head>
<body>
<img src="https://thumbs.dreamstime.com/z/dog-running-over-meadow-front-blue-sky-jack-russell-years-old-terrier-blooming-spring-134939522.jpg"
crossorigin="anonymous" id="image" width="400">
<script src="isAdult.min.js"></script>
<script>
var img = document.getElementById('image');
checkAdultImage(img).then(function(response) {
//handle successful response
console.log(response.status)
}).catch(function(e) {
//handle message
console.log(e.message);
});
</script>
</body>
</html>