GPAL - Generally Positive Automation Library v1.0
GPAL The Fluent Automation LIbrary
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
17using System;
18using System.Collections.Generic;
19using System.Linq;
20using System.Text;
21using System.Threading.Tasks;
22using static GenerallyPositive.Enums;
23
24namespace 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
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
Represents a client-side bounding rectangle (similar to DOMRect) with additional convenience properti...