From 3ae5be570cc8530f0aee03050c07f5843f7e5928 Mon Sep 17 00:00:00 2001 From: niksirbi Date: Wed, 8 Nov 2023 10:45:28 +0000 Subject: [PATCH] Don't show "on frame" in the ROI table --- wazp/pages/02_ROI.py | 2 +- wazp/utils.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/wazp/pages/02_ROI.py b/wazp/pages/02_ROI.py index d51054a..637dc18 100644 --- a/wazp/pages/02_ROI.py +++ b/wazp/pages/02_ROI.py @@ -24,7 +24,7 @@ init_frame_slider_params: dict = {"max": 1, "step": 1, "value": 0} init_frame_slider_storage: dict = {v: init_frame_slider_params for v in init_videos} # Columns for ROI table -init_roi_table_columns = ["name", "on frame", "area (px)"] +init_roi_table_columns = ["name", "area (px)"] # Initialize the ROI storage dictionary init_roi_storage: dict = {v: {"shapes": []} for v in init_videos} # Initialize the ROI status alert diff --git a/wazp/utils.py b/wazp/utils.py index 31c8e00..573bb38 100644 --- a/wazp/utils.py +++ b/wazp/utils.py @@ -618,13 +618,11 @@ def stored_shape_to_table_row(shape: dict) -> dict: dict Dictionary with keys: - name: ROI name - - on frame: frame number on which the ROI was last edited - path: SVG path for the ROI """ poly = svg_path_to_polygon(shape["path"]) return { "name": shape["name"], - "on frame": shape["drawn_on_frame"], "area (px)": poly.area, }