Class: Xberg::PaddleOcrConfig
- Inherits:
-
Object
- Object
- Xberg::PaddleOcrConfig
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#cache_dir ⇒ String?
readonly
Returns the value of attribute cache_dir.
-
#det_db_box_thresh ⇒ Float
readonly
Returns the value of attribute det_db_box_thresh.
-
#det_db_thresh ⇒ Float
readonly
Returns the value of attribute det_db_thresh.
-
#det_db_unclip_ratio ⇒ Float
readonly
Returns the value of attribute det_db_unclip_ratio.
-
#det_limit_side_len ⇒ Integer
readonly
Returns the value of attribute det_limit_side_len.
-
#drop_score ⇒ Float
readonly
Returns the value of attribute drop_score.
-
#enable_table_detection ⇒ Boolean
readonly
Returns the value of attribute enable_table_detection.
-
#inference_backend ⇒ enum_PaddleInferenceBackend?
readonly
Returns the value of attribute inference_backend.
-
#language ⇒ String
readonly
Returns the value of attribute language.
-
#model_tier ⇒ String
readonly
Returns the value of attribute model_tier.
-
#model_version ⇒ String
readonly
Returns the value of attribute model_version.
-
#padding ⇒ Integer
readonly
Returns the value of attribute padding.
-
#rec_batch_num ⇒ Integer
readonly
Returns the value of attribute rec_batch_num.
-
#use_angle_cls ⇒ Boolean
readonly
Returns the value of attribute use_angle_cls.
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.
1843 |
# File 'sig/types.rbs', line 1843
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, ?inference_backend: enum_PaddleInferenceBackend) -> void
|
Instance Attribute Details
#cache_dir ⇒ String? (readonly)
Returns the value of attribute cache_dir.
1829 1830 1831 |
# File 'sig/types.rbs', line 1829 def cache_dir @cache_dir end |
#det_db_box_thresh ⇒ Float (readonly)
Returns the value of attribute det_db_box_thresh.
1833 1834 1835 |
# File 'sig/types.rbs', line 1833 def det_db_box_thresh @det_db_box_thresh end |
#det_db_thresh ⇒ Float (readonly)
Returns the value of attribute det_db_thresh.
1832 1833 1834 |
# File 'sig/types.rbs', line 1832 def det_db_thresh @det_db_thresh end |
#det_db_unclip_ratio ⇒ Float (readonly)
Returns the value of attribute det_db_unclip_ratio.
1834 1835 1836 |
# File 'sig/types.rbs', line 1834 def det_db_unclip_ratio @det_db_unclip_ratio end |
#det_limit_side_len ⇒ Integer (readonly)
Returns the value of attribute det_limit_side_len.
1835 1836 1837 |
# File 'sig/types.rbs', line 1835 def det_limit_side_len @det_limit_side_len end |
#drop_score ⇒ Float (readonly)
Returns the value of attribute drop_score.
1838 1839 1840 |
# File 'sig/types.rbs', line 1838 def drop_score @drop_score end |
#enable_table_detection ⇒ Boolean (readonly)
Returns the value of attribute enable_table_detection.
1831 1832 1833 |
# File 'sig/types.rbs', line 1831 def enable_table_detection @enable_table_detection end |
#inference_backend ⇒ enum_PaddleInferenceBackend? (readonly)
Returns the value of attribute inference_backend.
1841 1842 1843 |
# File 'sig/types.rbs', line 1841 def inference_backend @inference_backend end |
#language ⇒ String (readonly)
Returns the value of attribute language.
1828 1829 1830 |
# File 'sig/types.rbs', line 1828 def language @language end |
#model_tier ⇒ String (readonly)
Returns the value of attribute model_tier.
1839 1840 1841 |
# File 'sig/types.rbs', line 1839 def model_tier @model_tier end |
#model_version ⇒ String (readonly)
Returns the value of attribute model_version.
1840 1841 1842 |
# File 'sig/types.rbs', line 1840 def model_version @model_version end |
#padding ⇒ Integer (readonly)
Returns the value of attribute padding.
1837 1838 1839 |
# File 'sig/types.rbs', line 1837 def padding @padding end |
#rec_batch_num ⇒ Integer (readonly)
Returns the value of attribute rec_batch_num.
1836 1837 1838 |
# File 'sig/types.rbs', line 1836 def rec_batch_num @rec_batch_num end |
#use_angle_cls ⇒ Boolean (readonly)
Returns the value of attribute use_angle_cls.
1830 1831 1832 |
# File 'sig/types.rbs', line 1830 def use_angle_cls @use_angle_cls end |
Instance Method Details
#with_angle_cls ⇒ PaddleOcrConfig
1846 |
# File 'sig/types.rbs', line 1846
def with_angle_cls: (bool enable) -> PaddleOcrConfig
|
#with_cache_dir ⇒ PaddleOcrConfig
1844 |
# File 'sig/types.rbs', line 1844
def with_cache_dir: (String path) -> PaddleOcrConfig
|
#with_det_db_box_thresh ⇒ PaddleOcrConfig
1848 |
# File 'sig/types.rbs', line 1848
def with_det_db_box_thresh: (Float threshold) -> PaddleOcrConfig
|
#with_det_db_thresh ⇒ PaddleOcrConfig
1847 |
# File 'sig/types.rbs', line 1847
def with_det_db_thresh: (Float threshold) -> PaddleOcrConfig
|
#with_det_db_unclip_ratio ⇒ PaddleOcrConfig
1849 |
# File 'sig/types.rbs', line 1849
def with_det_db_unclip_ratio: (Float ratio) -> PaddleOcrConfig
|
#with_det_limit_side_len ⇒ PaddleOcrConfig
1850 |
# File 'sig/types.rbs', line 1850
def with_det_limit_side_len: (Integer length) -> PaddleOcrConfig
|
#with_drop_score ⇒ PaddleOcrConfig
1852 |
# File 'sig/types.rbs', line 1852
def with_drop_score: (Float score) -> PaddleOcrConfig
|
#with_model_tier ⇒ PaddleOcrConfig
1854 |
# File 'sig/types.rbs', line 1854
def with_model_tier: (String tier) -> PaddleOcrConfig
|
#with_model_version ⇒ PaddleOcrConfig
1855 |
# File 'sig/types.rbs', line 1855
def with_model_version: (String version) -> PaddleOcrConfig
|
#with_padding ⇒ PaddleOcrConfig
1853 |
# File 'sig/types.rbs', line 1853
def with_padding: (Integer padding) -> PaddleOcrConfig
|
#with_rec_batch_num ⇒ PaddleOcrConfig
1851 |
# File 'sig/types.rbs', line 1851
def with_rec_batch_num: (Integer batch_size) -> PaddleOcrConfig
|
#with_table_detection ⇒ PaddleOcrConfig
1845 |
# File 'sig/types.rbs', line 1845
def with_table_detection: (bool enable) -> PaddleOcrConfig
|