GPAL - Generally Positive Automation Library
v1.0
GPAL The Fluent Automation LIbrary
Toggle main menu visibility
Loading...
Searching...
No Matches
OCRInterfaces.cs
1
// =============================================================================
2
// GPAL - Generally Positive Automation Library
3
// Copyright © 2026 Software Decisions, Inc. All rights reserved.
4
//
5
// This file is part of GPAL.
6
// Licensed under the Business Source License 1.1
7
//
8
// Primary development, architecture, and vision by Michael B. Vederman,
9
// CEO of Software Decisions, Inc., Texas.
10
//
11
// Internal development maintained privately.
12
// Public releases appear on GitHub: https://github.com/SoftwareDecisionsInc/GPAL.
13
//
14
// See LICENSE for full terms, including Additional Use Grant.
15
// =============================================================================
16
17
using
System;
18
using
System.Collections.Generic;
19
using
System.Linq;
20
using
System.Text;
21
using
System.Threading.Tasks;
22
using
static
GenerallyPositive
.
Enums
;
23
24
namespace
GenerallyPositive
25
{
26
public
class
OCRInterfaces
27
{
28
#region <Application Interfaces>
29
#region <Base Application Interfaces>
30
public
interface
IAllowOCRRegion
31
{
32
IAllowOCRSettings
WithRegion(
ClientRectangle
region);
33
}
34
35
public
interface
IAllowOCRSettings
:
IAllowOCRRegion
, IAllowToGPALObject<IGPALOCR>
36
{
37
IAllowOCRSettingsOrExecute
WithScanDirection(OCRScanDirection direction);
38
IAllowOCRSettingsOrExecute
WithLanguage(OCRLanguage lang);
39
IAllowOCRSettingsOrExecute
WithEngineMode(EngineMode mode);
40
IAllowOCRSettingsOrExecute
WithCharacterWhitelist(
string
chars);
41
IAllowOCRSettingsOrExecute
WithStandardWhitelist(OCRWhitelist preset);
42
IAllowOCRSettingsOrExecute
WithDPI(
int
dpi);
43
IAllowOCRSettingsOrExecute
WithRetryCount(
int
count);
44
IAllowOCRSettingsOrExecute
WithTimeout(TimeSpan timeout);
45
}
46
47
public
interface
IAllowOCRSettingsOrExecute
:
IAllowOCRSettings
48
{
49
IAllowOCRSettings
SaveTo(IGPALGrid<string> grid);
50
}
51
public
interface
IGPALOCR
:
IAllowOCRSettingsOrExecute
{ }
52
53
#endregion <Base Application Interfaces>
54
#endregion <Application Interfaces>
55
56
public
interface
IAllowToGPALObject<TResult>
57
{
58
TResult ToGPALObject();
59
}
60
61
}
62
}
63
GenerallyPositive.ClientRectangle
Represents a client-side bounding rectangle (similar to DOMRect) with additional convenience properti...
Definition
GPALElement.cs:64
GenerallyPositive.Enums
Definition
Enums.cs:37
GenerallyPositive.OCRInterfaces
Definition
OCRInterfaces.cs:27
GenerallyPositive.OCRInterfaces.IAllowOCRRegion
Definition
OCRInterfaces.cs:31
GenerallyPositive.OCRInterfaces.IAllowOCRSettings
Definition
OCRInterfaces.cs:36
GenerallyPositive.OCRInterfaces.IAllowOCRSettingsOrExecute
Definition
OCRInterfaces.cs:48
GenerallyPositive.OCRInterfaces.IGPALOCR
Definition
OCRInterfaces.cs:51
GenerallyPositive
Definition
Application.cs:32
Common
OCRInterfaces.cs
Generated by
1.17.0