Skip to content

Instantly share code, notes, and snippets.

@Riyasharma-in
Created March 31, 2023 17:03
Show Gist options
  • Save Riyasharma-in/d2e936d031971d2c3ac99adcc4164d00 to your computer and use it in GitHub Desktop.
Save Riyasharma-in/d2e936d031971d2c3ac99adcc4164d00 to your computer and use it in GitHub Desktop.
Sorting and Automate Adjustment
converted_boxes = []
for box in df.values.tolist():
x, y, w, h, x2 = box
y2 = y + h
converted_boxes.append([x, y, x2, y2])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment