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

How to generate the oritentation label? #10

Open
SonwYang opened this issue Feb 26, 2022 · 5 comments
Open

How to generate the oritentation label? #10

SonwYang opened this issue Feb 26, 2022 · 5 comments

Comments

@SonwYang
Copy link

I'am intersted in your work and want to use this method in my customized dataset but I have no idea how to generate the oritentation label according to the edge label. Can you provide some details about it? Thank your, bro!

@GuoxiaWang
Copy link
Owner

GuoxiaWang commented Feb 26, 2022

@SonwYang Whether the edge label has orientation? If not, you can use my InstanceLabelTool to annotate the edge orientation.

Here is code to calculate edge orientations, GuoxiaWang/InstanceLabelTool#1 (comment)

@SonwYang
Copy link
Author

The edge label is a binary map. Is there a way to convert the edge label to oritentation label?

@GuoxiaWang
Copy link
Owner

The edge label is a binary map. Is there a way to convert the edge label to oritentation label?

You can not convert directly the edge label to the orientation label.

You need to get the edge segment orientation. e.g

edge points: [[0, 0], [1, 0], [1, 1], [2, 1], [2, 2]]
edge segment orientation is : [0, 0] -> [2, 2]

or

edge points: [[2, 2], [2, 1], [1, 1], [1, 0], [0, 0]]
edge segment orientation is : [2, 2] -> [0, 0]

【By the ”left” rule, the left side of each arrow indicates the foreground.】in DOOBNet paper Fig.1.

@SonwYang
Copy link
Author

It means that I can convert the polygon label into the oritentation label, is that right?

@GuoxiaWang
Copy link
Owner

It means that I can convert the polygon label into the oritentation label, is that right?

yes, but first you need to annotate the edge segment direction.

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