MCPcopy Create free account
hub / github.com/Layout-Parser/layout-parser / InvalidShapeError

Class InvalidShapeError

src/layoutparser/elements/errors.py:23–26  ·  view source on GitHub ↗

For shape operations like intersection of union, lp will raise the InvalidShapeError when invalid shapes are created (e.g., intersecting a rectangle and an interval).

Source from the content-addressed store, hash-verified

21
22
23class InvalidShapeError(Exception):
24 """For shape operations like intersection of union, lp will raise the InvalidShapeError when
25 invalid shapes are created (e.g., intersecting a rectangle and an interval).
26 """

Callers 1

unionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected