Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
node-face-detector
Advanced tools
This is node module based on the use of face-recognition.js, written to cut faces from the images.
yarn add node-face-detector
Or
git clone https://github.com/YozhikM/node-face-detector.git
Then run two tasks, because the two Big Brothers (Nodemon and Babel) are watching you in two different folders
yarn build
yarn start
getCroppedFace
function accepts a url as a string and an optional scale.
function getCroppedFace(src: string, scale?: number = 1): Promise<{ buffer: Buffer, format: string }>
The src address can be either local or external - URL. You can not use the image format returned in promise, but I am not responsible for the consequences.
getCroppedFace(
'https://almaty.hh.kz/photo/492004920.jpeg?t=1520531261&h=Yerj2GWZtRPEUR6cQFGSjw'
).then(({ buffer, format }) =>
fs.writeFile(`./images/face_out.${format}`, buffer, () => console.log('file writted'))
);
FAQs
node-face-detector
The npm package node-face-detector receives a total of 8 weekly downloads. As such, node-face-detector popularity was classified as not popular.
We found that node-face-detector 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 initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.