Skip to main content

IssueFrameRange Objects

class IssueFrameRange(BaseDTO)
Represents a range of frames [start, end] inclusive

FrameRangeIssue Objects

class FrameRangeIssue(_BaseIssue)
Issue anchored to a range of frames

AnnotationIssue Objects

class AnnotationIssue(_BaseIssue)
Issue anchored to a specific annotation (label rejection or annotation feedback)

TaskIssues Objects

class TaskIssues()

list

def list() -> Iterable[Issue]
Lists all issues (comment threads) for this task. Returns an iterator of issues anchored to different parts of the data unit:
  • FileIssue: Issues anchored to the entire data unit
  • FrameIssue: Issues anchored to a specific frame
  • CoordinateIssue: Issues anchored to specific coordinates on a frame
  • FrameRangeIssue: Issues anchored to a range of frames
  • AnnotationIssue: Issues anchored to a specific annotation
Each issue includes comments, tags, and resolution history. Returns:
  • Iterable[Issue] - An iterator of Issue objects (discriminated union of all issue types).
Example:
for issue in task.issues.list(): … if isinstance(issue, FileIssue): … print(f”File issue: ”) … elif isinstance(issue, FrameIssue): … print(f”Frame : “)

add_file_issue

def add_file_issue(comment: str, issue_tags: List[str]) -> None
Adds a file issue. Arguments:
  • comment str - The comment for the issue.
  • issue_tags List[str] - The issue tags for the issue.

add_frame_issue

def add_frame_issue(frame_index: int, comment: str,
                    issue_tags: List[str]) -> None
Adds a frame issue. Arguments:
  • frame_index int - The index of the frame to add the issue to.
  • comment str - The comment for the issue.
  • issue_tags List[str] - The issue tags for the issue.

add_coordinate_issue

def add_coordinate_issue(frame_index: int, x: float, y: float, comment: str,
                         issue_tags: List[str]) -> None
Adds a issue pinned to a coordinate. Arguments:
  • frame_index int - The index of the frame to add the issue to.
  • x float - The x coordinate of the issue.
  • y float - The y coordinate of the issue.
  • comment str - The comment for the issue.
  • issue_tags List[str] - The issue tags for the issue.