Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
face-detect
Advanced tools
Readme
#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
The npm package face-detect receives a total of 5 weekly downloads. As such, face-detect popularity was classified as not popular.
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.