Skip to content

Fix bboxes #54

@mhallipelto

Description

@mhallipelto

Some bboxes are in (left, right, lower, upper) and some (left, lower, right, upper). This should be unified.

namedtuple could be a good way to handle bboxes.

from collections import namedtuple
BBox = namedtuple("BBox", "xmin ymin xmax ymax")
bbox = BBox(24, 60, 25, 61)
print(bbox.xmin)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions