
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
simple-face-recognition
Advanced tools
this package is simple face reconization setup using face-api.js
this package is simple face reconization setup using face-api.js
const face = new FaceReconization()
await this.face.init("/models")
await this.face.addFaceData("person_name_a", [
"/images/person_a_face_1.png",
"/images/person_a_face_2.jpg",
"/images/person_a_face_3.jpg",
"/images/person_a_face_4.jpg",
"/images/person_a_face_5.jpg",
"/images/person_a_face_6.jpg",
])
await this.face.addFaceData("person_name_b", [
"/images/person_b_face_1.png",
"/images/person_b_face_2.jpg",
"/images/person_b_face_3.jpg",
"/images/person_b_face_4.jpg",
"/images/person_b_face_5.jpg",
"/images/person_b_face_6.jpg",
])
# 2 input source options
# --------------------------------------------------------------------
# option 1 : input source is from html video tag
# await this.face.initVideo("inputVideo")
# let result = await face.findFaceFromURL("/images/tin.png",()=>{})
# --------------------------------------------------------------------
# option 2 : input source is from html image tage
# let result = await face.findFaceFromHTMLImageElement("inputVideo",()=>{})
# --------------------------------------------------------------------
# option 3 : input source is from image url
# let result = await face.findFaceFromHTMLVideoElement("inputVideo",()=>{})
# --------------------------------------------------------------------
console.log(result)
# this should return
# {
# foundFaceName : string[] , outputImage : HTMLCanvasElement
# }
)
FAQs
this package is simple face reconization setup using face-api.js
We found that simple-face-recognition 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
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.