Skip to content

Commit e7ce0c4

Browse files
authored
Fix documentation references to the encode_mask SDK function (#9013)
1 parent 9d563bc commit e7ce0c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cvat-sdk/cvat_sdk/auto_annotation/interface.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def mask(label_id: int, points: Sequence[float], **kwargs) -> models.LabeledShap
187187
"""
188188
Helper factory function for LabeledShapeRequest with frame=0 and type="mask".
189189
190-
It's recommended to use the cvat.masks.encode_mask function to build the
190+
It's recommended to use the cvat_sdk.masks.encode_mask function to build the
191191
points argument.
192192
"""
193193
return shape(label_id, type="mask", points=points, **kwargs)

site/content/en/docs/api_sdk/sdk/auto-annotation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ The following helpers are available for use in `detect`:
188188
| `keypoint` | `SubLabeledShapeRequest` | `frame=0`, `type="points"` |
189189

190190
For `mask`, it is recommended to create the points list using
191-
the `cvat.masks.encode_mask` function, which will convert a bitmap into a
191+
the `cvat_sdk.masks.encode_mask` function, which will convert a bitmap into a
192192
list in the format that CVAT expects. For example:
193193

194194
```python

0 commit comments

Comments
 (0)