Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions annofabapi/dataclass/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class AdditionalDataV1(DataClassJsonMixin):
"""`additional_data_definition`の`type`が`integer`のときの属性値。 """

comment: str | None
"""`additional_data_definition`の`type`が`text`,`comment`,`link` または `tracking`のときの属性値。 """
"""`additional_data_definition`の`type`が`comment`,`text`,`link` または `tracking`のときの属性値。 """

choice: str | None
"""選択肢ID。[値の制約についてはこちら。](#section/API-Convention/APIID) """
Expand Down Expand Up @@ -324,7 +324,7 @@ class SingleAnnotationDetailV1(DataClassJsonMixin):
"""data_holding_typeがouterの場合のみ存在し、データへの一時URLが格納される"""

additional_data_list: list[AdditionalDataV1]
"""属性情報。 アノテーション属性の種類(`additional_data_definition`の`type`)によって、属性値を格納するプロパティは変わります。 | 属性の種類 | `additional_data_definition`の`type` | 属性値を格納するプロパティ | |------------|-------------------------|----------------------| | ON/OFF | flag | flag | | 整数 | integer | integer | | 自由記述(1行)| text | comment | | 自由記述(複数行)| comment | comment | | トラッキングID | tracking | comment | | アノテーションリンク | link | comment | | 排他選択(ラジオボタン) |choice | choice | | 排他選択(ドロップダウン) | select | choice | """
"""属性情報。 アノテーション属性の種類(`additional_data_definition`の`type`)によって、属性値を格納するプロパティは変わります。 | 属性の種類 | `additional_data_definition`の`type` | 属性値を格納するプロパティ | |------------|-------------------------|----------------------| | ON/OFF | flag | flag | | 整数 | integer | integer | | 自由記述(1行)| comment | comment | | 自由記述(複数行)| text | comment | | トラッキングID | tracking | comment | | アノテーションリンク | link | comment | | 排他選択(ラジオボタン) |choice | choice | | 排他選択(ドロップダウン) | select | choice | """

created_datetime: str
"""作成日時"""
Expand Down Expand Up @@ -433,7 +433,7 @@ class AnnotationDetailV1(DataClassJsonMixin):
"""外部ファイルに保存されたアノテーションの認証済み一時URL。`data_holding_type`が`inner`の場合、または[putAnnotation](#operation/putAnnotation) APIのリクエストボディに渡す場合は未指定です。"""

additional_data_list: list[AdditionalDataV1]
"""属性情報。 アノテーション属性の種類(`additional_data_definition`の`type`)によって、属性値を格納するプロパティは変わります。 | 属性の種類 | `additional_data_definition`の`type` | 属性値を格納するプロパティ | |------------|-------------------------|----------------------| | ON/OFF | flag | flag | | 整数 | integer | integer | | 自由記述(1行)| text | comment | | 自由記述(複数行)| comment | comment | | トラッキングID | tracking | comment | | アノテーションリンク | link | comment | | 排他選択(ラジオボタン) |choice | choice | | 排他選択(ドロップダウン) | select | choice | """
"""属性情報。 アノテーション属性の種類(`additional_data_definition`の`type`)によって、属性値を格納するプロパティは変わります。 | 属性の種類 | `additional_data_definition`の`type` | 属性値を格納するプロパティ | |------------|-------------------------|----------------------| | ON/OFF | flag | flag | | 整数 | integer | integer | | 自由記述(1行)| comment | comment | | 自由記述(複数行)| text | comment | | トラッキングID | tracking | comment | | アノテーションリンク | link | comment | | 排他選択(ラジオボタン) |choice | choice | | 排他選択(ドロップダウン) | select | choice | """

