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

importers.py inconsistent format #11

Open
Timen opened this issue Jul 28, 2017 · 0 comments
Open

importers.py inconsistent format #11

Timen opened this issue Jul 28, 2017 · 0 comments

Comments

@Timen
Copy link

Timen commented Jul 28, 2017

Why does the code expect the bounding box in the hypotheses format as upper left:

   for i in range(nHypotheses):
            hypo = {
                'id':     s[5*i + 0],
                'x':      float(s[5*i + 1]),
                'y':      float(s[5*i + 2]),
                'width':  float(s[5*i + 3]) - float(s[5*i + 1]), # x - tl_x
                'height': float(s[5*i + 4]) - float(s[5*i + 2]), # y - tl_y
            }
            hypotheses.append(hypo)

And centre in the ground truth json:

for i in range(nAnnotations):
            id = s[13*i + 0]
            cx = float(s[13*i + 3])
            cy = float(s[13*i + 4])
            w  = float(s[13*i + 5])
            h  = float(s[13*i + 6])

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

1 participant