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.
Metadata
Release files for intelligent-scissors 2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| intelligent-scissors-2.0.tar.gz | 118.0 kB | Without provenance | Details for intelligent-scissors-2.0.tar.gz |
Release files / intelligent-scissors-2.0.tar.gz
| Download URL | intelligent-scissors-2.0.tar.gz |
|---|---|
| Size | 118.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
912e58d30397ab6e535a6a4839593c7ecd2d2d1e7939f0b2e244760d4576d69a
|
|
BLAKE2b-256 checksum How to use checksums |
8ed06d2a734596193ed5f6de041683f5d545bbf592080309fa0ef450a960fff9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Security for intelligent-scissors 2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.