
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
ArcFace is a Face Cognition Engine, which contains Face Detection, Face Recognition and Face Tracking.
This module is a wrapper of ArcFace C++ SDK used for nodejs.
with npm
$ npm install arcface --save
with yarn
$ yarn add arcface
This way you need to know how to use C/C++ pointer, struct and array in nodejs. See ref.
const ArcFace = require('arcface');
const TypeDef = ArcFace.TypeDef;
const Lib = ArcFace.Lib;
// init FD module
const FD = ArcFace.FD('/path/to/fdsdk.dll');
// init FR module
const FR = ArcFace.FR('/path/to/frsdk.dll');
// setting initial variables
const APPID = 'yourAppId';
const FR_SDKKey = 'yourFRSDKKey';
const WORKBUF_SIZE = 40 * 1024 * 1024;
const nScale = 16;
const nMaxFace = 10;
// alloc memory
const phEngine = TypeDef.Ref.alloc(TypeDef.MHandle);
const pWorkMem = Lib.malloc(WORKBUF_SIZE);
// initial FR Engine
const nRet = FR.AFR_FSDK_InitialEngine(
APPID,
FR_SDKKey,
pWorkMem,
WORKBUF_SIZE,
phEngine
);
// other usages are same as the official sample code
// ...
const ArcFace = require('arcface');
const arcface = new ArcFace();
// init FD Engine
arcface.initialFDEngine('/path/to/fd.dll', {
appId: 'yourAppId',
sdkKey: 'yourFDKey'
});
// init FR Engine
arcface.initialFREngine('/path/to/fr.dll', {
appId: 'yourAppId',
sdkKey: 'yourFRKey'
});
// parse image file to ASVLOFFSCREEN
const asvl = await arcface.parseImage('/path/to/image.jpg');
// face detection
const faces = arcface.detect(asvl);
// extract face featrue
const faceModel = arcface.extractFeature(asvl, faces.rcFace[0], faces.lfaceOrient[0]);
// ...
More see test.
MIT
FAQs
Arcsoft Face Cognition Engine
We found that arcface 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.