Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

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.feature_extraction import Scissors

image = ...
scissors = Scissors(image)

seed_x, seed_y = ...
free_x, free_y = ...
path = scissors.find_path(seed_x, seed_y, free_x, free_y)

Also you can run a simple demo

from scissors.gui import run_demo

file_name = 'image.png'
run_demo(file_name)

Details

The current implementation includes

  • Static features
  • Dynamic features
  • On-the-fly Training
  • Unrestricted graph search

On-the-fly Training allows you to select a “good” initial-boundary segment. However, this results in poor performance for new segments with different intensity/gradient magnitudes. To overcome this, first try selecting a small region of the new segment to create correct dynamic features.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for intelligent-scissors, version 2.0
Filename, size File type Python version Upload date Hashes
Filename, size intelligent-scissors-2.0.tar.gz (118.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page