首页 > 解决方案 > 如何在 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。

标签: python-3.ximage-processingfeature-extraction

解决方案


推荐阅读