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

Fix annotations reference frame #1

Open
tknapen opened this issue Sep 20, 2019 · 1 comment
Open

Fix annotations reference frame #1

tknapen opened this issue Sep 20, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@tknapen
Copy link
Owner

tknapen commented Sep 20, 2019

For the experiment, COCO images were cropped to be square. This means that the spatial parameters returned by the COCO interface are off, and need to be re-mapped to correct for the cropping.

@tknapen tknapen added the bug Something isn't working label Sep 20, 2019
@iancharest
Copy link
Collaborator

just leaving some notes here with regards to our potential solution:

from the cropbox we can get to x or y translation factors

from the original picture dimensions we can get the x and y scaling factors

then, the rest is just a vector matrix dot product of the xy coordinates of the annotation segmentation points with an affine transform matrix

[cx 0 tx
0 cy ty
0 0 1]

cx being scaling in x, cy scaling in y, tx translation in x and ty translation in y

then we check for out of bound annotation points and filter these classes out (for the class labels)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants