marvinj icon indicating copy to clipboard operation
marvinj copied to clipboard

Is it possible to detect outer background of an image using MARVINJ?

Open serge002 opened this issue 5 years ago • 1 comments

Hi! I'm wondering if it is possible to detect outer background of an image using MARVINJ and then make it transparent? Please take a look on screenshot https://i.imgur.com/qmZ21Ug.png (desired area is marked by border line).

Example posted in Tutorial section on your website (https://www.marvinj.org/en/releases/marvinj_1.0.html) is good, but it works fine only with white background. In my case, images will be uploaded by users, so background can be any color.

I would appreciate any suggestion. Thanks in advance!

serge002 avatar Jan 23 '20 21:01 serge002

Hi Sergey,

Yes, it's possible, but there isn't an algorithm to solve your specific problem in MarvinJ framework. You'll need to implement your own solution using a framework like MarvinJ as a tool.

For this kind of question, I recommend you to post it on Stack Overflow. There is the right channel for discussing approaches and alternatives.

gabrielarchanjo avatar Jan 23 '20 22:01 gabrielarchanjo