Skip to content

Commit

Permalink
Don't show "on frame" in the ROI table
Browse files Browse the repository at this point in the history
  • Loading branch information
niksirbi committed Nov 8, 2023
1 parent 28aa173 commit 3ae5be5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion wazp/pages/02_ROI.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions wazp/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down

0 comments on commit 3ae5be5

Please sign in to comment.