|
9 | 9 |
|
10 | 10 |
|
11 | 11 | def df_to_annotations(df, output_dir): |
12 | | - """Converts and saves pandas DataFrame annotation info (see aggregate_annotations_as_df) in output_dir |
13 | | - The DataFrame should have columns: "imageName", "className", "attributeGroupName", "attributeName", "type", "error", "locked", "visible", trackingId", "probability", "pointLabels", "meta", "commentResolved", "classColor", "groupId" |
| 12 | + """Converts and saves pandas DataFrame annotation info (see aggregate_annotations_as_df) |
| 13 | + in output_dir. |
| 14 | + The DataFrame should have columns: "imageName", "className", "attributeGroupName", |
| 15 | + "attributeName", "type", "error", "locked", "visible", trackingId", "probability", |
| 16 | + "pointLabels", "meta", "commentResolved", "classColor", "groupId" |
14 | 17 |
|
15 | 18 | Currently only works for Vector projects. |
16 | 19 |
|
@@ -145,12 +148,21 @@ def aggregate_annotations_as_df( |
145 | 148 |
|
146 | 149 | :param project_root: export path of the project |
147 | 150 | :type project_root: Pathlike (str or Path) |
148 | | - :param include_classes_wo_annotations: enables inclusion of classes info that have no instances in annotations |
| 151 | + :param include_classes_wo_annotations: enables inclusion of classes info |
| 152 | + that have no instances in annotations |
149 | 153 | :type include_classes_wo_annotations: bool |
150 | 154 | :param include_comments: enables inclusion of comments info as commentResolved column |
151 | 155 | :type include_comments: bool |
152 | | -
|
153 | | - :return: DataFrame on annotations with columns: "imageName", "instanceId" className", "attributeGroupName", "attributeName", "type", "error", "locked", "visible", "trackingId", "probability", "pointLabels", "meta" (geometry information as string), "commentResolved", "classColor", "groupId", "imageWidth", "imageHeight", "imageStatus", "imagePinned", "createdAt", "creatorRole", "creationType", "creatorEmail", "updatedAt", "updatorRole", "updatorEmail" |
| 156 | + :param include_tags: enables inclusion of tags info as tag column |
| 157 | + :type include_tags: bool |
| 158 | +
|
| 159 | + :return: DataFrame on annotations with columns: "imageName", "instanceId", |
| 160 | + "className", "attributeGroupName", "attributeName", "type", "error", "locked", |
| 161 | + "visible", "trackingId", "probability", "pointLabels", |
| 162 | + "meta" (geometry information as string), "commentResolved", "classColor", |
| 163 | + "groupId", "imageWidth", "imageHeight", "imageStatus", "imagePinned", |
| 164 | + "createdAt", "creatorRole", "creationType", "creatorEmail", "updatedAt", |
| 165 | + "updatorRole", "updatorEmail", "tag" |
154 | 166 | :rtype: pandas DataFrame |
155 | 167 | """ |
156 | 168 |
|
|
0 commit comments