Remove the background from this dark image

asked 2018-01-18 03:47:18 -0600

Santhosh1 gravatar image

updated 2018-01-18 03:48:53 -0600

Objective is to get the edge of the object

I want to remove the dark color background for this image below.

Is there any other method apart from gradCut in OpenCV

image description

We lack Active Contour in OpenCV which could have given a nice result here from SciKit Image Image below shows the Original image and its detection.

Original

image description

Detected with active contour

image description

edit retag flag offensive close merge delete

Comments

we see a lot of duplicate questions here, lately. do you remember how it happened ?

berak gravatar imageberak ( 2018-01-18 03:52:51 -0600 )edit

Actually there was a GSoC implementing active contours for facial landmark detection. You might be able to extract the active contour part and adapt it to your needs?

StevenPuttemans gravatar imageStevenPuttemans ( 2018-01-18 03:53:01 -0600 )edit

@berak The question is actually about foreground and background, but final objective was a bit different. I did search, Can't see any python implementation of the active contour in OpenCV.

Santhosh1 gravatar imageSanthosh1 ( 2018-01-18 04:56:03 -0600 )edit
Santhosh1 gravatar imageSanthosh1 ( 2018-01-18 05:03:37 -0600 )edit
1

@santosh1 , i only enquired about the duplicate (again, it happens so often, since the last forum update). if you have any hints, let us know, please !

(and i know, that you did your research, not the problem here !)

berak gravatar imageberak ( 2018-01-18 05:08:40 -0600 )edit

@berak 👍 Sure

Santhosh1 gravatar imageSanthosh1 ( 2018-01-18 05:46:19 -0600 )edit