ImageMetadata

class oci.data_labeling_service_dataplane.models.ImageMetadata(**kwargs)

Bases: oci.data_labeling_service_dataplane.models.record_metadata.RecordMetadata

Collection of metadata related to image record.

Attributes

RECORD_TYPE_DOCUMENT_METADATA str(object=’’) -> str
RECORD_TYPE_IMAGE_METADATA str(object=’’) -> str
RECORD_TYPE_TEXT_METADATA str(object=’’) -> str
depth Gets the depth of this ImageMetadata.
height Gets the height of this ImageMetadata.
record_type Gets the record_type of this RecordMetadata.
width Gets the width of this ImageMetadata.

Methods

__init__(**kwargs) Initializes a new ImageMetadata object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
RECORD_TYPE_DOCUMENT_METADATA = 'DOCUMENT_METADATA'
RECORD_TYPE_IMAGE_METADATA = 'IMAGE_METADATA'
RECORD_TYPE_TEXT_METADATA = 'TEXT_METADATA'
__init__(**kwargs)

Initializes a new ImageMetadata object with values from keyword arguments. The default value of the record_type attribute of this class is IMAGE_METADATA and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • record_type (str) – The value to assign to the record_type property of this ImageMetadata. Allowed values for this property are: “IMAGE_METADATA”, “TEXT_METADATA”, “DOCUMENT_METADATA”
  • height (int) – The value to assign to the height property of this ImageMetadata.
  • width (int) – The value to assign to the width property of this ImageMetadata.
  • depth (int) – The value to assign to the depth property of this ImageMetadata.
depth

Gets the depth of this ImageMetadata. Depth of the image record.

Returns:The depth of this ImageMetadata.
Return type:int
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

height

Gets the height of this ImageMetadata. Height of the image record.

Returns:The height of this ImageMetadata.
Return type:int
record_type

Gets the record_type of this RecordMetadata. The record type based on dataset format details. IMAGE_METADATA - Collection of metadata related to image record. TEXT_METADATA - Collection of metadata related to text record. DOCUMENT_METADATA - Collection of metadata related to document record.

Allowed values for this property are: “IMAGE_METADATA”, “TEXT_METADATA”, “DOCUMENT_METADATA”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The record_type of this RecordMetadata.
Return type:str
width

Gets the width of this ImageMetadata. Width of the image record.

Returns:The width of this ImageMetadata.
Return type:int