VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.Ocr.Tesseract Namespace / TesseractOcr Class / SetVariable Methods / SetVariable(String,Boolean) Method
Syntax Exceptions Remarks Requirements SeeAlso
In This Topic
    SetVariable(String,Boolean) Method (TesseractOcr)
    In This Topic
    Sets a value of boolean variable of Tesseract OCR engine.
    Syntax
    'Declaration
    
    Public Overloads Function SetVariable( _
    ByVal name
    Name of the variable.
    As System.String, _
    ByVal value
    Value of the variable.
    As Boolean _
    ) As Boolean
    public bool SetVariable(
    System.String name,
    bool value
    )
    public: bool SetVariable(
    System.String name,
    bool value
    )
    public:
    bool SetVariable(
    System.String name,
    bool value
    )

    Parameters

    name
    Name of the variable.
    value
    Value of the variable.

    Return Value

    True if value of variable is successfully set; otherwise, false.
    Exceptions
    ExceptionDescription
    Thrown if OCR engine is not initialized yet.
    Remarks

    Method Init(OcrEngineSettings) must be executed before executing of this method.

    Requirements

    Target Platforms: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also