Skip to content

It is possible to produce bounding boxes with zero pixels #461

@oskarlphansen

Description

@oskarlphansen

It is possible to produce crops with no pixels. This is when either length or height of a bounding box is zero. This typically crashes the program or produces an error when attempting to export crops.

I solved this by seaching for "0.0\n" in the corresponding .inselect file to find the box that causes the problem. I am not sure when this problem is introduced, if its something that is caused by human error or the segmentation function.

Either way, it should not be possible to create a bounding box with zero pixels in order to avoid error when exporting crops.

This problem was produced with inselect 0.1.36 running on Ubuntu 16.04, Python 3.5.2, Numpy 1.11.2, OpenCV 3.1.0, PyQt5 5.7, Qt 5.7.0, scikit-learn 0.18.1, SciPy 0.17.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions