Class: Xberg::PaddleOcrConfig

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePaddleOcrConfig

Returns a new instance of PaddleOcrConfig.

Parameters:

  • language: (String)
  • cache_dir: (String)
  • use_angle_cls: (Boolean)
  • enable_table_detection: (Boolean)
  • det_db_thresh: (Float)
  • det_db_box_thresh: (Float)
  • det_db_unclip_ratio: (Float)
  • det_limit_side_len: (Integer)
  • rec_batch_num: (Integer)
  • padding: (Integer)
  • drop_score: (Float)
  • model_tier: (String)
  • model_version: (String)


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

def initialize: (?language: String, ?cache_dir: String, ?use_angle_cls: bool, ?enable_table_detection: bool, ?det_db_thresh: Float, ?det_db_box_thresh: Float, ?det_db_unclip_ratio: Float, ?det_limit_side_len: Integer, ?rec_batch_num: Integer, ?padding: Integer, ?drop_score: Float, ?model_tier: String, ?model_version: String) -> void

Instance Attribute Details

#cache_dirString?

Returns the value of attribute cache_dir.

Returns:

  • (String, nil)


2091
2092
2093
# File 'sig/types.rbs', line 2091

def cache_dir
  @cache_dir
end

#det_db_box_threshFloat?

Returns the value of attribute det_db_box_thresh.

Returns:

  • (Float, nil)


2095
2096
2097
# File 'sig/types.rbs', line 2095

def det_db_box_thresh
  @det_db_box_thresh
end

#det_db_threshFloat?

Returns the value of attribute det_db_thresh.

Returns:

  • (Float, nil)


2094
2095
2096
# File 'sig/types.rbs', line 2094

def det_db_thresh
  @det_db_thresh
end

#det_db_unclip_ratioFloat?

Returns the value of attribute det_db_unclip_ratio.

Returns:

  • (Float, nil)


2096
2097
2098
# File 'sig/types.rbs', line 2096

def det_db_unclip_ratio
  @det_db_unclip_ratio
end

#det_limit_side_lenInteger?

Returns the value of attribute det_limit_side_len.

Returns:

  • (Integer, nil)


2097
2098
2099
# File 'sig/types.rbs', line 2097

def det_limit_side_len
  @det_limit_side_len
end

#drop_scoreFloat?

Returns the value of attribute drop_score.

Returns:

  • (Float, nil)


2100
2101
2102
# File 'sig/types.rbs', line 2100

def drop_score
  @drop_score
end

#enable_table_detectionBoolean?

Returns the value of attribute enable_table_detection.

Returns:

  • (Boolean, nil)


2093
2094
2095
# File 'sig/types.rbs', line 2093

def enable_table_detection
  @enable_table_detection
end

#languageString?

Returns the value of attribute language.

Returns:

  • (String, nil)


2090
2091
2092
# File 'sig/types.rbs', line 2090

def language
  @language
end

#model_tierString?

Returns the value of attribute model_tier.

Returns:

  • (String, nil)


2101
2102
2103
# File 'sig/types.rbs', line 2101

def model_tier
  @model_tier
end

#model_versionString?

Returns the value of attribute model_version.

Returns:

  • (String, nil)


2102
2103
2104
# File 'sig/types.rbs', line 2102

def model_version
  @model_version
end

#paddingInteger?

Returns the value of attribute padding.

Returns:

  • (Integer, nil)


2099
2100
2101
# File 'sig/types.rbs', line 2099

def padding
  @padding
end

#rec_batch_numInteger?

Returns the value of attribute rec_batch_num.

Returns:

  • (Integer, nil)


2098
2099
2100
# File 'sig/types.rbs', line 2098

def rec_batch_num
  @rec_batch_num
end

#use_angle_clsBoolean?

Returns the value of attribute use_angle_cls.

Returns:

  • (Boolean, nil)


2092
2093
2094
# File 'sig/types.rbs', line 2092

def use_angle_cls
  @use_angle_cls
end

Class Method Details

.defaultPaddleOcrConfig

Returns:



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

def self.default: () -> PaddleOcrConfig

Instance Method Details

#with_angle_clsPaddleOcrConfig

Parameters:

  • enable (Boolean)

Returns:



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

def with_angle_cls: (bool enable) -> PaddleOcrConfig

#with_cache_dirPaddleOcrConfig

Parameters:

  • path (String)

Returns:



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

def with_cache_dir: (String path) -> PaddleOcrConfig

#with_det_db_box_threshPaddleOcrConfig

Parameters:

  • threshold (Float)

Returns:



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

def with_det_db_box_thresh: (Float threshold) -> PaddleOcrConfig

#with_det_db_threshPaddleOcrConfig

Parameters:

  • threshold (Float)

Returns:



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

def with_det_db_thresh: (Float threshold) -> PaddleOcrConfig

#with_det_db_unclip_ratioPaddleOcrConfig

Parameters:

  • ratio (Float)

Returns:



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

def with_det_db_unclip_ratio: (Float ratio) -> PaddleOcrConfig

#with_det_limit_side_lenPaddleOcrConfig

Parameters:

  • length (Integer)

Returns:



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

def with_det_limit_side_len: (Integer length) -> PaddleOcrConfig

#with_drop_scorePaddleOcrConfig

Parameters:

  • score (Float)

Returns:



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

def with_drop_score: (Float score) -> PaddleOcrConfig

#with_model_tierPaddleOcrConfig

Parameters:

  • tier (String)

Returns:



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

def with_model_tier: (String tier) -> PaddleOcrConfig

#with_model_versionPaddleOcrConfig

Parameters:

  • version (String)

Returns:



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

def with_model_version: (String version) -> PaddleOcrConfig

#with_paddingPaddleOcrConfig

Parameters:

  • padding (Integer)

Returns:



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

def with_padding: (Integer padding) -> PaddleOcrConfig

#with_rec_batch_numPaddleOcrConfig

Parameters:

  • batch_size (Integer)

Returns:



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

def with_rec_batch_num: (Integer batch_size) -> PaddleOcrConfig

#with_table_detectionPaddleOcrConfig

Parameters:

  • enable (Boolean)

Returns:



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

def with_table_detection: (bool enable) -> PaddleOcrConfig