Points and lines matcher
This module is baesd on hungarian match with cost matrix
Example:
from LPMatcher import topology_match
xmin, ymin, xmax, ymax = [97, 348, 533, 620], [131, 133, 180, 50], [197, 451, 581, 660], [186, 209, 281, 120]
test_points = list(zip(xmin, ymin, xmax, ymax))
test_lines = [((638, 2), (638, 47)),((455, 159), (638, 159)), ((638, 124), (638, 159)), ((639, 159), (713, 159)), ((3, 159), (93, 159)),
((201, 159), (344, 159)), ((557, 161), (557, 176))]
tm = topology_match(img_path='./img/test2.png', lines=test_lines, points=test_points)
print("the number of lines: " ,tm.get_line_num)
print("the number of points: ", tm.get_point_num)
match_map = tm.hungarian_match_with_cost(distance_threshold=60, show=False)
print(match_map)
Metadata
Release files for LPMatcher 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| LPMatcher-0.1.3.tar.gz | 5.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| LPMatcher-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.0 kB
Release files / LPMatcher-0.1.3.tar.gz
| Download URL | LPMatcher-0.1.3.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7256e3c85377730b9fe9cf496ebd83b62f09dcfd9b35356a7abf85028c55607
|
|
BLAKE2b-256 checksum How to use checksums |
58d92c9ea7d0a3880a7aefdaa30375f76360b4863567f163069e542597a4ba06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.18 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8
|
Release files / LPMatcher-0.1.3-py3-none-any.whl
| Download URL | LPMatcher-0.1.3-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a875c54a64004d6c7220d61775478a214def2b76962e9fc1c002d3085e5d3bd0
|
|
BLAKE2b-256 checksum How to use checksums |
4c06ccf04e723c5247011f591c803aa1fdcb615f07c56e1b2ceb9a926a64f1ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.18 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8
|