Class: Xberg::ImagePreprocessingConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeImagePreprocessingConfig

Returns a new instance of ImagePreprocessingConfig.

Parameters:

  • target_dpi: (Integer)
  • auto_rotate: (Boolean)
  • deskew: (Boolean)
  • denoise: (Boolean)
  • contrast_enhance: (Boolean)
  • binarization_method: (String)
  • invert_colors: (Boolean)


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

def initialize: (?target_dpi: Integer, ?auto_rotate: bool, ?deskew: bool, ?denoise: bool, ?contrast_enhance: bool, ?binarization_method: String, ?invert_colors: bool) -> void

Instance Attribute Details

#auto_rotateBoolean (readonly)

Returns the value of attribute auto_rotate.

Returns:

  • (Boolean)


1312
1313
1314
# File 'sig/types.rbs', line 1312

def auto_rotate
  @auto_rotate
end

#binarization_methodString (readonly)

Returns the value of attribute binarization_method.

Returns:

  • (String)


1316
1317
1318
# File 'sig/types.rbs', line 1316

def binarization_method
  @binarization_method
end

#contrast_enhanceBoolean (readonly)

Returns the value of attribute contrast_enhance.

Returns:

  • (Boolean)


1315
1316
1317
# File 'sig/types.rbs', line 1315

def contrast_enhance
  @contrast_enhance
end

#denoiseBoolean (readonly)

Returns the value of attribute denoise.

Returns:

  • (Boolean)


1314
1315
1316
# File 'sig/types.rbs', line 1314

def denoise
  @denoise
end

#deskewBoolean (readonly)

Returns the value of attribute deskew.

Returns:

  • (Boolean)


1313
1314
1315
# File 'sig/types.rbs', line 1313

def deskew
  @deskew
end

#invert_colorsBoolean (readonly)

Returns the value of attribute invert_colors.

Returns:

  • (Boolean)


1317
1318
1319
# File 'sig/types.rbs', line 1317

def invert_colors
  @invert_colors
end

#target_dpiInteger (readonly)

Returns the value of attribute target_dpi.

Returns:

  • (Integer)


1311
1312
1313
# File 'sig/types.rbs', line 1311

def target_dpi
  @target_dpi
end