Skip to content

new segmentation test #203

@alexlib

Description

@alexlib

@C73150N
please add a new test to https://github.com/OpenPTV/openptv/blob/master/py_bind/test/test_segmentation.py

we test now in

def test_two_targets(self):
the detection of two (1 pixel each) targets and check that there are 2 of them and then the first one is of the size 1 pixel. Actually it checks that it's 1 pixel in x, 1 pixel in y and 1 pixel in total.

Please add a new test in which an object is 3 x 2 pixels and we actually know which is x and which is y by the shape of that object, i.e.

        img = np.array([
            [0,   0,   0,   0, 0],
            [0, 255,   250,   250, 0],
            [0,   251,   253,   0, 0],
            [0,   0,   0, 251, 0],
            [0,   0,   0,   0, 0]
        ], dtype=np.uint8)

something like this, maybe there's a bug in this image. But we need to start by small steps

So, please:

  1. fork this repo to your account
  2. add the test
  3. send us the pull request

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