Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/m0rl/bgcut
- Owner: m0rl
- License: bsd-3-clause
- Created: 2018-09-01T21:24:23.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-01T21:48:07.000Z (about 6 years ago)
- Last Synced: 2023-10-20T03:38:10.012Z (about 1 year ago)
- Topics: cpp17, grabcut, opencv
- Language: C++
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`.