Skip to content

[RSDK-10140] add relative bounding box coordinates to detections #640

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

Merged
merged 4 commits into from
Mar 10, 2025

Conversation

penguinland
Copy link
Member

Github thinks I should tag Naveed. I'm tagging Bijan, but could be wrong.

I changed the comment from what was in Jira. I'm willing to change it back if you want, though personally I think this is more useful (making the comment say they're normalized doesn't add anything I didn't already get from the field names).

@penguinland penguinland requested a review from bhaney March 7, 2025 19:49
@github-actions github-actions bot added the safe to test committer is a member of this org label Mar 7, 2025
@penguinland
Copy link
Member Author

For those playing along at home, the scope doc is in RSDK-10082.

Copy link
Member

@bhaney bhaney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the comment should reflect that it its proportion to the respective length or height. It doesnt have to be exactly what i wrote- but its not the total size of the image

@@ -97,6 +97,11 @@ message Detection {
double confidence = 5;
// label associated with the detected object
string class_name = 6;
// the four corners of the box, divided by the size of the entire image
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not divided by the size of the entire image, but by their respective dimension. So x norm is the x divided by the x length, and y norm is y divided by the y length. So let's say "the four corners of the box, in proportion to the respective dimension of the image"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, updated.

I also forgot to run make all to change the Go and JavaScript versions of the code! 😳 I've done that now. This is still the only file I've edited: the rest is just auto-generated.

@penguinland penguinland requested a review from bhaney March 10, 2025 16:58
Copy link
Member

@bhaney bhaney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@penguinland penguinland added the ready-for-protos add this when you want protos to compile on every commit label Mar 10, 2025
@penguinland penguinland removed the ready-for-protos add this when you want protos to compile on every commit label Mar 10, 2025
@penguinland penguinland merged commit 3176c8c into viamrobotics:main Mar 10, 2025
3 checks passed
@penguinland penguinland deleted the relative_bounding_boxes branch March 10, 2025 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
protos-compiled safe to test committer is a member of this org
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants