Class: Xberg::PaddleOcrConfig
- Inherits:
-
Object
- Object
- Xberg::PaddleOcrConfig
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#cache_dir ⇒ String?
Returns the value of attribute cache_dir.
-
#det_db_box_thresh ⇒ Float?
Returns the value of attribute det_db_box_thresh.
-
#det_db_thresh ⇒ Float?
Returns the value of attribute det_db_thresh.
-
#det_db_unclip_ratio ⇒ Float?
Returns the value of attribute det_db_unclip_ratio.
-
#det_limit_side_len ⇒ Integer?
Returns the value of attribute det_limit_side_len.
-
#drop_score ⇒ Float?
Returns the value of attribute drop_score.
-
#enable_table_detection ⇒ Boolean?
Returns the value of attribute enable_table_detection.
-
#language ⇒ String?
Returns the value of attribute language.
-
#model_tier ⇒ String?
Returns the value of attribute model_tier.
-
#model_version ⇒ String?
Returns the value of attribute model_version.
-
#padding ⇒ Integer?
Returns the value of attribute padding.
-
#rec_batch_num ⇒ Integer?
Returns the value of attribute rec_batch_num.
-
#use_angle_cls ⇒ Boolean?
Returns the value of attribute use_angle_cls.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ PaddleOcrConfig
constructor
A new instance of PaddleOcrConfig.
- #with_angle_cls ⇒ PaddleOcrConfig
- #with_cache_dir ⇒ PaddleOcrConfig
- #with_det_db_box_thresh ⇒ PaddleOcrConfig
- #with_det_db_thresh ⇒ PaddleOcrConfig
- #with_det_db_unclip_ratio ⇒ PaddleOcrConfig
- #with_det_limit_side_len ⇒ PaddleOcrConfig
- #with_drop_score ⇒ PaddleOcrConfig
- #with_model_tier ⇒ PaddleOcrConfig
- #with_model_version ⇒ PaddleOcrConfig
- #with_padding ⇒ PaddleOcrConfig
- #with_rec_batch_num ⇒ PaddleOcrConfig
- #with_table_detection ⇒ PaddleOcrConfig
Constructor Details
#initialize ⇒ PaddleOcrConfig
Returns a new instance of PaddleOcrConfig.
2114 |
# File 'sig/types.rbs', line 2114
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_dir ⇒ String?
Returns the value of attribute cache_dir.
2101 2102 2103 |
# File 'sig/types.rbs', line 2101 def cache_dir @cache_dir end |
#det_db_box_thresh ⇒ Float?
Returns the value of attribute det_db_box_thresh.
2105 2106 2107 |
# File 'sig/types.rbs', line 2105 def det_db_box_thresh @det_db_box_thresh end |
#det_db_thresh ⇒ Float?
Returns the value of attribute det_db_thresh.
2104 2105 2106 |
# File 'sig/types.rbs', line 2104 def det_db_thresh @det_db_thresh end |
#det_db_unclip_ratio ⇒ Float?
Returns the value of attribute det_db_unclip_ratio.
2106 2107 2108 |
# File 'sig/types.rbs', line 2106 def det_db_unclip_ratio @det_db_unclip_ratio end |
#det_limit_side_len ⇒ Integer?
Returns the value of attribute det_limit_side_len.
2107 2108 2109 |
# File 'sig/types.rbs', line 2107 def det_limit_side_len @det_limit_side_len end |
#drop_score ⇒ Float?
Returns the value of attribute drop_score.
2110 2111 2112 |
# File 'sig/types.rbs', line 2110 def drop_score @drop_score end |
#enable_table_detection ⇒ Boolean?
Returns the value of attribute enable_table_detection.
2103 2104 2105 |
# File 'sig/types.rbs', line 2103 def enable_table_detection @enable_table_detection end |
#language ⇒ String?
Returns the value of attribute language.
2100 2101 2102 |
# File 'sig/types.rbs', line 2100 def language @language end |
#model_tier ⇒ String?
Returns the value of attribute model_tier.
2111 2112 2113 |
# File 'sig/types.rbs', line 2111 def model_tier @model_tier end |
#model_version ⇒ String?
Returns the value of attribute model_version.
2112 2113 2114 |
# File 'sig/types.rbs', line 2112 def model_version @model_version end |
#padding ⇒ Integer?
Returns the value of attribute padding.
2109 2110 2111 |
# File 'sig/types.rbs', line 2109 def padding @padding end |
#rec_batch_num ⇒ Integer?
Returns the value of attribute rec_batch_num.
2108 2109 2110 |
# File 'sig/types.rbs', line 2108 def rec_batch_num @rec_batch_num end |
#use_angle_cls ⇒ Boolean?
Returns the value of attribute use_angle_cls.
2102 2103 2104 |
# File 'sig/types.rbs', line 2102 def use_angle_cls @use_angle_cls end |
Class Method Details
.default ⇒ PaddleOcrConfig
2127 |
# File 'sig/types.rbs', line 2127
def self.default: () -> PaddleOcrConfig
|
Instance Method Details
#with_angle_cls ⇒ PaddleOcrConfig
2117 |
# File 'sig/types.rbs', line 2117
def with_angle_cls: (bool enable) -> PaddleOcrConfig
|
#with_cache_dir ⇒ PaddleOcrConfig
2115 |
# File 'sig/types.rbs', line 2115
def with_cache_dir: (String path) -> PaddleOcrConfig
|
#with_det_db_box_thresh ⇒ PaddleOcrConfig
2119 |
# File 'sig/types.rbs', line 2119
def with_det_db_box_thresh: (Float threshold) -> PaddleOcrConfig
|
#with_det_db_thresh ⇒ PaddleOcrConfig
2118 |
# File 'sig/types.rbs', line 2118
def with_det_db_thresh: (Float threshold) -> PaddleOcrConfig
|
#with_det_db_unclip_ratio ⇒ PaddleOcrConfig
2120 |
# File 'sig/types.rbs', line 2120
def with_det_db_unclip_ratio: (Float ratio) -> PaddleOcrConfig
|
#with_det_limit_side_len ⇒ PaddleOcrConfig
2121 |
# File 'sig/types.rbs', line 2121
def with_det_limit_side_len: (Integer length) -> PaddleOcrConfig
|
#with_drop_score ⇒ PaddleOcrConfig
2123 |
# File 'sig/types.rbs', line 2123
def with_drop_score: (Float score) -> PaddleOcrConfig
|
#with_model_tier ⇒ PaddleOcrConfig
2125 |
# File 'sig/types.rbs', line 2125
def with_model_tier: (String tier) -> PaddleOcrConfig
|
#with_model_version ⇒ PaddleOcrConfig
2126 |
# File 'sig/types.rbs', line 2126
def with_model_version: (String version) -> PaddleOcrConfig
|
#with_padding ⇒ PaddleOcrConfig
2124 |
# File 'sig/types.rbs', line 2124
def with_padding: (Integer padding) -> PaddleOcrConfig
|
#with_rec_batch_num ⇒ PaddleOcrConfig
2122 |
# File 'sig/types.rbs', line 2122
def with_rec_batch_num: (Integer batch_size) -> PaddleOcrConfig
|
#with_table_detection ⇒ PaddleOcrConfig
2116 |
# File 'sig/types.rbs', line 2116
def with_table_detection: (bool enable) -> PaddleOcrConfig
|