gabrielarchanjo / marvinj

Javascript Image Processing Framework based on Marvin Framework

Home Page:https://www.marvinj.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

serge002 opened this issue · 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!

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.