Skip to main content

PySkel2Graph

Convert the Skeleton to a Graph using Python.


Install

pip install pyskel2graph

Use

from pyskel2graph.io import imread, imwrite
from pyskel2graph import skel2graph
from pyskel2graph.vis import vis_graph, vis_graph_plt

img = imread('assets/test.jpg')
skel = imread('assets/skeleton.png')
graph = skel2graph(skel, pruning_threshold=5)
vis_graph_plt(graph, img=img)
imwrite(vis_graph(graph, skel.shape), 'assets/pruning_skel.png')

Image

img

Skeleton (Obtain through certain methods)

skeleton

Skeleton (pruning_threshold=5)

sp

Graph

graph

Metadata

Release files for pyskel2graph 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyskel2graph 0.1.0
File Size Uploaded Provenance Actions
pyskel2graph-0.1.0.tar.gz 17.7 kB Without provenance Details for pyskel2graph-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyskel2graph 0.1.0
File Interpreter ABI Platform Actions
pyskel2graph-0.1.0-py3-none-any.whl Python 3 none any Details for pyskel2graph-0.1.0-py3-none-any.whl

Total release size: 36.5 kB

Release files / pyskel2graph-0.1.0.tar.gz

Download URL pyskel2graph-0.1.0.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c4341fb0bd919e7f8cf602b9aa93a1a113639e253a44f0651851aa94fc1b8225
BLAKE2b-256 checksum
How to use checksums
2d3b91381950095181a59a98bbd857e3585cefb3a6f7e2b7056f5267d2cb3fa3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.16

Release files / pyskel2graph-0.1.0-py3-none-any.whl

Download URL pyskel2graph-0.1.0-py3-none-any.whl
Size 18.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ca9cf7c370a017e392f1970e78387ce22fd785748090e09fcd276eebacc8c6a
BLAKE2b-256 checksum
How to use checksums
7afce84dca2e0211f8ca62d512f6f347a40511355d040a87f0254ba9fea80e8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.16

Security for pyskel2graph 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page