Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix documentation references to the encode_mask SDK function
Browse files Browse the repository at this point in the history
SpecLad committed Jan 29, 2025
1 parent 9d563bc commit f2b8a51
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cvat-sdk/cvat_sdk/auto_annotation/interface.py
Original file line number Diff line number Diff line change
@@ -187,7 +187,7 @@ def mask(label_id: int, points: Sequence[float], **kwargs) -> models.LabeledShap
"""
Helper factory function for LabeledShapeRequest with frame=0 and type="mask".
It's recommended to use the cvat.masks.encode_mask function to build the
It's recommended to use the cvat_sdk.masks.encode_mask function to build the
points argument.
"""
return shape(label_id, type="mask", points=points, **kwargs)
2 changes: 1 addition & 1 deletion site/content/en/docs/api_sdk/sdk/auto-annotation.md
Original file line number Diff line number Diff line change
@@ -188,7 +188,7 @@ The following helpers are available for use in `detect`:
| `keypoint` | `SubLabeledShapeRequest` | `frame=0`, `type="points"` |

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

```python

0 comments on commit f2b8a51

Please sign in to comment.