Skip to content

fix(perception): publish bbox width/height, not full-image dims - #501

Open
shreyjoshi2004 wants to merge 1 commit into
Nova-UTD:devfrom
shreyjoshi2004:fix_pedestrian_bbox_dims
Open

fix(perception): publish bbox width/height, not full-image dims#501
shreyjoshi2004 wants to merge 1 commit into
Nova-UTD:devfrom
shreyjoshi2004:fix_pedestrian_bbox_dims

Conversation

@shreyjoshi2004

@shreyjoshi2004 shreyjoshi2004 commented Jun 13, 2026

Copy link
Copy Markdown

Inside detect_pedestrians(), the image-shape unpack height, width, channels = self.image.shape clobbered the YOLO bbox width/height, so every PedestrianInfo carried the full image dimensions instead of the bbox dimensions. Renamed those locals to img_h/img_w so they no longer shadow the bbox dims.

PedestrianInfo has no consumers yet, so this changes no live behavior.

The image-shape unpack shadowed the YOLO bbox width/height, so every
PedestrianInfo carried the full image dimensions. Rename the image-shape
locals to img_h/img_w so they no longer clobber the bbox dims.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@shreyjoshi2004
shreyjoshi2004 force-pushed the fix_pedestrian_bbox_dims branch from 1c58bd6 to a5fa68a Compare June 13, 2026 20:46
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

Successfully merging this pull request may close these issues.

1 participant