Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
face-plusplus-node
Advanced tools
Face++ /v3 faceplusplus.com API wrapper for Node.js
$ npm install face-plusplus-node
var facepp = require('face-plusplus-node');
facepp.setApiKey('API_KEY');
facepp.setApiSecret('API_SECRET');
facepp.setServer('cn');
var facepp = require('face-plusplus-node');
facepp.setApiKey('API_KEY');
facepp.setApiSecret('API_SECRET');
var parameters = {
image_url: 'http://example.com/image.jpg',
return_attributes: 'gender,age,emotion'
};
facepp.post('/detect', parameters, function(err, res) {
console.log(res);
});
var facepp = require('face-plusplus-node'),
fs = require('fs');
facepp.setApiKey('API_KEY');
facepp.setApiSecret('API_SECRET');
var parameters = {
return_attributes: 'ethnicity,beauty,eyegaze',
image_base64: fs.readFileSync('./image.jpg').toString('base64')
};
facepp.post('/detect', parameters, function(err, res) {
console.log(res);
});
/* Output
{ image_id: '/bFHYuZRF3y4pjnqghSNWg==',
request_id: '1535365287,56de0473-9dfe-4c7d-8b1e-f0a818adc0b6',
time_used: 346,
faces:
[ { attributes: [Object],
face_rectangle: [Object],
face_token: 'cd3cb917009c3f8066d721b06255a256' } ] } */
var facepp = require('face-plusplus-node'),
fs = require('fs');
facepp.setApiKey('API_KEY');
facepp.setApiSecret('API_SECRET');
var parameters = {
image_base64_1: fs.readFileSync('./image1.jpg').toString('base64'),
image_base64_2: fs.readFileSync('./image2.jpg').toString('base64'),
};
facepp.post('/compare', parameters, function(err, res) {
console.log(res);
});
/* Output
{ faces1:
[ { face_rectangle: [Object],
face_token: '93819818f4cdc4762caafdf776a347c3' } ],
faces2:
[ { face_rectangle: [Object],
face_token: '9d42ccedd41d19439d866e33b88fab21' } ],
time_used: 445,
thresholds: { '1e-3': 62.327, '1e-5': 73.975, '1e-4': 69.101 },
confidence: 89.485,
image_id2: 'Y74JtlTEfR3Jb/pyoNzT1Q==',
image_id1: '/bFHYuZRF3y4pjnqghSNWg==',
request_id: '1535365156,7db9798d-2c80-4bd0-9773-6e40ef5088c2' } */
You can see all possible parameters and ways to pass image and also compare two faces you can see Face++ Documentation
FAQs
Face++ v3 API wrapper for Node.JS
The npm package face-plusplus-node receives a total of 6 weekly downloads. As such, face-plusplus-node popularity was classified as not popular.
We found that face-plusplus-node 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.