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
To use in your program
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)
Also you can run a simple demo
from scissors.gui import run_demo
file_name = 'image.png'
run_demo(file_name)
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
intelligent-scissors-0.2.6.tar.gz
(123.1 kB
view hashes)
Close
Hashes for intelligent-scissors-0.2.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3328ea96867fcf112f2f3100f8ad3f2c919064b319ae20a7752c47d0999ca5bd |
|
MD5 | 7190bfdb27ef87f7b0f625e79a37b90a |
|
BLAKE2b-256 | f3cbe13a2711526ccdca7bef59bb036c346654afcba11579c3d900f1fa7cbe09 |