# GraphCut **Repository Path**: hufangjia/GraphCut ## Basic Information - **Project Name**: GraphCut - **Description**: GraphCut分割实例 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-05-14 - **Last Updated**: 2021-11-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 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’:将分割后的图片保存到输出文件。