Skip to content

Bbox tracking options#180

Open
frey808 wants to merge 2 commits intomainfrom
bbox-tracking-options
Open

Bbox tracking options#180
frey808 wants to merge 2 commits intomainfrom
bbox-tracking-options

Conversation

@frey808
Copy link
Copy Markdown
Contributor

@frey808 frey808 commented Jan 27, 2026

Description

Adds the the ability to track the smallest and the largest detected bounding box. Which one to prioritize when multiple bounding boxes are in the frame can be determined by setting the 'tracking_priority' variable in config. Closes issue #178

Metrics

  • PR Confidence value(1 ~ 5): 4

Copy link
Copy Markdown
Contributor

@hiromon0125 hiromon0125 left a comment

Choose a reason for hiding this comment

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

A few problems with the actual code, but we might also refactor the affected area, so we are going to hold off on merging this.

camera = conf["camera_index"] if camera is None else camera
vid_conn = self.tracker.add_capture(hostname, camera)
conn = Connection(hostname, port or conf["socket_port"], vid_conn)
conn = Connection(hostname, port or conf["socket_port"], vid_conn, conf["tracking_priority"])
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
conn = Connection(hostname, port or conf["socket_port"], vid_conn, conf["tracking_priority"])
conn = Connection(hostname, port or conf["socket_port"], vid_conn, conf.get("tracking_priority", "largest")



def calculate_center_bbox(bbox: tuple[int, int, int, int]):
def calculate_center_bbox(bbox: list[int]):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

revert this back

)

self._bboxes = bboxes_by_host
# culled_bboxes: dict[str, ] = self.cull_bboxes(bboxes_by_host)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

delete commented out code

# Class for handling video feed and object detection model usage
class Tracker:
speaker_bbox: tuple[int, int, int, int] | None = None
speaker_bbox: list[int] | None = None
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

revert this change

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.

2 participants