Skip to content

Commit

Permalink
remove unused logic for converting bbox conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
sumn2u committed Jul 2, 2024
1 parent b7f6d6e commit 06fde5f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,13 +425,6 @@ def hex_to_rgb_tuple(hex_color):
hex_color = hex_color.lstrip('#')
return tuple(int(hex_color[i:i+2], 16) for i in (0, 2, 4))

def convert_bbox_points_to_hwxy(points):
x = points[0][0]
y = points[0][1]
w = points[1][0] - points[0][0]
h = points[3][1] - points[0][1]
return h, w, x, y

def map_region_keys(region):
mapped_region = {}
print(f"Region: {region}")
Expand Down

0 comments on commit 06fde5f

Please sign in to comment.