You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/tutorial.sdk.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -368,7 +368,7 @@ Example of created DataFrame:
368
368
Each row represents annotation information. One full annotation with multiple
369
369
attribute groups can be grouped under :code:`instanceId` field.
370
370
371
-
A helper function :ref:`filter_annotation_instances <ref_filter_annotation_instances>` to annotation instances by their classor attribute from the DataFrame is available. E.g., to get annotations that have annotation class :code:`Human` and attribute :code:`"height" : "tall"` that are **not** of type :code:`polygon`:
371
+
A helper function :ref:`filter_annotation_instances <ref_filter_annotation_instances>` is available to filter annotation instances by their class, attribute, type or error fields from the DataFrame. E.g., to get annotations that have annotation class :code:`Human` and attribute :code:`"height" : "tall"` that are **not** of type :code:`polygon`:
"""Filter annotation instances from project annotations pandas DataFrame.
24
47
25
-
include and exclude rulses should be a list of rules of following type: [{"className": "<className>", "type" : "<bbox, polygon,...>", "attributes" : [{"name" : "<attribute_value>", "groupName" : "<attribute_group_name>"},...]},...]
48
+
include and exclude rulses should be a list of rules of following type: [{"className": "<className>", "type" : "<bbox, polygon,...>", "error": <True or False>, "attributes" : [{"name" : "<attribute_value>", "groupName" : "<attribute_group_name>"},...]},...]
26
49
27
50
28
51
:param annotations_df: pandas DataFrame of project annotations
0 commit comments