From 31bf1ff891f156f6a4985918f3707a75248669b3 Mon Sep 17 00:00:00 2001 From: jerinpeter Date: Wed, 17 Jun 2026 12:01:52 -0700 Subject: [PATCH 1/3] update file --- src/om1_vlm/anonymizationSys/face_recog_stream/run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/om1_vlm/anonymizationSys/face_recog_stream/run.py b/src/om1_vlm/anonymizationSys/face_recog_stream/run.py index e0a14c9..770abda 100644 --- a/src/om1_vlm/anonymizationSys/face_recog_stream/run.py +++ b/src/om1_vlm/anonymizationSys/face_recog_stream/run.py @@ -261,12 +261,12 @@ def main() -> None: logger.info("Starting realtime_stream...") script_dir = os.path.dirname(os.path.abspath(__file__)) - models_dir = os.path.join(script_dir, "..", "engine") + models_dir = os.path.join(script_dir, "..", "engines") platform_prefix = get_platform_prefix() scrfd_name = f"{platform_prefix}_scrfd_10g.engine" arc_name = f"{platform_prefix}_adaface_ir101.engine" - pose_name = "yolo11s-pose.engine" + pose_name = f"{platform_prefix}_yolo11s-pose.engine" default_scrfd_engine = os.path.join(models_dir, scrfd_name) default_arc_engine = os.path.join(models_dir, arc_name) From 6eb0b4bc096b60c9602f55ec0755cbdeb671cef8 Mon Sep 17 00:00:00 2001 From: jerinpeter Date: Wed, 17 Jun 2026 12:44:06 -0700 Subject: [PATCH 2/3] update files --- .../face_recog_stream/who_tracker.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/om1_vlm/anonymizationSys/face_recog_stream/who_tracker.py b/src/om1_vlm/anonymizationSys/face_recog_stream/who_tracker.py index 04a46c7..bef7922 100644 --- a/src/om1_vlm/anonymizationSys/face_recog_stream/who_tracker.py +++ b/src/om1_vlm/anonymizationSys/face_recog_stream/who_tracker.py @@ -27,6 +27,13 @@ class FallInfo: identity: Optional[str] # Matched face name or None is_fallen: bool + bbox: Tuple[float, float, float, float] = ( + 0.0, + 0.0, + 0.0, + 0.0, + ) # x1, y1, x2, y2 (pose bbox = full body) + confidence: float = 0.0 # Fall detection confidence (0-1) def _expand_bbox(bbox, margin: float): @@ -113,6 +120,8 @@ def match_falls_to_faces( FallInfo( identity=matched_identity, is_fallen=status.is_fallen, + bbox=tuple(float(x) for x in status.bbox), + confidence=float(status.confidence), ) ) @@ -312,9 +321,18 @@ def is_named(x: str) -> bool: # ----- Fall detection (unchanged) ----- fallen_now: List[str] = [] + fallen_now_details: List[Dict] = ( + [] + ) # name + bbox + confidence per fallen person fallen_unknown_now = 0 for fall in now_falls: if fall.is_fallen: + detail = { + "name": fall.identity if fall.identity else "unknown", + "bbox": list(fall.bbox), + "confidence": float(fall.confidence), + } + fallen_now_details.append(detail) if fall.identity and fall.identity != "unknown": if fall.identity not in fallen_now: fallen_now.append(fall.identity) @@ -360,6 +378,7 @@ def is_named(x: str) -> bool: "unknown_recent": int(unknown_recent_peak), # Fall detection (unchanged) "fallen_now": fallen_now, + "fallen_now_details": fallen_now_details, "fallen_now_count": len(fallen_now) + fallen_unknown_now, "fallen_unknown_now": fallen_unknown_now, "fallen_recent": fallen_recent, From 1b50058ca99573d65f20bb19c5b2fdc657efe60f Mon Sep 17 00:00:00 2001 From: openmindev <147775420+openminddev@users.noreply.github.com> Date: Wed, 17 Jun 2026 14:42:44 -0700 Subject: [PATCH 3/3] Add type ignore for bbox tuple conversion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Silence static type checker complaints by adding a '# type: ignore' comment when converting status.bbox to a tuple of floats. This does not change runtime behavior—only suppresses type errors for the bbox conversion. --- src/om1_vlm/anonymizationSys/face_recog_stream/who_tracker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/om1_vlm/anonymizationSys/face_recog_stream/who_tracker.py b/src/om1_vlm/anonymizationSys/face_recog_stream/who_tracker.py index bef7922..f23e8b2 100644 --- a/src/om1_vlm/anonymizationSys/face_recog_stream/who_tracker.py +++ b/src/om1_vlm/anonymizationSys/face_recog_stream/who_tracker.py @@ -120,7 +120,7 @@ def match_falls_to_faces( FallInfo( identity=matched_identity, is_fallen=status.is_fallen, - bbox=tuple(float(x) for x in status.bbox), + bbox=tuple(float(x) for x in status.bbox), # type: ignore confidence=float(status.confidence), ) )