Skip to main content

_HtmlObjectAnnotation Objects

class _HtmlObjectAnnotation(_ObjectAnnotation)
Annotations for HTML modality with XPath-based coordinates.

frame

@property
def frame() -> int
This field is deprecated. It is only here for backwards compatibility. It always returns 0.

coordinates

@property
def coordinates() -> HtmlCoordinates
Get the HTML coordinates for this annotation. Returns:
  • HtmlCoordinates - The XPath-based coordinates for this annotation.

coordinates

@coordinates.setter
def coordinates(coordinates: HtmlCoordinates) -> None
Set the HTML coordinates for this annotation. Arguments:
  • coordinates - The new HtmlCoordinates to set.

_HtmlClassificationAnnotation Objects

class _HtmlClassificationAnnotation(_ClassificationAnnotation)
Classification annotations for HTML modality.

frame

@property
def frame() -> int
This field is deprecated. It is only here for backwards compatibility. It always returns 0.