TestResults.io
  • What is TestResults.io
  • System Architecture
  • Regulated Markets
    • Health Care Industry
    • Financial Services Industry
  • What's new?
    • Update Instruction
      • Update of the Designer extension in Visual Studio
      • Update the Execution Engine
      • Update the Base- and Environment Models
    • Migration to new project file
  • Designer
    • Overview
    • First Steps
    • Installation
    • TestResults.io solution
    • The development environment
      • Tool Window Overview
        • Test Environments
          • Steps to configure a SUT VM
          • How to access files on the system under test
        • Remote Viewer
          • Control Mode
          • Capture Mode
          • Screen Editor
          • Capture Single Image
        • Screen Explorer
        • Test Case Designer
        • Image Explorer
        • API Testing
        • TestResults.io options
          • Engines
          • Servers
    • Test Cases
      • Adding Test Cases
      • Test Case structure
      • Simple Test Case (Example)
      • Executing your Test Case
      • Generating Test Containers
      • Publishing Test Cases
      • Execution Variables
    • Software Models
      • Adding SW Models
      • Referencing the Model in the Test Case
      • Generating Test Containers
      • Publishing SW Models
      • Screens and Screen Elements
        • Tables
        • Visual Sense
        • Custom Screen Elements
    • Installers
      • Adding Installers
      • Generating Test Containers
      • Publishing Installers
    • Automation Framework Reference
      • Attributes
      • Enumerations
      • Filters
        • IImageFilter Interface
        • Select
        • Resize
      • GlobalEngineParameters
      • ImageDetectionParameters
      • ImageReference
      • Interfaces
        • ITester Interface
          • ITester Methods
          • ITester Properties
        • ITestee Interface
          • ITestee Methods
        • IConnections Interface
          • IConnections Methods
          • IConnections Properties
        • IDebug Interface
        • IEngineResult
        • IHelpers Interface
        • IImageHelper Interface
          • IImageHelper Methods
        • IKeyboard Interface
          • IKeyboard Methods
        • IMouse Interface
          • IMouse Methods
          • IMouse Properties
        • IReport Interface
          • IReport Methods
        • ISUTConnection Interface
      • OcrEngineParameters
        • Best practise
        • IronOcrEngineParameters
        • LEADOcrEngineParameters
        • OcrEngineRelatedCharacters
        • OcrPreprocessingParameters
      • ResultRectangle
      • SutNotReadyException
      • TestStepAbortedException
    • FAQ
      • Two-factor authentication (2FA) and One Time Passwords (OTP)
      • Receive and verify Emails
      • Using Excel as test data source
      • Verify PDF Content
  • Portal
    • Overview
    • First Steps
    • User's Guide
      • Login
      • Projects
      • Dashboard
      • Test Cases
      • Software & Environments
      • Test Sets
      • Job Queue
      • Management
      • Notifications Summary
    • Automation Engineer's Guide
      • Test Automation Workflow
      • Automating a test case
      • Enabling Software & Environments
    • REST API Reference
      • Authentication
      • Projects
      • Test Sets
      • Test Cases
      • Test Plans
      • Test Reports
      • Files
      • Software
      • Environments
      • Untitled
      • Executions
      • Favorites
      • Statistics
      • User Management
      • Customer Management
      • Notifications
      • Configurations
      • Invoicing
  • Models
    • Overview
    • Base Model
      • BaseScreen
        • BaseScreen Properties
        • BaseScreen Methods
      • OnScreenElement
        • OnScreenElement Methods
        • OnScreenElement Properties
      • Primitives
        • Button
          • Button Methods
          • Button Properties
        • Checkbox
          • Checkbox Methods
        • ContextMenu
          • ContextMenu Methods
          • ContextMenu Properties
        • Dropdown
          • Dropdown Methods
          • Dropdown Properties
        • DropdownMenu
          • DropdownMenu Methods
          • DropdownMenu Properties
        • GenericScroller
          • GenericScroller Methods
          • GenericScroller Properties
        • HorizontalScroller
        • IconButton
          • IconButton Properties
        • Label
        • LabelWithButton
          • LabelWithButton Properties
        • LabelWithCheckbox
          • LabelWithCheckbox Properties
        • LabelWithValue
          • LabelWithValue Methods
          • LabelWithValue Properties
        • PwTextBox
          • PwTextBox Methods
        • TextBox
          • TextBox Methods
          • TextBox Properties
        • Tables and lists
          • Column
            • Column Methods
            • Column Properties
          • ItemList
            • ItemList Methods
            • ItemList Properties
          • Row
            • Row Methods
            • Row Properties
          • TableBase
            • TableBase Methods
            • TableBase Properties
        • LabelWithElementBase
          • LabelWithElementBase Properties
      • Enumerations
      • Extensions
        • EngineResultExtensions Methods
        • EnumExtensions Methods
        • ReportExtensions Methods
        • StringExtensions Methods
        • TesterConnectionExtensions Methods
        • TesterDebugExtensions Methods
        • TesterHelperExtensions Methods
        • TesterMouseExtensions Methods
        • TesterOnScreenElementExtensions
        • TesterSelectExtensions Methods
      • Helper Classes
        • BaseModelHelpers
          • BaseModelHelpers Methods
          • BaseModelHelpers Properties
        • Attributes for Designer
        • ListHelpers
      • Exceptions
        • ElementNotFoundException
        • InteractionFailedException
        • ScreenNotFoundException
      • Interfaces
        • IAppBasics Interface
          • IAppBasics Methods
          • IAppBasics Properties
        • IBrowser
        • ICommandLineWindow
        • IScroller Interface
          • IScroller Methods
          • IScroller Properties
        • ISutLocale Interface
          • ISutLocale Methods
          • ISutLocale Properties
        • ISystemHelpers
        • ISystemInteractions
        • IWindow
    • Environment Model
      • Windows
        • Screens
          • CmdWindow
            • CmdWindow Methods
            • CmdWindow Properties
          • FileDialog
            • FileDialog Methods
            • FileDialog Properties
          • FileExplorer
            • FileExplorer Properties
          • RunWindow
            • RunWindow Methods
            • RunWindow Properties
          • Window
            • Window Methods
            • Window Properties
        • SutLocale
          • SutLocale Methods
          • SutLocale Properties
        • SystemHelpers
          • SystemHelpers Methods
          • SystemHelpers Properties
        • SystemInteractions
        • WebBrowser
          • Browser
            • Browser Methods
            • Browser Properties
          • BrowserScroller
            • BrowserScroller Methods
            • BrowserScroller Properties
          • AuthenticationDialog
            • AuthenticationDialog Methods
            • AuthenticationDialog Properties
          • DownloadDialog
            • DownloadDialog Methods
            • DownloadDialog Properties
        • EnvironmentModel Enumerations
        • Interfaces
          • IWebAppBasics
            • IWebAppBasics Property
