
Research
/Security News
60 Malicious Ruby Gems Used in Targeted Credential Theft Campaign
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
d3.facedetection
Advanced tools
A d3.js plugin to detect faces on images (both HTML and SVG), videos and canvases to get their coordinates.
Importante note: This plugin uses an algorithm by Liu Liu.
This is a fork of the very popular jquery.facedetection by jaysalvat
Download the plugin with the method of your choice.
bower install d3.facedetection
npm install d3.facedetection
Include d3 and the plugin.
<script src="//cdnjs.cloudflare.com/ajax/libs/d3/3.5.3/d3.min.js"></script>
<script src="path/to/dist/d3.facedetection.min.js"></script>
Set a picture with some faces in your HTML (or SVG) page.
<svg height="350px" width="620px" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink= "http://www.w3.org/1999/xlink">
<image id="picture" xlink:href="picture.jpg" x="0" y="0" width="620px" height="350px"></image>
</svg>
Apply the plugin to this image and get the face coordinates.
<script>
d3.select('#picture').faceDetection({
complete: function (faces) {
console.log(faces);
}
});
</script>
Returns an array of found faces object:
complete: function (faces) {
// ...
}
error: function (code, message) {
// ...
}
FAQs
Face Detection for SVG, HTML, Canvas and Videos
The npm package d3.facedetection receives a total of 0 weekly downloads. As such, d3.facedetection popularity was classified as not popular.
We found that d3.facedetection demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.