Skip to main content

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


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.0.5.tar.gz (8.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page