Skip to main content

pnt3

Calculating the degree of similarity between geometric figures of different shapes (by 3 points)

Installation

pip install pnt3

How to use:

from pathlib import Path
from pnt3.src.get_similarity import get_similarity, calc_similarity, convert_to_canonical

""" Get input data """
path_1 = str(Path.cwd() / 'DATA' / 'first.png')
path_2 = str(Path.cwd() / 'DATA' / 'second.png')

similarity_1 = get_similarity(path_1, path_2)

image_1_can = convert_to_canonical('1', path_1)
image_2_can = convert_to_canonical('2', path_2)

similarity_2 = calc_similarity(image_1_can, image_2_can)

print(f'\nsimilarity_1 = {round(similarity_1, 7)}'
      f'\nsimilarity_2 = {round(similarity_2, 7)}')

Release files for pnt3 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pnt3 1.0.3
File Size Uploaded
pnt3-1.0.3.tar.gz 9.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pnt3 1.0.3
File Interpreter ABI Platform
pnt3-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size:24.7 kB

Release files / pnt3-1.0.3.tar.gz

Download URL pnt3-1.0.3.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4883d5a3e83b12a8ae165f498eb26a4b18703726cba44b363d61bd9498d6dcdd
BLAKE2b-256 checksum
How to use checksums
65254e5650eb4be9c35c78849a204a3dc276c115037710a9f3a1741e844ac539
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.10.11 Darwin/23.1.0

Release files / pnt3-1.0.3-py3-none-any.whl

Download URL pnt3-1.0.3-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41ab1b3fb0c628af16d435ade3943f792fd6b254cc22406a9745a4ffc9a7d0f8
BLAKE2b-256 checksum
How to use checksums
57ffc292aeb71ea9f5627574fc883ef096dd72eb3a98bddeafe5be1371bac96f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.10.11 Darwin/23.1.0

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page