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

Class NotSupportedShapeError

src/layoutparser/elements/errors.py:15–20  ·  view source on GitHub ↗

For now (v0.2), if the created shape might be a polygon (shapes with more than 4 vertices), layoutparser will raise NotSupportedShapeError. It is expected to be fixed in the future versions. See :ref:`shape_operations:problems-related-to-the-quadrilateral-class`.

Source from the content-addressed store, hash-verified

13# limitations under the License.
14
15class NotSupportedShapeError(Exception):
16 """For now (v0.2), if the created shape might be a polygon (shapes with more than 4 vertices),
17 layoutparser will raise NotSupportedShapeError. It is expected to be fixed in the future versions.
18 See
19 :ref:`shape_operations:problems-related-to-the-quadrilateral-class`.
20 """
21
22
23class InvalidShapeError(Exception):

Callers 6

intersectMethod · 0.85
unionMethod · 0.85
intersectMethod · 0.85
unionMethod · 0.85
intersectMethod · 0.85
unionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected