Class: Xberg::ImagePreprocessingConfig

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

Instance Attribute Summary collapse

Class Method 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)


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

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?

Returns the value of attribute auto_rotate.

Returns:

  • (Boolean, nil)


1165
1166
1167
# File 'sig/types.rbs', line 1165

def auto_rotate
  @auto_rotate
end

#binarization_methodString?

Returns the value of attribute binarization_method.

Returns:

  • (String, nil)


1169
1170
1171
# File 'sig/types.rbs', line 1169

def binarization_method
  @binarization_method
end

#contrast_enhanceBoolean?

Returns the value of attribute contrast_enhance.

Returns:

  • (Boolean, nil)


1168
1169
1170
# File 'sig/types.rbs', line 1168

def contrast_enhance
  @contrast_enhance
end

#denoiseBoolean?

Returns the value of attribute denoise.

Returns:

  • (Boolean, nil)


1167
1168
1169
# File 'sig/types.rbs', line 1167

def denoise
  @denoise
end

#deskewBoolean?

Returns the value of attribute deskew.

Returns:

  • (Boolean, nil)


1166
1167
1168
# File 'sig/types.rbs', line 1166

def deskew
  @deskew
end

#invert_colorsBoolean?

Returns the value of attribute invert_colors.

Returns:

  • (Boolean, nil)


1170
1171
1172
# File 'sig/types.rbs', line 1170

def invert_colors
  @invert_colors
end

#target_dpiInteger?

Returns the value of attribute target_dpi.

Returns:

  • (Integer, nil)


1164
1165
1166
# File 'sig/types.rbs', line 1164

def target_dpi
  @target_dpi
end

Class Method Details

.defaultImagePreprocessingConfig



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

def self.default: () -> ImagePreprocessingConfig