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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1e8978a03d20d799c8961168c6880cbc6a399c26e8cb62ab6efb9a3d6776976
|
|
| MD5 |
29aa3d54fdb023bcdafe9207bec9c702
|
|
| BLAKE2b-256 |
1d66f748a23d1f176ef941977e1d0318a135fbb133897c377b8b6a52cecc0184
|
Provenance
The following attestation bundles were made for imagetopodec-1.0.1.tar.gz:
Publisher:
python-publish.yml on Noremos/Barcode
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
imagetopodec-1.0.1.tar.gz -
Subject digest:
d1e8978a03d20d799c8961168c6880cbc6a399c26e8cb62ab6efb9a3d6776976 - Sigstore transparency entry: 154517765
- Sigstore integration time:
-
Permalink:
Noremos/Barcode@01f230d955fa0ccb3a8253f5fc2d6a3f74f1f479 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/Noremos
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@01f230d955fa0ccb3a8253f5fc2d6a3f74f1f479 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ImageTopoDec-1.0.1-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: ImageTopoDec-1.0.1-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 420.9 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1f4fecb2649bfaa3a1145229878b196183113678b6a1dda35132b87ecbf2e5b
|
|
| MD5 |
0f68424c47deaf51cbca9210ee7db8a2
|
|
| BLAKE2b-256 |
40f578973e12f7e46df69b6385fd2d40f6876c8056c928ac2095035bf47ed1a9
|
Provenance
The following attestation bundles were made for ImageTopoDec-1.0.1-cp313-cp313-win_amd64.whl:
Publisher:
python-publish.yml on Noremos/Barcode
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
imagetopodec-1.0.1-cp313-cp313-win_amd64.whl -
Subject digest:
c1f4fecb2649bfaa3a1145229878b196183113678b6a1dda35132b87ecbf2e5b - Sigstore transparency entry: 154517769
- Sigstore integration time:
-
Permalink:
Noremos/Barcode@01f230d955fa0ccb3a8253f5fc2d6a3f74f1f479 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/Noremos
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@01f230d955fa0ccb3a8253f5fc2d6a3f74f1f479 -
Trigger Event:
push
-
Statement type:
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
- Download URL: ImageTopoDec-1.0.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 285.4 kB
- Tags: CPython 3.13, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffbb82be4f68fc6aaab790d6243d783fdd78f4b8266d40f0e389c54094e9ac0d
|
|
| MD5 |
e4a54fa25bbecf5b260f07873425e248
|
|
| BLAKE2b-256 |
bea0bf7edad026ec2857257a94c52cf157aa0a87f2bcb05e133fc23c37673b67
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
imagetopodec-1.0.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
ffbb82be4f68fc6aaab790d6243d783fdd78f4b8266d40f0e389c54094e9ac0d - Sigstore transparency entry: 154517767
- Sigstore integration time:
-
Permalink:
Noremos/Barcode@01f230d955fa0ccb3a8253f5fc2d6a3f74f1f479 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/Noremos
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@01f230d955fa0ccb3a8253f5fc2d6a3f74f1f479 -
Trigger Event:
push
-
Statement type: