Metadata-Version: 2.1
Name: pnt2
Version: 1.0.3
Summary: "pnt2" - calculating the degree of similarity between geometric figures of different shapes (by 2 points)
License: MIT
Author: Boris Kravtsov
Author-email: kravtsov.development@gmail.com
Requires-Python: >=3.11,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: opencv-python-headless (>=4.8.1.78,<5.0.0.0)
Description-Content-Type: text/markdown

## pnt2
Calculating the degree of similarity between geometric figures of different shapes (by 2 points)

### Installation
```
pip install pnt2
```
### How to use:
```Python
from pathlib import Path
from pnt2.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)}')
```

