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)


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

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)


996
997
998
# File 'sig/types.rbs', line 996

def bits_per_component
  @bits_per_component
end

#bounding_boxBoundingBox?

Returns the value of attribute bounding_box.

Returns:



1000
1001
1002
# File 'sig/types.rbs', line 1000

def bounding_box
  @bounding_box
end

#captionString?

Returns the value of attribute caption.

Returns:

  • (String, nil)


1005
1006
1007
# File 'sig/types.rbs', line 1005

def caption
  @caption
end

#cluster_idInteger?

Returns the value of attribute cluster_id.

Returns:

  • (Integer, nil)


1004
1005
1006
# File 'sig/types.rbs', line 1004

def cluster_id
  @cluster_id
end

#colorspaceString?

Returns the value of attribute colorspace.

Returns:

  • (String, nil)


995
996
997
# File 'sig/types.rbs', line 995

def colorspace
  @colorspace
end

#dataString?

Returns the value of attribute data.

Returns:

  • (String, nil)


989
990
991
# File 'sig/types.rbs', line 989

def data
  @data
end

#data_base64String?

Returns the value of attribute data_base64.

Returns:

  • (String, nil)


1007
1008
1009
# File 'sig/types.rbs', line 1007

def data_base64
  @data_base64
end

#descriptionString?

Returns the value of attribute description.

Returns:

  • (String, nil)


998
999
1000
# File 'sig/types.rbs', line 998

def description
  @description
end

#formatString?

Returns the value of attribute format.

Returns:

  • (String, nil)


990
991
992
# File 'sig/types.rbs', line 990

def format
  @format
end

#heightInteger?

Returns the value of attribute height.

Returns:

  • (Integer, nil)


994
995
996
# File 'sig/types.rbs', line 994

def height
  @height
end

#image_indexInteger?

Returns the value of attribute image_index.

Returns:

  • (Integer, nil)


991
992
993
# File 'sig/types.rbs', line 991

def image_index
  @image_index
end

#image_kindImageKind?

Returns the value of attribute image_kind.

Returns:



1002
1003
1004
# File 'sig/types.rbs', line 1002

def image_kind
  @image_kind
end

#is_maskBoolean?

Returns the value of attribute is_mask.

Returns:

  • (Boolean, nil)


997
998
999
# File 'sig/types.rbs', line 997

def is_mask
  @is_mask
end

#kind_confidenceFloat?

Returns the value of attribute kind_confidence.

Returns:

  • (Float, nil)


1003
1004
1005
# File 'sig/types.rbs', line 1003

def kind_confidence
  @kind_confidence
end

#ocr_resultExtractedDocument?

Returns the value of attribute ocr_result.

Returns:



999
1000
1001
# File 'sig/types.rbs', line 999

def ocr_result
  @ocr_result
end

#page_numberInteger?

Returns the value of attribute page_number.

Returns:

  • (Integer, nil)


992
993
994
# File 'sig/types.rbs', line 992

def page_number
  @page_number
end

#qr_codesArray[QrCode]?

Returns the value of attribute qr_codes.

Returns:



1006
1007
1008
# File 'sig/types.rbs', line 1006

def qr_codes
  @qr_codes
end

#source_pathString?

Returns the value of attribute source_path.

Returns:

  • (String, nil)


1001
1002
1003
# File 'sig/types.rbs', line 1001

def source_path
  @source_path
end

#widthInteger?

Returns the value of attribute width.

Returns:

  • (Integer, nil)


993
994
995
# File 'sig/types.rbs', line 993

def width
  @width
end