utils
coco_ground_truth_to_df(ground_truth_file, max_images=200000)
Load and transforms COCO ground truth data to pd.DataFrame object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ground_truth_file |
str
|
Path of ground truth file. |
required |
max_images |
int
|
Maximum number of images to process. |
200000
|
Returns:
Type | Description |
---|---|
pd.DataFrame
|
pd.DataFrame with df_annotations keys and image sizes. |
Source code in pyodi/core/utils.py
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
|
load_coco_ground_truth_from_StringIO(string_io)
Returns COCO object from StringIO.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
string_io |
TextIO
|
IO stream in text mode. |
required |
Returns:
Type | Description |
---|---|
COCO
|
COCO object. |
Source code in pyodi/core/utils.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|