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

Coordinates for feature prediction given boxes #22

Open
eleonoragualdoni opened this issue Jul 16, 2021 · 1 comment
Open

Coordinates for feature prediction given boxes #22

eleonoragualdoni opened this issue Jul 16, 2021 · 1 comment

Comments

@eleonoragualdoni
Copy link

Feature prediction given boxes

If I want to predict features given box coordinates, following the script in your demos, are the coordinates to provide in the format XYXY, or in format XYWH?

Thanks!

@airsplay
Copy link
Owner

airsplay commented Aug 6, 2021

The order is (x_left_corner, y_top_corner, x_right_corner, y_bottom_corner).

Here is a visualization. Suppose the box = [x0, y0, x1, y1], it annotates an RoI of:

0-------------------------------------
 |                                   |
 y0 box[1]   |-----------|           |
 |           |           |           |
 |           |  Object   |           |
 y1 box[3]   |-----------|           |
 |                                   |
H----------x0 box[0]-----x1 box[2]----
 0                                   W

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