Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/m0rl/bgcut

Interactively remove image background using OpenCV GrabCut implementation
https://github.com/m0rl/bgcut

cpp17 grabcut opencv

Last synced: 6 days ago
JSON representation

Interactively remove image background using OpenCV GrabCut implementation

Awesome Lists containing this project

README

        

Build `bgcut` with:
```sh
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build .
```
You'll need boost and opencv installed.

Run `bgcut` as:
```
./bgcut --image path-to-image
```

After `bgcut` is up and running select a rectangular area you want to keep as a foreground and press `n`.
To revert changes press `c`. SHIFT/CTRL-click on area to mark it as a background/foreground.
Press `n` to apply your changes. Press `s` to save foreground image, result image is `path-to-image.bgcut.png`.