You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Color, Tolerance: Int32; // Color and tolerance. Color can be -1 to match any color.
34
-
UseShadow: Boolean; // If the fontset has a shadow, it can be used to improve recognition.
35
-
ShadowMaxValue: Int32; // Max brightness of shadow, Shadows are black so this is often low.
36
-
Threshold: Boolean; // Threshold the image? If so all above fields are ignored.
37
-
ThresholdAmount: Int32; // Threshold amount.
38
-
ThresholdInvert: Boolean; // Threshold invert?
39
-
MinCharacterMatch: Int32; // Minimum hits required to match a character. Useful to remove smaller characters (like dots) that are often misread.
36
+
Color, Tolerance: Int32; // Color and tolerance. Color can be -1 to match any color.
37
+
UseShadow: Boolean; // If the fontset has a shadow, it can be used to improve recognition.
38
+
ShadowMaxValue: Int32; // Max brightness of shadow, Shadows are black so this is often low.
39
+
Threshold: Boolean; // Threshold the image? If so all above fields are ignored.
40
+
ThresholdAmount: Int32; // Threshold amount.
41
+
ThresholdInvert: Boolean; // Threshold invert?
42
+
UseShadowForColor: Boolean; // Find and offset shadows by (-1,-1) and use most common color to recognize text with.
43
+
MinCharacterMatch: Int32; // Minimum hits required to match a character. Useful to remove smaller characters (like dots) that are often misread.
40
44
end;
41
45
```
42
46
@@ -50,4 +54,10 @@ If the starting position (X1,Y1) of the text never changes the text is static wh
50
54
51
55
`MaxWalk` parameter:
52
56
53
-
How far the OCR looks on the X axis before giving up. By default this is `40` so if no characaters are matched in 40 pixels the function finishes.
57
+
How far the OCR looks on the X axis before giving up. By default this is `40` so if no characaters are matched in 40 pixels the function finishes.
58
+
59
+
-----
60
+
61
+
`LocateText` function:
62
+
63
+
LocateText does not OCR! In simple terms a bitmap of the text is created (Using DrawText) and searched for. Color can be `-1` though each pixel of the text must be the exact same color.
0 commit comments