Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
face-detect
Advanced tools
#Face detection js
A fork of the pure-javascript face detection in Liu Liu's CCV library (in branch 'current'), converted for Node and npm.
This package provides the method detect_objects
, to which you pass a parameters hash. The most important parameter is the canvas obj, into which you should have already loaded an image.
This method returns an array of hashes, each representing a face, with the following fields:
x
, y
: the coordinates of the top-left corner of the face's bounding boxwidth
, height
: the pixel dimensions of the face's bounding boxneighbours
, confidence
: info from the detection algorithmvar face_detect = require('face-detect'),
Canvas = require('canvas');
// ... initialize a canvas object ...
var result = face_detect.detect_objects({ "canvas" : myCanvas,
"interval" : 5,
"min_neighbors" : 1 });
console.log('Found ' + result.length + ' faces.');
for (var i = 0; i < result.length; i++){
var face = result[i];
console.log(face);
}
in future, directly passing an image path or a buffer containing raw png data will be supported
It's important to note that this is not my work. All credit for the actual face-detection work should go to Liu Liu.
I have just taken the browser JS from that project (in branch current ), plucked out the threading support and made it useable with node & npm via node-canvas
This project is installed with npm.
$cd my-project
$ npm install face-detect
$ git clone https://orls@github.com/orls/ccv-purejs.git face-detect
$ cd face-detect
$ npm install
$ cd ../my-project
$ npm install ../face-detect
FAQs
A pure-JS facial detection library
We found that face-detect 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.