Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
facedetector
Advanced tools
Detect and track faces in real-time from web camera and video stream
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 4 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.