Python Package to read labels from image
Project description
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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 PyReadLabels-1.1.5.tar.gz.
File metadata
- Download URL: PyReadLabels-1.1.5.tar.gz
- Upload date:
- Size: 32.2 MB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7bc7cae957c5d6c883ba2474ddac4c1d20445facb3633633a7d618d3864cfb4f
|
|
| MD5 |
30bcdddf5f6c1a2d854fb2fc3baf712c
|
|
| BLAKE2b-256 |
2090643effb3122fd6e2f8a5a33687e00a688545a4ad6e03697877c252e146fd
|
File details
Details for the file PyReadLabels-1.1.5-py3-none-any.whl.
File metadata
- Download URL: PyReadLabels-1.1.5-py3-none-any.whl
- Upload date:
- Size: 32.2 MB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ea0300f6d87f72c11efb14aa4f072ff32cc5c4ac6df6a133b12b9f01a167e9d
|
|
| MD5 |
20ab55d691836d92bdd2af57c13da646
|
|
| BLAKE2b-256 |
b775dbc31608f4e792a2594366ee3117cf044f9a5206fd215d11df7a6daf6fe9
|