Skip to content

cm-jsw/GraphCut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphCut

本项目参考了https://github.com/NathanZabriskie/GraphCut
GUI界面将在后续时间进行实现

运行环境

python3.6
所需库函数:numpy,opencv-python,PyMaxflow

代码运行步骤

1.python -i [输入文件名] -o [输出文件名]
2.使用鼠标进行前后背景标注
3.功能:
(1)‘esc’:退出;
(2)‘c’:清除所有标注;
(3)‘g’:进行图片分割;
(4)‘t’:前后背景标准的切换;
(5)‘s’:将分割后的图片保存到输出文件。

About

GraphCut分割实例

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages