Was helping out a friend with some #NodeJs code, ended up creating a #npm package.

It uses #OpenCv to detect faces from an image and crops the faces out.

One of the use cases of this package can be creating thumbnails/previews showing just the faces from the original picture.

P.S. - The pre-release version is out now. More enhancements coming soon.

https://www.npmjs.com/package/opencv-facecrop

#npmPackage #javascript
#foss #opensource #opensourceContributions

opencv-facecrop

Npm package to autodetect and crop faces using opencv

v0.0.2 is out now!

Changelogs:
- Minor code tweaks.
- Github Actions workflow added to automate publishing to npm registry.
- Documentation updated with relevant details on how to use the package.

#npm #npmPackage #javascript #GithubActions #devops #cicd #automation #foss #opensource #opensourceContributions

Released v0.0.3!

Changelogs:

- Added support for multi-face detection.
- Redirecting to opencv4js npm package to obtain the updated opencv.js file easily.
- Integrated Sonarqube for code scanning and detect bugs/issues/smells in code.
- Integrated Jest for unit testing.
- Code coverage- 94.4%.
- README updates to provide more clarity.

v1.0.0 will be arriving by next week.

#npm #npmPackage #nodejs #javascript #devops #cicd #automation #foss #opensource #opensourceContributions

Just released v0.0.4!

Changelogs:

- Function API has been modified to reduce complexity.
- Fixes in loading pre-trained classifier files.
- Added .npmignore file.
- Reduced package size to less than a MB.
- Added unit test cases for the new developments.
- Moved to Codecov from Sonarqube.
- Achieved 95% code coverage.
- README updates with images added.

#npm #npmPackage #nodejs #javascript #devops #cicd #automation #foss #opensource #opensourceContributions

Weekends to #developers is time for hobby projects.
Worked half of my Sunday and fixed the issues.

v0.0.5 is published finally.

Changelogs:

- Fixed a major issue with exceptions.
- Better error handling with appropriate messages.
- New parameter factor introduced which helps in modifying the cropped area of face.
- More unit test cases added.
- Code Coverage enhanced to 99%.

#npm #npmPackage #nodejs #javascript #devops #cicd #automation #foss #opensource #opensourceContributions