Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new segmentation test #203

Open
alexlib opened this issue Mar 31, 2022 · 1 comment
Open

new segmentation test #203

alexlib opened this issue Mar 31, 2022 · 1 comment

Comments

@alexlib
Copy link
Contributor

alexlib commented Mar 31, 2022

@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
@CleisonManriqueAguirre
Copy link
Contributor

CleisonManriqueAguirre commented Apr 5, 2022

I did a pull request and a previous fork , but I have some error checks from github . Please , correct me if wrong . Actually, spyder have some bugs while debugging and it was an error from the version so I changed to pycharm and it better suits .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants