Class: Xberg::ExtractedImage

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeExtractedImage

Returns a new instance of ExtractedImage.

Parameters:

  • data: (String)
  • format: (String)
  • image_index: (Integer)
  • page_number: (Integer)
  • width: (Integer)
  • height: (Integer)
  • colorspace: (String)
  • bits_per_component: (Integer)
  • is_mask: (Boolean)
  • description: (String)
  • ocr_result: (ExtractedDocument)
  • bounding_box: (BoundingBox)
  • source_path: (String)
  • image_kind: (ImageKind)
  • kind_confidence: (Float)
  • cluster_id: (Integer)
  • caption: (String)
  • qr_codes: (Array[QrCode])
  • data_base64: (String)


1048
# File 'sig/types.rbs', line 1048

def initialize: (?data: String, ?format: String, ?image_index: Integer, ?page_number: Integer, ?width: Integer, ?height: Integer, ?colorspace: String, ?bits_per_component: Integer, ?is_mask: bool, ?description: String, ?ocr_result: ExtractedDocument, ?bounding_box: BoundingBox, ?source_path: String, ?image_kind: ImageKind, ?kind_confidence: Float, ?cluster_id: Integer, ?caption: String, ?qr_codes: Array[QrCode], ?data_base64: String) -> void

Instance Attribute Details

#bits_per_componentInteger?

Returns the value of attribute bits_per_component.

Returns:

  • (Integer, nil)


1035
1036
1037
# File 'sig/types.rbs', line 1035

def bits_per_component
  @bits_per_component
end

#bounding_boxBoundingBox?

Returns the value of attribute bounding_box.

Returns:



1039
1040
1041
# File 'sig/types.rbs', line 1039

def bounding_box
  @bounding_box
end

#captionString?

Returns the value of attribute caption.

Returns:

  • (String, nil)


1044
1045
1046
# File 'sig/types.rbs', line 1044

def caption
  @caption
end

#cluster_idInteger?

Returns the value of attribute cluster_id.

Returns:

  • (Integer, nil)


1043
1044
1045
# File 'sig/types.rbs', line 1043

def cluster_id
  @cluster_id
end

#colorspaceString?

Returns the value of attribute colorspace.

Returns:

  • (String, nil)


1034
1035
1036
# File 'sig/types.rbs', line 1034

def colorspace
  @colorspace
end

#dataString?

Returns the value of attribute data.

Returns:

  • (String, nil)


1028
1029
1030
# File 'sig/types.rbs', line 1028

def data
  @data
end

#data_base64String?

Returns the value of attribute data_base64.

Returns:

  • (String, nil)


1046
1047
1048
# File 'sig/types.rbs', line 1046

def data_base64
  @data_base64
end

#descriptionString?

Returns the value of attribute description.

Returns:

  • (String, nil)


1037
1038
1039
# File 'sig/types.rbs', line 1037

def description
  @description
end

#formatString?

Returns the value of attribute format.

Returns:

  • (String, nil)


1029
1030
1031
# File 'sig/types.rbs', line 1029

def format
  @format
end

#heightInteger?

Returns the value of attribute height.

Returns:

  • (Integer, nil)


1033
1034
1035
# File 'sig/types.rbs', line 1033

def height
  @height
end

#image_indexInteger?

Returns the value of attribute image_index.

Returns:

  • (Integer, nil)


1030
1031
1032
# File 'sig/types.rbs', line 1030

def image_index
  @image_index
end

#image_kindImageKind?

Returns the value of attribute image_kind.

Returns:



1041
1042
1043
# File 'sig/types.rbs', line 1041

def image_kind
  @image_kind
end

#is_maskBoolean?

Returns the value of attribute is_mask.

Returns:

  • (Boolean, nil)


1036
1037
1038
# File 'sig/types.rbs', line 1036

def is_mask
  @is_mask
end

#kind_confidenceFloat?

Returns the value of attribute kind_confidence.

Returns:

  • (Float, nil)


1042
1043
1044
# File 'sig/types.rbs', line 1042

def kind_confidence
  @kind_confidence
end

#ocr_resultExtractedDocument?

Returns the value of attribute ocr_result.

Returns:



1038
1039
1040
# File 'sig/types.rbs', line 1038

def ocr_result
  @ocr_result
end

#page_numberInteger?

Returns the value of attribute page_number.

Returns:

  • (Integer, nil)


1031
1032
1033
# File 'sig/types.rbs', line 1031

def page_number
  @page_number
end

#qr_codesArray[QrCode]?

Returns the value of attribute qr_codes.

Returns:



1045
1046
1047
# File 'sig/types.rbs', line 1045

def qr_codes
  @qr_codes
end

#source_pathString?

Returns the value of attribute source_path.

Returns:

  • (String, nil)


1040
1041
1042
# File 'sig/types.rbs', line 1040

def source_path
  @source_path
end

#widthInteger?

Returns the value of attribute width.

Returns:

  • (Integer, nil)


1032
1033
1034
# File 'sig/types.rbs', line 1032

def width
  @width
end