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.
facedetector
Advanced tools
Readme
facedetector is a javascript library for real-time face detection.
This library is based on the work of Martin Tschirsich's js-objectdetect.
Watch this video for a short demonstration.
facedetector is distributed under MIT license. The included *.js files are subject to their own licenses.
Online realtime-face-detecting example here.
https://riversun.github.io/facedetector/example/index.html
var videoTag=document.getElementById("video");
var faceDetector = new FaceDetector(
{
video: videoTag,
flipLeftRight: false,
flipUpsideDown: false
}
);
faceDetector.setOnFaceAddedCallback(function (addedFaces, detectedFaces) {
for (var i = 0; i < addedFaces.length; i++) {
console.log("[facedetector] New face detected id=" + addedFaces[i].faceId + " index=" + addedFaces[i].faceIndex);
}
});
faceDetector.setOnFaceLostCallback(function (lostFaces, detectedFaces) {
for (var i = 0; i < lostFaces.length; i++) {
console.log("[facedetector] Face removed id=" + lostFaces[i].faceId + " index=" + lostFaces[i].faceIndex);
}
});
faceDetector.setOnFaceUpdatedCallback(function (detectedFaces) {
for (var i = 0; i < detectedFaces.length; i++) {
var face = detectedFaces[i];
console.log(face.faceId+" x="+face.x+" y="+face.y+" w="+ face.width+" h="+face.height );
}
});
//after getUserMedia
faceDetector.startDetecting();
You can import library with npm.
Install
npm install facedetector
Download actual files
<script src="FaceDetector.js"></script>
FAQs
Detect and track faces in real-time from web camera and video stream
The npm package facedetector receives a total of 3 weekly downloads. As such, facedetector popularity was classified as not popular.
We found that facedetector 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.