Skip to main content

Python wrapper for the Barcode library.

Project description

A library to process raster images using persistence homology

Example:

import ImageTopoDec as bc
import ImageTopoDec.barcode as bcc
import ImageTopoDec.barplot as bcp
import cv2


img = cv2.imread('/Users/sam/Edu/bar/12/1.png', cv2.IMREAD_GRAYSCALE)

cont = bc.barstruct()
barc =  bcc.create_barcode(img, cont)

cmp = barc.get_largest_component()
img = bcc.combine_components_into_matrix(cmp, img.shape, img.dtype)
# cv2.imshow("source",img)
# cv2.waitKey(0)

binmap = barc.segmentation(False)
cv2.imshow("binmap", binmap)
cv2.waitKey(1)

filterd = barc.filter(100)
cv2.imshow("filterd", filterd)
cv2.waitKey(0)


bcp.plot_barcode_lines(barc.item.getBarcodeLines(), 'test', True)

exit(0)

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

imagetopodec-1.0.1.tar.gz (416.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ImageTopoDec-1.0.1-cp313-cp313-win_amd64.whl (420.9 kB view details)

Uploaded CPython 3.13Windows x86-64

ImageTopoDec-1.0.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (285.4 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

File details

Details for the file imagetopodec-1.0.1.tar.gz.

File metadata

  • Download URL: imagetopodec-1.0.1.tar.gz
  • Upload date:
  • Size: 416.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for imagetopodec-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d1e8978a03d20d799c8961168c6880cbc6a399c26e8cb62ab6efb9a3d6776976
MD5 29aa3d54fdb023bcdafe9207bec9c702
BLAKE2b-256 1d66f748a23d1f176ef941977e1d0318a135fbb133897c377b8b6a52cecc0184

See more details on using hashes here.

Provenance

The following attestation bundles were made for imagetopodec-1.0.1.tar.gz:

Publisher: python-publish.yml on Noremos/Barcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ImageTopoDec-1.0.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for ImageTopoDec-1.0.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c1f4fecb2649bfaa3a1145229878b196183113678b6a1dda35132b87ecbf2e5b
MD5 0f68424c47deaf51cbca9210ee7db8a2
BLAKE2b-256 40f578973e12f7e46df69b6385fd2d40f6876c8056c928ac2095035bf47ed1a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for ImageTopoDec-1.0.1-cp313-cp313-win_amd64.whl:

Publisher: python-publish.yml on Noremos/Barcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ImageTopoDec-1.0.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for ImageTopoDec-1.0.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ffbb82be4f68fc6aaab790d6243d783fdd78f4b8266d40f0e389c54094e9ac0d
MD5 e4a54fa25bbecf5b260f07873425e248
BLAKE2b-256 bea0bf7edad026ec2857257a94c52cf157aa0a87f2bcb05e133fc23c37673b67

See more details on using hashes here.

Provenance

The following attestation bundles were made for ImageTopoDec-1.0.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: python-publish.yml on Noremos/Barcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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