Tesseract.tess_set_param — Functiontess_set_param(
inst::TessInst,
name::AbstractString,
value::Integer
)::BoolSets an integer variable in th Tesseract engine. Returns false if the parameter was not found.
Arguments:
| T | Name | Default | Description |
|---|---|---|---|
| R | inst | The instance to set the variable in | |
| R | name | The name of the variable to set. | |
| R | value | The value to set. |
Examples:
julia> using Tesseract
julia> download_languages()
true
julia> instance = TessInst()
Allocated Tesseract instance.
julia> tess_set_param(instance, "edges_min_nonhole", 12)
trueSee also: tess_params, tess_params_parsed, tess_get_param
tess_set_param(
inst::TessInst,
name::AbstractString,
value::Bool
)::BoolSets a boolean variable in th Tesseract engine. Returns false if the parameter was not found.
Arguments:
| T | Name | Default | Description |
|---|---|---|---|
| R | inst | The instance to set the variable in | |
| R | name | The name of the variable to set. | |
| R | value | The value to set. |
Examples:
julia> using Tesseract
julia> download_languages()
true
julia> instance = TessInst()
Allocated Tesseract instance.
julia> tess_set_param(instance, "edges_debug", false)
trueSee also: tess_params, tess_params_parsed, tess_get_param
tess_set_param(
inst::TessInst,
name::AbstractString,
value::Float64
)::BoolSets a Float64 variable in th Tesseract engine. Returns false if the parameter was not found.
Arguments:
| T | Name | Default | Description |
|---|---|---|---|
| R | inst | The instance to set the variable in | |
| R | name | The name of the variable to set. | |
| R | value | The value to set. |
Examples:
julia> using Tesseract
julia> download_languages()
true
julia> instance = TessInst()
Allocated Tesseract instance.
julia> tess_set_param(instance, "classify_min_slope", 0.414214)
trueSee also: tess_params, tess_params_parsed, tess_get_param
tess_set_param(
inst::TessInst,
name::AbstractString,
value::AbstractString
)::BoolSets a string variable in th Tesseract engine. Returns false if the parameter was not found.
Arguments:
| T | Name | Default | Description |
|---|---|---|---|
| R | inst | The instance to set the variable in | |
| R | name | The name of the variable to set. | |
| R | value | The value to set. |
Examples:
julia> using Tesseract
julia> download_languages()
true
julia> instance = TessInst()
Allocated Tesseract instance.
julia> tess_set_param(instance, "page_separator", "\f")
trueSee also: tess_params, tess_params_parsed, tess_get_param