Powered by GitBook
On this page
  • Accuracy
  • EnableEndStringAnchor
  • EnableOverallAccuracy
  • EnableStartStringAnchor
  • EngineDependentParameters
  • IgnoreCapitalization
  • IgnoreSpecialCharacters
  • LanguagesToUse
  • OcrBoundaryColorTestImage
  • OcrEngine
  • OcrTextColorTestImage
  • Preprocessing
  • PrioritizePartialPerfectMatch
  • SearchLevel
  • SearchPattern
  • TestImagePath
  • TreatSpecialCharactersAsSeparateWord
  • WordCountHasToMatch

Was this helpful?

  1. Designer
  2. Automation Framework Reference

OcrEngineParameters

PreviousISUTConnection InterfaceNextBest practise

Last updated 1 year ago

Was this helpful?

Accuracy

Defines the accuracy of the text search with the following meaning: 0.0 perfect match, 0.1 one white space difference, 0.3 one character matched the second or third guess, 0.4 one related character difference, 0.5 one related character difference based on the second or third guess, 0.6 one related character group replaced, 0.8 one character with incorrect capitalization (e.g. Z instead of z) 1.0 one unrelated character difference 1.1 start or end anchor missing

Defaults to t.Properties.

Syntax: public double Accuracy { get; set; }

EnableEndStringAnchor

If true it will be checked if the search string ends on a word boundary. If this is not the case it will lead to a higher accuracy. Only applies for SearchLevel.StringComparison. Default: false

Syntax: public bool EnableEndStringAnchor { get; set; }

EnableOverallAccuracy

If true the accuracy for all words is summed, otherwise just the highest accuracy per word is returned. Does not apply for SearchLevel.StringComparison. Default: false

Syntax: public bool EnableOverallAccuracy { get; set; }

EnableStartStringAnchor

If true it will be checked if the search string starts on a word boundary. If this is not the case it will lead to a higher accuracy. Only applies for SearchLevel.StringComparison. Default: false

