Skip to content

error #10

@nponts

Description

@nponts

Hi,
The tools looks awesome however I run into a division by zero error:

File /opt/miniconda3/envs/jupyterlab/lib/python3.12/site-packages/shapesimilarity/shapesimilarity.py:40, in shape_similarity(shape1, shape2, rotations, checkRotation)
38 min_frechet_distance = frechet_dist
39 # divide by Math.sqrt(2) to try to get the low results closer to
---> 40 result = max(1 - min_frechet_distance / (geo_avg_curve_len / math.sqrt(2)), 0)
41 return round(result, 4)

ZeroDivisionError: float division by zero

I checked my input and I really don't see what's wrong...
Help please!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions