PyReadLabels
A Python Package to read labels from an image
USAGE
from PyReadLabels import pyreadlabels
To return a dictionary with the following keys: lines
result = pyreadlabels.detect( "path_to_image" )
print( result["lines"] )
To return a dictionary with the following keys: lines, image, pos
result = pyreadlabels.detect( "path_to_image", conf=0.25, get_positions=True, x_line=0.2, y_line=0.1, return_image=True )
print( result )
conf - confidence score above which the label characters are considered.
x_line - the percentage difference between x coordinates above which a new line starts.
y_line - the percentage difference between x coordinates above which a new line starts.
get_positions - Boolean Value, True returns a "pos" key which contains boxes (absolute x,y,w,h values), correspondind labels, and confidences
return_image - Boolean Value, True Returns a "image" key which can be used to display image.
import cv2
cv2.imshow( "result", result["image"] )
cv2.waitKey(0)
cv2.destroyAllWindows()
Metadata
Release files for PyReadLabels 1.1.5
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 |
|---|---|---|---|---|
| PyReadLabels-1.1.5.tar.gz | 32.2 MB | Without provenance | Details for PyReadLabels-1.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PyReadLabels-1.1.5-py3-none-any.whl | Python 3 | none | any | Details for PyReadLabels-1.1.5-py3-none-any.whl |
Total release size: 64.4 MB
Release files / PyReadLabels-1.1.5.tar.gz
| Download URL | PyReadLabels-1.1.5.tar.gz |
|---|---|
| Size | 32.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7bc7cae957c5d6c883ba2474ddac4c1d20445facb3633633a7d618d3864cfb4f
|
|
BLAKE2b-256 checksum How to use checksums |
2090643effb3122fd6e2f8a5a33687e00a688545a4ad6e03697877c252e146fd
|
| 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/42.0.1.post20191125 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5
|
Release files / PyReadLabels-1.1.5-py3-none-any.whl
| Download URL | PyReadLabels-1.1.5-py3-none-any.whl |
|---|---|
| Size | 32.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ea0300f6d87f72c11efb14aa4f072ff32cc5c4ac6df6a133b12b9f01a167e9d
|
|
BLAKE2b-256 checksum How to use checksums |
b775dbc31608f4e792a2594366ee3117cf044f9a5206fd215d11df7a6daf6fe9
|
| 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/42.0.1.post20191125 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5
|
Security for PyReadLabels 1.1.5
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.