python-3.x - 如何在 python 中使用智能剪刀库提取图像特征?
问题描述
以下代码允许用户选择一个 ROI(感兴趣区域),我的问题是:(1)在 seed_x,seed_y = ...(2)free_x,free_y = ...(3)中放入什么ROI被选中,如何检索(即提取为numpy数组或图像列表或数组)?文档提供了此代码,但它似乎适用于一些高级开发人员,我是图像处理的新手。
from scissors.feature_extraction import Scissors
image = "myImage.png"
scissors = Scissors(image)
seed_x, seed_y = ...
free_x, free_y = ...
path = scissors.find_path(seed_x, seed_y, free_x, free_y)
输出将如下所示: 使用智能剪刀选择的 ROI。
解决方案
推荐阅读
- ios - 我无法理解结果为什么要添加斜线?如何删除它?
- webpack - 如何在 webpack 中导入角度?
- android - 在当前主题中找不到样式“bottomNavigationStyle”
- javascript - 如何在 XMLHttpRequested 字符串上使用 getElementByClassName?
- android - 使用 RetainingDataSourceSupplier 播放动画图像
- cmake - 如何仅使用静态库构建 llvm 工具
- php - JWT 中的注销不起作用
- angularjs - 如何在 ng-click 指令上获取 col 值并与 scope.info 绑定
- java - 可从 PySpark/Python 调用的 Spark (2.3+) Java 函数
- kotlin - Room RxJava - onNext() 在 FlowableSubscriber 中调用一次