created_datetime: str | None
"""作成日時"""
Expand Down
14 changes: 7 additions & 7 deletions annofabapi/dataclass/annotation_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,10 @@ class AnnotationTypeFieldValueMinimumSize2dWithDefaultInsertPosition(DataClassJs
""""""

min_width: int
""""""
"""最小の幅。標準の矩形種別では0以上を指定します。ユーザー定義種別では、現在、下限は検証されません。 """

min_height: int
""""""
"""最小の高さ。標準の矩形種別では0以上を指定します。ユーザー定義種別では、現在、下限は検証されません。 """

position_for_minimum_bounding_box_insertion: list[int] | None
"""最小矩形の挿入位置を、要素が2の配列で指定します。 """
Expand Down Expand Up @@ -347,11 +347,11 @@ class AnnotationTypeFieldValueVertexCountMinMax(DataClassJsonMixin):
type: str
""""""

min: int
""""""
min: int | None
"""頂点数の最小値。データ型が `Polyline2d` の場合は2以上、`Polygon2d` の場合は3以上を指定します。 """

max: int
""""""
max: int | None
"""頂点数の最大値。標準種別ではポリラインは2以上、ポリゴンは3以上を指定します。ユーザー定義種別では、`max` のみ指定した場合、下限は検証されません。 """


@dataclass
Expand Down Expand Up @@ -610,7 +610,7 @@ class LabelV3(DataClassJsonMixin):
""""""

field_values: dict[str, AnnotationTypeFieldValue]
"""KeyがフィールドIdであるDictionaryです。 カスタムの[組織プラグイン](#operation/putOrganizationPlugin)で利用される[UserDefinedAnnotationTypeDefinition](#tag/x-data-types/UserDefinedAnnotationTypeDefinition).`field_definitions`で定義されます。 """
"""ラベルごとの制約や設定値を保持するオブジェクトです。 キーには設定項目を識別するフィールドIDを指定し、値にはそのフィールドに設定する制約やオプションを表すオブジェクトを指定します。 例えば頂点数制約は、`\"vertex_count_min_max\": {\"_type\": \"VertexCountMinMax\", \"max\": 20}` のように指定します。 Annofabの標準エディタでは、アノテーション種別ごとに、使用可能なフィールドIDと設定値の構造があらかじめ決まっています。設定値の構造は、値オブジェクトの `_type` に設定値の構造を示す名前を指定することで示します。以下の表に、フィールドIDと設定値の構造を示す名前を示します。 | エディタ | アノテーション種別(`annotation_type`) | フィールドID → 設定値の構造を示す名前 | | --- | --- | --- | | 画像 | 矩形(`bounding_box`) | `minimum_size_2d_with_default_insert_position` → `MinimumSize2dWithDefaultInsertPosition`<br>`margin_of_error_tolerance` → `MarginOfErrorTolerance` | | 画像 | ポリゴン(`polygon`) | `minimum_size_2d` → `MinimumSize2d`<br>`minimum_area_2d` → `MinimumArea2d`<br>`vertex_count_min_max` → `VertexCountMinMax`<br>`margin_of_error_tolerance` → `MarginOfErrorTolerance` | | 画像 | ポリライン(`polyline`) | `minimum_size_2d` → `MinimumSize2d`<br>`vertex_count_min_max` → `VertexCountMinMax`<br>`display_line_direction` → `DisplayLineDirection`<br>`margin_of_error_tolerance` → `MarginOfErrorTolerance` | | 画像 | 点(`point`) | `margin_of_error_tolerance` → `MarginOfErrorTolerance` | | 画像 | 塗りつぶし(`segmentation`)・塗りつぶしv2(`segmentation_v2`) | `minimum_size_2d` → `MinimumSize2d`<br>`margin_of_error_tolerance` → `MarginOfErrorTolerance`<br>`annotation_editor_feature` → `AnnotationEditorFeature` | | 画像・動画 | 全体(`classification`) | なし | | 動画 | 区間(`range`) | なし | ユーザー定義アノテーション種別では、[組織プラグイン](#operation/putOrganizationPlugin)の [UserDefinedAnnotationTypeDefinition](#tag/x-data-types/UserDefinedAnnotationTypeDefinition) の `field_definitions` で定義されたフィールドIDをキーに指定します。値オブジェクトの `_type` には、設定値の構造を示す名前を指定します。指定する名前は、[フィールド定義と設定値の対応表](#tag/x-data-types/UserDefinedAnnotationTypeDefinition)(`field_definitions` の `definition` の説明)を参照してください。 """

additional_data_definitions: list[str]
"""ラベルに所属する属性のID"""
Expand Down
6 changes: 3 additions & 3 deletions annofabapi/generated_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,10 +429,10 @@ def put_annotation_specs(
https://annofab.com/docs/api/#operation/putAnnotationSpecs


authorizations: ProjectOwner
authorizations: ProjectAccepter


アノテーション仕様を更新します。
アノテーション仕様を更新します。 プロジェクトのチェッカーロールを持つユーザーは、以下の項目のみ変更できます。 * ラベルの色 * ラベル・属性・選択肢のショートカットキー * ラベル・属性・選択肢の表示順 * 定型指摘 チェッカーロールを持つユーザーがそれ以外の項目を変更しようとした場合、`403 Forbidden`(エラーコード`FORBIDDEN_FEATURE`)になります。

Args:
project_id (str): プロジェクトID (required)
Expand Down Expand Up @@ -3147,7 +3147,7 @@ def put_task(self, project_id: str, task_id: str, *, request_body: Any | None =
authorizations: ProjectOwner


タスクを作成または更新します。 大量のタスクを一括で生成する場合は、[initiateTasksGeneration](#operation/initiateTasksGeneration) APIの使用を検討してください。
タスクを作成または更新します。 一度でもタスクが作業中になっている場合は、タスクの入力データを更新することはできません。入力データを更新したい場合は、新しくタスクを作成してください。 大量のタスクを一括で生成する場合は、[initiateTasksGeneration](#operation/initiateTasksGeneration) APIの使用を検討してください。

Args:
project_id (str): プロジェクトID (required)
Expand Down
Loading
Loading