Skip to content

AnnofabapiWrapper.update_status_of_inspectionsの更新 #209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Sep 9, 2020
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
2 changes: 1 addition & 1 deletion annofabapi/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.38.5"
__version__ = "0.38.8"
50 changes: 13 additions & 37 deletions annofabapi/dataclass/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ class Point:
@dataclass_json
@dataclass
class FullAnnotationDataClassification:
"""

"""
""""""

type: str
"""Classification"""
Expand All @@ -71,9 +69,7 @@ class FullAnnotationDataSegmentation:
@dataclass_json
@dataclass
class FullAnnotationDataSegmentationV2:
"""

"""
""""""

data_uri: str
""""""
Expand Down Expand Up @@ -103,7 +99,7 @@ class FullAnnotationDataBoundingBox:
@dataclass
class FullAnnotationDataPoints:
"""
頂点座標 {\"x\":int, \"y\":int} の配列。 * annotation_type が polygon/polyline の場合: ポリゴン/ポリラインを構成する頂点の配列。
頂点座標 {\"x\":int, \"y\":int} の配列。 * annotation_type が polygon/polyline の場合: ポリゴン/ポリラインを構成する頂点の配列。
"""

points: List[Point]
Expand Down Expand Up @@ -147,9 +143,7 @@ class FullAnnotationDataRange:
@dataclass_json
@dataclass
class AdditionalData:
"""

"""
""""""

additional_data_definition_id: str
""""""
Expand All @@ -170,9 +164,7 @@ class AdditionalData:
@dataclass_json
@dataclass
class FullAnnotationAdditionalData:
"""

"""
""""""

additional_data_definition_id: Optional[str]
""""""
Expand All @@ -190,9 +182,7 @@ class FullAnnotationAdditionalData:
@dataclass_json
@dataclass
class FullAnnotationDetail:
"""

"""
""""""

annotation_id: Optional[str]
"""アノテーションID。[値の制約についてはこちら。](#section/API-Convention/APIID)<br> annotation_type が classification の場合は label_id と同じ値が格納されます。 """
Expand Down Expand Up @@ -222,9 +212,7 @@ class FullAnnotationDetail:
@dataclass_json
@dataclass
class FullAnnotation:
"""

"""
""""""

project_id: Optional[str]
"""プロジェクトID。[値の制約についてはこちら。](#section/API-Convention/APIID) """
Expand Down Expand Up @@ -260,9 +248,7 @@ class FullAnnotation:
@dataclass_json
@dataclass
class SimpleAnnotationDetail:
"""

"""
""""""

label: str
"""アノテーション仕様のラベル名です。 """
Expand All @@ -280,9 +266,7 @@ class SimpleAnnotationDetail:
@dataclass_json
@dataclass
class SimpleAnnotation:
"""

"""
""""""

annotation_format_version: str
"""アノテーションフォーマットのバージョンです。 アノテーションフォーマットとは、プロジェクト個別のアノテーション仕様ではなく、AnnoFabのアノテーション構造のことです。 したがって、アノテーション仕様を更新しても、このバージョンは変化しません。 バージョンの読み方と更新ルールは、業界慣習の[Semantic Versioning](https://semver.org/)にもとづきます。 JSONに出力されるアノテーションフォーマットのバージョンは、アノテーションZIPが作成される時点のものが使われます。 すなわち、`1.0.0`の時点のタスクで作成したアノテーションであっても、フォーマットが `1.0.1` に上がった次のZIP作成時では `1.0.1` となります。 バージョンを固定してZIPを残しておきたい場合は、プロジェクトが完了した時点でZIPをダウンロードして保管しておくか、またはプロジェクトを「停止中」にします。 """
Expand Down Expand Up @@ -318,9 +302,7 @@ class SimpleAnnotation:
@dataclass_json
@dataclass
class SingleAnnotationDetail:
"""

"""
""""""

annotation_id: str
"""アノテーションID。[値の制約についてはこちら。](#section/API-Convention/APIID)<br> annotation_type が classification の場合は label_id と同じ値が格納されます。 """
Expand Down Expand Up @@ -356,9 +338,7 @@ class SingleAnnotationDetail:
@dataclass_json
@dataclass
class SingleAnnotation:
"""

"""
""""""

project_id: str
"""プロジェクトID。[値の制約についてはこちら。](#section/API-Convention/APIID) """
Expand All @@ -379,9 +359,7 @@ class SingleAnnotation:
@dataclass_json
@dataclass
class AnnotationDetail:
"""

"""
""""""

annotation_id: str
"""アノテーションID。[値の制約についてはこちら。](#section/API-Convention/APIID)<br> annotation_type が classification の場合は label_id と同じ値が格納されます。 """
Expand Down Expand Up @@ -423,9 +401,7 @@ class AnnotationDetail:
@dataclass_json
@dataclass
class Annotation:
"""

"""
""""""

project_id: str
"""プロジェクトID。[値の制約についてはこちら。](#section/API-Convention/APIID) """
Expand Down
70 changes: 18 additions & 52 deletions annofabapi/dataclass/annotation_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
@dataclass_json
@dataclass
class Keybind:
"""

"""
""""""

