Skip to main content

数字运算后端以从提供的图像中提取边缘

项目描述

清除切割

该软件包旨在用作绘制任何提供图像边缘的工具。这是我的个人项目——用一个恰当的术语——将我的数字运算欲望引导到其中。

如果您想使用源代码,请参阅此 repo 。

在本地运行

  1. 选择一个新的文件夹位置,例如~/Desktop/mock
  2. 在终端中,进入此文件夹cd [absolute_path]/mock/
  3. 创建一个新的 Python3 虚拟环境python3 -m venv venv
  4. 激活这个虚拟环境:source venv/bin/activate
  5. 安装最新(或特定)版本的 ClearCut python 模块:pip install clear-cut(==1.3.1)
  6. 在 shell 中运行 Python:python
  7. 执行以下 Python 脚本(调整本地设置的路径):
from clear_cut.clear_cutter import ClearCut

image_filepath = '/Users/christopherharman/Desktop/mock/clear-cut-mock-logo.jpg'
results_path = '/Users/myusername/Desktop/mock/'

# All kwargs are optional
#   param debug: toggles on/off output to terminal
#   param results_path: sets results directory. Omitting this parameter will write results to current working directory
#   param image_filepath: location to image. Omitting this parameter will use a default Bob Ross image instead
clear_cut = ClearCut(debug=True, image_filepath=image_filepath, results_path=results_path)
clear_cut.run()

完成后,您应该在一个/results/目录中有一组经过 ClearCut 处理的图像

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分布

clear-cut-1.4.2.tar.gz (19.8 kB 查看哈希

已上传 source

内置分布

clear_cut-1.4.2-py3-none-any.whl (22.4 kB 图哈希)

已上传 py3