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.0.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.0-cp313-cp313-win_amd64.whl (420.9 kB view details)

Uploaded CPython 3.13Windows x86-64

ImageTopoDec-1.0.0-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

ImageTopoDec-1.0.0-cp313-cp313-macosx_15_0_arm64.whl (285.4 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: imagetopodec-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 6428c12fd7d4be3439a05f4a63510b50c42230d15fb4d69ef8c781f807dedaad
MD5 4b460fdb332ec1eafef5810464a46ab0
BLAKE2b-256 c26042139929fb1cdfdcb5f78bf9abc7f2d8173d3d9e1074eb218cea5f3cdaa9

See more details on using hashes here.

Provenance

The following attestation bundles were made for imagetopodec-1.0.0.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.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for ImageTopoDec-1.0.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 65cd063f3921a1f2d420e406f4b95e71fd828e0464815f4956b35d99d7ed9d54
MD5 3018920e3d37f7f160caf4c7070d5ede
BLAKE2b-256 249068ba482e22885e7c01268f4d4b10ac80ee2112b903abe96688e51b2ffd3c

See more details on using hashes here.

Provenance

The following attestation bundles were made for ImageTopoDec-1.0.0-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.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for ImageTopoDec-1.0.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b986210f538950c018e6b85825fc860c2f8e5687a7c5633a0727d18d22559bf2
MD5 24ef5fd7729782703b858da513d12c89
BLAKE2b-256 dce1fdd9168bf34d3790f17462237d41242f99615ea26386e3783b8c425d3a9a

See more details on using hashes here.

Provenance

The following attestation bundles were made for ImageTopoDec-1.0.0-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.

File details

Details for the file ImageTopoDec-1.0.0-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for ImageTopoDec-1.0.0-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 0072684f468bc616b8e21adf1c646676c8cab2e4c538798c34b9ada4db5f41e3
MD5 18905d16ecace5610f2033db867bcf24
BLAKE2b-256 a6c12fab71b1547a19b28684b5295552319b5b3a122b8d37a14612caa706fb6b

See more details on using hashes here.

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