Syntax: public bool EnableStartStringAnchor { get; set; }

EngineDependentParameters

Usage:
var parameters = new OcrEngineParameters { /*...*/ }
var leadParas = new LEADOcrEngineParameters { /*...*/ };
parameters.EngineDependentParameters.Add(leadParas);

Syntax: public IList EngineDependentParameters { get; set; }

IgnoreCapitalization

Ignores the capitalization of the read characters Default: false

Syntax: public bool IgnoreCapitalization { get; set; }

IgnoreSpecialCharacters

If true all special characters will be ignored when finding the search text in the text read from the screen. Default: false

Syntax: public bool IgnoreSpecialCharacters { get; set; }

LanguagesToUse

Syntax: public OcrLanguages LanguagesToUse { get; set; }

OcrBoundaryColorTestImage

The color in which the detected characters are outlined on the debug image. Default: 0X3000FFFF; // cyan (82% transparent)

Syntax: public long OcrBoundaryColorTestImage { get; set; }

OcrEngine

Syntax: public OcrEngines OcrEngine { get; set; }

OcrTextColorTestImage

The color in which the detected text is printed on the debug image. Default: 0XA0FF0000; // red (40% transparent)

Syntax: public long OcrTextColorTestImage { get; set; }

Preprocessing

Allows to enable different image modifications that are applied to the screen image before the ocr engine searches the text.

PrioritizePartialPerfectMatch

If true strings which contain the exact search text are prioritized despite having a higher overall accuracy. Does not apply for SearchLevel.StringComparison. E.g. If the search text is "Hallo" and one text is "Hallx" and and an other is "Hallo123456789" the second text will be return

Syntax:

SearchLevel

  • Words: Search for every word in the search string on every detected line of text and return the result containing those words.

  • Line: Search for every word in the search string on every detected line of text and return the result containing the whole detected line.

  • Paragraph: Search for every word in the search string in every detected paragraph of text and return the result containing the whole detected paragraph.

  • MultiLines: Search for every word in the search string anywhere in the detected text and return the result containing the whole detected text. This mode is helpful, when searching for a longer string and the ocr engine incorrectly detects a paragraph break in the search text.

  • StringComparison: Searches for the search string character by character without interpreting word boundaries etc

Syntax: public SearchLevel SearchLevel { get; set; }

SearchPattern

The search pattern allows you to prioritize specific character or character groups. If you do not start with ^ it will look for the specific character. If you start with ^ you have the options 0 = Digits, A/a = Char, X/x = Digit or Char, . = Punctuation, S = Separator, C = Control character. You can use + and * modifiers for multiple occurrences. You can use ! modifiers to activate case sensitivity. e.g. a^!+A^+0^aNumber

Syntax: public string SearchPattern { get; set; }

TestImagePath

The local directory to store the debug image of the OCR engine. Default: empty, debug image is not saved locally.

Syntax: public string TestImagePath { get; set; }

TreatSpecialCharactersAsSeparateWord

If true every special character will be treated as separate word. e.g. the text "Hallo+World" will be modified to "Hallo + World" Default: false

Syntax: public bool TreatSpecialCharactersAsSeparateWord { get; set; }

WordCountHasToMatch

If true the word count from the search text and the detected text have to match. Only applies to SearchLevel Line and Paragraph. Default: false

Syntax: public bool WordCountHasToMatch { get; set; }

Allows to add engine specific parameters, e.g. or .

Defines the languages the ocr engine will use for recognizing text (sequence does not define priority). Defaults to t.Properties..

Defines which ocr engine should be used. Can be either OcrEngines.LEADEngine (Offers 2nd and 3rd guesses for every character, which allows for better recognition of the search text when detection is not perfect) or OcrEngines.Template (Based on Tesseract; Performs better than LEAD on small text due to inbuilt image preprocessing). Defaults to t.Properties.

Syntax: public Preprocessing { get; set; }

Defines whether the text search should be based on detected Words, Lines and Paragraphs or instead the string should be serached character by character without interpreting word boundaries etc (StringComparison). It is possible to combine several SearchLevels with the OR (|) operator. The engine will then try all indicated SearchLevels and return the best match. Eg. SearchLevel = SearchLevel.StringComparison | SearchLevel.Line; Defaults to t.Properties.

LEADOcrEngineParameters
IronOcrEngineParameters
OcrPreprocessingParameters
OcrAccuracy
OcrLanguagesToUse
DefaultOcrEngine
OcrSearchLevel