Images: Remove background?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Images: Remove background?

Post by DevBoyLars » Thu Nov 27, 2014 10:55 am

Hello,
is it possible with LiveCode to take a photo with the camera and remove the background of an object? I mean an object on a rich contrast background.

Thank you :)

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Images: Remove background?

Post by LCNeil » Thu Nov 27, 2014 12:07 pm

Hi DevBoyLars,

All forms of Image manipulation are quite complex in their nature so although it should be possible to achieve a remove image background effect, I can see it involving quite a bit of scripting. The following lesson set might be able to give you some leads with manipulating images in LiveCode-

http://lessons.runrev.com/m/4071/c/16770

The lessons I would focus on are blur, threshold, grayscale and edge detect.

Keep us posted on how you get on.


Kind Regards, 

Neil Roger 
-- 
LiveCode Support Team ~ http://www.livecode.com 
--

capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: Images: Remove background?

Post by capellan » Sat Nov 29, 2014 12:55 am

Here you could find ideas to implement the algorithm:

http://stackoverflow.com/questions/2126 ... n-an-image

Al

Post Reply