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

Using in my nose js app #9

Open
LucasBoberg opened this issue Dec 24, 2019 · 1 comment
Open

Using in my nose js app #9

LucasBoberg opened this issue Dec 24, 2019 · 1 comment

Comments

@LucasBoberg
Copy link

Hi!

Is it possible to use magicat in my own node js app without the cli tool. To automatically remove backgrounds from uploaded images?

Thanks in advance!

@vabarbosa
Copy link
Collaborator

vabarbosa commented Apr 29, 2020

@LucasBoberg my apologies, i did not see this sooner and somehow missed it.

magicat is using @codait/max-image-segmenter underneath to determine the objects in an image and then using @codait/max-vis to extract those objects from the image. you can check out the JS in this code pen (https://codepen.io/ibmcodait/pen/xvEodY) to see use you can use these two together

but if you want to try to use magicat (and bypass the cli) you can import lib/segmenter.js and call it's remove functions directly

by the way, magicat has been replaced with @codait/magicat. if you haven't done so you should upgrade and use the scoped name (@codait/magicat) moving forward.

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

No branches or pull requests

2 participants