Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
opencv-facecrop
Advanced tools
Readme
This package helps you to auto-detect faces in a picture and crop them out.
Install from command line:
npm install --save opencv-facecrop
const facecrop = require('opencv-facecrop');
facecrop('./image-file.jpg', './dest/output.jpg', "image/jpeg", 0.95, 50);
/* Outputs image with file name output.jpg in 'dest' folder with the face cropped out.
If multiple faces are detected, the files will be automatically renamed to output-1.jpg, output-2.jpg and so on.
*/
Original Image:
Cropped Image:
Image by Free-Photos from Pixabay
facecrop(input_filename, output_filename, type, quality, factor)
input_filename: Input String containing file name with relative/absolute filepath.
output_filename: (Optional) Requires a string value which will contains the output file name.
type: (Optional) Requires String value which will tell the format of the output image.
quality: (Optional) Requires a float value between 0 to 1 which stands for the quality index of the output file compares to the input file. Set 1 for no reduction in quality.
factor: (Optional) Pixels by which the area of cropping of the face should be increased to add more details. Use -ve value to decrease.
OpenCv - Face Crop is published under the Unlicense. For more information, see the accompanying LICENSE file.
P.S. - This is a pre-release version. More updates with refinements coming soon.
FAQs
Npm package to autodetect and crop faces using opencv
The npm package opencv-facecrop receives a total of 3 weekly downloads. As such, opencv-facecrop popularity was classified as not popular.
We found that opencv-facecrop 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.