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

Example YOLT format? #45

Closed
iboates opened this issue Jun 16, 2019 · 2 comments
Closed

Example YOLT format? #45

iboates opened this issue Jun 16, 2019 · 2 comments

Comments

@iboates
Copy link

iboates commented Jun 16, 2019

Could you provide an example of the YOLT format? It says that they have to be relative to the image's width and height but I am wondering which coordinate exactly is supposed to be the x and y. Is it the bottom-left? Or potentially the top-left?

And if it is the top-left, is the height specified in the negative, similar to how rows & cols are defined differently to cartesian x & y?

Thanks

@avanetten
Copy link
Owner

@iboates
Copy link
Author

iboates commented Jun 16, 2019

Ok so I looked at these functions and I am having a hard time putting them together since I can't find a working example given a set of tif and geojson files, but I already wrote some snippets which are able to map the polygons to a bounding box and create a bounding box, so maybe you could just help me by clarifying a bit further:

Do you mean that the the x and y values correspond the the centroid, and that the width and height correspond to the total width and height of the polygon or just from the centroid to the outer edge?

i.e. given this image: https://i.imgur.com/1wh0luY.png

Where the white space around the pink polygon represents the bounding box, should the "width" of the feature be the length of the red line or the red line plus the blue line?

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