Jim Green
Jim Green

Reputation: 1118

How to extract foreground from the similar background

Provided a image, its foreground and background are similar, how to extract foreground. I hope less human intervention. I consider:

  1. background subtraction need a pre-background image, but the camera may often move. So it is unreliable
  2. grabCut method in OpenCV library needs to point out the ROI, it is inconvenient

Upvotes: 0

Views: 304

Answers (1)

nheise
nheise

Reputation: 311

You may be interested in this repo, which is an implementation of Closed-Form Matting.

Using the command line CLI, you can pass in an image with scribbles showing the foreground and background, which is easier than pixel-level segmentation. I don't know how well the algorithm will perform on your images without more information, but it's somewhere to start.

Upvotes: 0

Related Questions