code: Optional[str]
""""""
Expand All @@ -48,7 +46,7 @@ class Keybind:
@dataclass
class PositionForMinimumBoundingBoxInsertion:
"""
`annotation_type` が `bounding_box` かつ `min_warn_rule` が `and` または `or` の場合のみ、挿入する最小矩形アノテーションの原点を指定できます。 画像左上の座標が「x=0, y=0」です。 未指定、もしくは「画像外に飛び出たアノテーション」を許可していないにも関わらず飛び出してしまう場合は、表示範囲の中央に挿入されます。 「スキャンした帳票の記入欄」や「定点カメラで撮影した製品ラベル」など、アノテーションしたい位置やサイズが多くの画像で共通している場合に便利です。 `annotation_type` が `bounding_box` 以外の場合は必ず未指定となります。
`annotation_type` が `bounding_box` かつ `min_warn_rule` が `and` または `or` の場合のみ、挿入する最小矩形アノテーションの原点を指定できます。 画像左上の座標が「x=0, y=0」です。 未指定、もしくは「画像外に飛び出たアノテーション」を許可していないにも関わらず飛び出してしまう場合は、表示範囲の中央に挿入されます。 「スキャンした帳票の記入欄」や「定点カメラで撮影した製品ラベル」など、アノテーションしたい位置やサイズが多くの画像で共通している場合に便利です。 `annotation_type` が `bounding_box` 以外の場合は必ず未指定となります。
"""

x: int
Expand All @@ -61,9 +59,7 @@ class PositionForMinimumBoundingBoxInsertion:
@dataclass_json
@dataclass
class LabelV1BoundingBoxMetadata:
"""

"""
""""""

min_width: Optional[int]
""""""
Expand Down Expand Up @@ -93,9 +89,7 @@ class LabelV1BoundingBoxMetadata:
@dataclass_json
@dataclass
class LabelV1SegmentationMetadata:
"""

"""
""""""

min_width: Optional[int]
""""""
Expand All @@ -113,9 +107,7 @@ class LabelV1SegmentationMetadata:
@dataclass_json
@dataclass
class InternationalizationMessageMessages:
"""

"""
""""""

lang: Optional[str]
""""""
Expand All @@ -127,9 +119,7 @@ class InternationalizationMessageMessages:
@dataclass_json
@dataclass
class InternationalizationMessage:
"""

"""
""""""

messages: Optional[List[InternationalizationMessageMessages]]
""""""
Expand All @@ -141,9 +131,7 @@ class InternationalizationMessage:
@dataclass_json
@dataclass
class InspectionPhrase:
"""

"""
""""""

id: Optional[str]
""""""
Expand All @@ -155,9 +143,7 @@ class InspectionPhrase:
@dataclass_json
@dataclass
class AnnotationSpecsHistory:
"""

"""
""""""

history_id: Optional[str]
""""""
Expand All @@ -181,9 +167,7 @@ class AnnotationSpecsHistory:
@dataclass_json
@dataclass
class Color:
"""

"""
""""""

red: Optional[int]
""""""
Expand All @@ -198,9 +182,7 @@ class Color:
@dataclass_json
@dataclass
class AdditionalDataDefinitionV1Choices:
"""

"""
""""""

choice_id: Optional[str]
""""""
Expand All @@ -215,9 +197,7 @@ class AdditionalDataDefinitionV1Choices:
@dataclass_json
@dataclass
class AdditionalDataDefinitionV1:
"""

"""
""""""

additional_data_definition_id: Optional[str]
""""""
Expand Down Expand Up @@ -256,9 +236,7 @@ class AdditionalDataDefinitionV1:
@dataclass_json
@dataclass
class AdditionalDataDefinitionV2:
"""

"""
""""""

additional_data_definition_id: Optional[str]
""""""
Expand Down Expand Up @@ -288,9 +266,7 @@ class AdditionalDataDefinitionV2:
@dataclass_json
@dataclass
class AnnotationEditorFeature:
"""

"""
""""""

append: Optional[bool]
""""""
Expand All @@ -314,9 +290,7 @@ class AnnotationEditorFeature:
@dataclass_json
@dataclass
class LabelV1:
"""

"""
""""""

label_id: Optional[str]
""""""
Expand Down Expand Up @@ -355,9 +329,7 @@ class LabelV1:
@dataclass_json
@dataclass
class LabelV2:
"""

"""
""""""

label_id: Optional[str]
""""""
Expand Down Expand Up @@ -396,9 +368,7 @@ class LabelV2:
@dataclass_json
@dataclass
class AdditionalDataRestriction:
"""

"""
""""""

additional_data_definition_id: Optional[str]
""""""
Expand All @@ -410,9 +380,7 @@ class AdditionalDataRestriction:
@dataclass_json
@dataclass
class AnnotationSpecsV1:
"""

"""
""""""

project_id: Optional[str]
"""プロジェクトID。[値の制約についてはこちら。](#section/API-Convention/APIID) """
Expand All @@ -436,9 +404,7 @@ class AnnotationSpecsV1:
@dataclass_json
@dataclass
class AnnotationSpecsV2:
"""

"""
""""""

project_id: Optional[str]
"""プロジェクトID。[値の制約についてはこちら。](#section/API-Convention/APIID) """
Expand Down
4 changes: 1 addition & 3 deletions annofabapi/dataclass/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
@dataclass_json
@dataclass
class Resolution:
"""

"""
""""""

width: float
""""""
Expand Down
12 changes: 3 additions & 9 deletions annofabapi/dataclass/instruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
@dataclass_json
@dataclass
class Instruction:
"""

"""
""""""

html: Optional[str]
"""作業ガイドのHTML"""
Expand All @@ -33,9 +31,7 @@ class Instruction:
@dataclass_json
@dataclass
class InstructionHistory:
"""

"""
""""""

history_id: str
"""作業ガイドの履歴ID"""
Expand All @@ -50,9 +46,7 @@ class InstructionHistory:
@dataclass_json
@dataclass
class InstructionImage:
"""

"""
""""""

image_id: str
"""作業ガイド画像ID"""
Expand Down
4 changes: 1 addition & 3 deletions annofabapi/dataclass/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
@dataclass_json
@dataclass
class JobInfo:
"""

"""
""""""

project_id: Optional[str]
"""プロジェクトID。[値の制約についてはこちら。](#section/API-Convention/APIID) """
Expand Down
Loading