
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Labsfilter is a module to easily and quickly render 3D filters on your face with your webcam in real-time.
npm i labsfilter
import labsfilter from './node_modules/labsfilter/index.js'
labsfilter.init(<Object> settings, <String> texturepath, <String> modelpath);
Inits everything to start the filter applying later
The texturepath and modelpath are optional but note that the labsfilter.start() function won't work before you specify the two path's with either the labsfilter.init() or labsfilter.setFilterModel() function
the settings object can contains the following items
video: videoElement //HTML video element for webcam usage Requiredcanvas: canvasElement //HTML canvas element for filter applying RequiredNCCpath: path //Path to the neural network Optional 'NNC.json' by defaultfacingMode: 'user' //Defines which camera will be used Optional 'user' by defaultlabsfilter.start();
Starts the face detector and filter applying.
labsfilter.setFilterModel(<String> texturepath, <String> modelpath);
Sets or updates the 3D filter based on the given texture and 3D model. The texturepath should always be and image (.png, .jpg etc) and the modalpath should always be an .obj file
labsfilter.stop();
Completely stops the face detector ands removes the 3D filter
Available neural networks for the face detector:
NNC.jsonNNCwideAngles.jsonNNClight.jsonNNCveryLight.jsonNNCviewTop.jsonNNCdeprecated.jsonNNCdeprecated.jsonNNCIntel1536.jsonNNCNNC4Expr0.jsonimport labsfilter from './node_modules/labsfilter/index.js'
let webcam = document.querySelector('#webcam'); //HTML video element
let canvas = document.querySelector('canvas'); //HTML canvas element
let texture = 'models/tiger/tiger.png'; //Path to the texture for the model (.png, .jpg etc.)
let model = 'models/tiger/tiger.obj'; //Path to the 3D model (must be .obj file)
let settings = {video: webcam, canvas: canvas, facingMode: 'user'};
labsfilter.init(settings, texture, model); //Initializes everything
labsfilter.start(); //Starts the face detector and 3D filter applying.
FAQs
Library voor 3D gezichtsfilters
We found that labsfilter 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.