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.2.tar.gz
(121.8 kB
view hashes)
Close
Hashes for intelligent-scissors-0.2.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7ee78eb935b1bdcfb7789f89d994786489b157ebb15b508795e2a9f1cee2a2b |
|
MD5 | 099bdb9b49dbd211acb6ba1e99a717e8 |
|
BLAKE2b-256 | b34ea835ecfb855e51de6f4eb0c0225ec80a1c53e00ca5a1cd18fe0f2924fda0 |