Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider using opencv.js as an alternative to opencv for facedetection. #15

Open
jwagner opened this issue Jan 27, 2018 · 3 comments
Open

Comments

@jwagner
Copy link
Owner

jwagner commented Jan 27, 2018

Will probably be much easier for users to install, probably quite a bit slower. Likely an acceptable trade-off for smartcrop-cli.

@mrzool
Copy link

mrzool commented Aug 22, 2018

Not sure this is the right place to discuss this, just say the word and I’ll open a new issue.

I tried installing node-opencv to enable face recognition in smartcrop.js without success. The package seems to be unmaintained and there’s apparently no way to get it working on macOS.

opencv4nodejs does exactly the same thing as node-opencv (providing Node.js bindings to OpenCV and OpenCV-contrib) but is actively maintained, has great docs and uses version 3 of OpenCV. It looks great.

Is there any chance to drop node-opencv in favor of opencv4nodejs as a dependency for face recognition in smartcrop.js (specifically for smartcrop-cli)? As it stands, there is sadly no way to get face recognition working in smartcrop.js, at least on macOS. I tried everything and I’m out of ideas.

Thanks for considering.

@jwagner
Copy link
Owner Author

jwagner commented Aug 23, 2018

It's definitely an option. If possible I'd prefer to ship with something that is pure javascript so it works out of the box. https://github.com/justadudewhohacks/face-api.js seems to be another possibility.
The problem is that right now I don't have time to do this but if you want to give it a shot, go ahead!

@mrzool
Copy link

mrzool commented Sep 4, 2018

I’d love to give it a try but sadly I don’t have time either at the moment. The good news is that I managed to get node-opencv working on macOS, so now I have a fully functional smartcrop.js on my machine, complete with face recognition :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants