Last active
March 31, 2023 16:30
-
-
Save Riyasharma-in/e8a8c9241a798c33239330eaa1f82232 to your computer and use it in GitHub Desktop.
Sorting and Automate Adjustment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import cv2 | |
img = cv2.imread("test.jpg") | |
# generate some bounding boxes (x1, y1, x2, y2) | |
bboxes = [[0.0, 11.934242248535156, 1772.6680908203125, 122.33704376220703], | |
[20.308576583862305, 10.841922760009766, 738.1071166992188, 125.6768798828125], | |
[27.024972915649414, 141.59010314941406, 672.558349609375, 497.9985656738281], | |
[650.5659790039062, 152.5384979248047, 890.4132690429688, 487.71356201171875], | |
[890.1557006835938, 135.5287322998047, 1202.565185546875, 374.8603820800781], | |
[892.4974975585938, 375.61724853515625, 1200.6383056640625, 497.13079833984375], | |
[1207.944091796875, 135.68724060058594, 1518.0498046875, 282.5736389160156], | |
[1209.4520263671875, 325.5934143066406, 1518.9404296875, 505.13232421875], | |
[1214.0224609375, 284.36822509765625, 1346.7022705078125, 322.49090576171875], | |
[1215.242919921875, 283.5899963378906, 1343.781005859375, 319.4556884765625], | |
[1520.7418212890625, 137.78994750976562, 1833.021484375, 256.8352355957031], | |
[1525.503662109375, 258.2439270019531, 1838.082275390625, 505.6017150878906], | |
[1533.6026611328125, 134.74264526367188, 1831.3115234375, 252.4998779296875]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment