Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
retinaface-wasm
Advanced tools
Running the Retinaface face recognition algorithm in browser or wechat mini program.
This is a WASM implementation of the Retinaface face detection algorithm. It is based on the Retinaface paper.
本模块支持微信小程序且不依赖任何第三方库, 可直接使用! (手动 brotli 压缩 wasm 文件和拷贝 index.ts 代码即可)
npm install retinaface-wasm
import Retinaface, { getWasmFile, env } from 'retinaface-wasm'
import imagePath from './R.jpg'
const wasm = await WebAssembly.instantiateStreaming(fetch('https://cdn.jsdelivr.net/npm/retinaface-wasm/wasm/' + getWasmFile()), env)
const retinaface = new Retinaface(wasm.instance)
const image = new Image()
image.src = imagePath
await new Promise((resolve, reject) => {
image.onload = resolve
image.onerror = reject
})
const [data, scale] = retinaface.processImage(image)
const result = retinaface.detect(data, scale)
console.log(result)
retinaface.close()
node -e "fs.writeFileSync('retinaface-basic.wasm.br', zlib.brotliCompressSync(fs.readFileSync('retinaface-basic.wasm')))"
Shirasawa
FAQs
Running the Retinaface face recognition algorithm in browser or wechat mini program.
The npm package retinaface-wasm receives a total of 8 weekly downloads. As such, retinaface-wasm popularity was classified as not popular.
We found that retinaface-wasm demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.