Intelligent Scissors tool
Project description
Intelligent-Scissors
The Intelligent Scissors can be used to select an image region defined by strong color-changes at the edges.
You can learn more about it in papers:
Installation
pip install intelligent-scissors
Usage
from scissors.graph import PathFinder
from scissors.feature_extraction import StaticExtractor, DynamicExtractor, Scissors
image = ...
static_extractor = StaticExtractor()
static_cost = static_extractor(image)
dynamic_extractor = DynamicExtractor()
dynamic_features = dynamic_extractor(image)
finder = PathFinder(image.size, static_cost)
scissors = Scissors(static_cost, dynamic_features, finder)
seed_point = ...
free_point = ...
path = scissors.find_path(seed_point, free_point)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for intelligent-scissors-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd1a43414dd1bb428cd5300c9c9c7f5edbf6edc9d7040aab02a849ebf4ed26ec |
|
MD5 | 6f97b72fbb9a36b00a80e802c7b314fc |
|
BLAKE2b-256 | 2be40ad6cf0670ef9021521481f6f452222fc0fbba8775ad1818aacbc4efefc1 |