### Creating Threshold Filter (Pascal) Source: https://github.com/ollydev/simpleocr/blob/master/README.md Creates a Threshold filter instance. This filter converts pixels to white or black based on whether their brightness exceeds a specified threshold amount. This example sets the threshold to 10. ```Pascal TOCRThresholdFilter.Create(10); ``` -------------------------------- ### Creating Basic Color Filter (Pascal) Source: https://github.com/ollydev/simpleocr/blob/master/README.md Creates a basic Color filter instance. This filter checks if pixels match specific colors within optional tolerances. This example demonstrates finding the exact color red ($0000FF). ```Pascal TOCRColorFilter.Create([$0000FF]); ``` -------------------------------- ### Creating Shadow Filter (Pascal) Source: https://github.com/ollydev/simpleocr/blob/master/README.md Creates a Shadow filter instance. This filter identifies shadow pixels based on their average RGB value being below a maximum shadow value, then uses the most common color from offset pixels as the search color. This example uses default values for max shadow value and tolerance. ```Pascal TOCRShadowFilter.Create(); ``` -------------------------------- ### Creating Color Filter with Tolerance (Pascal) Source: https://github.com/ollydev/simpleocr/blob/master/README.md Creates a basic Color filter instance with tolerance. This filter checks if pixels match specific colors within optional tolerances. This example demonstrates finding the color white ($FFFFFF) with a tolerance of 100. ```Pascal TOCRColorFilter.Create([$FFFFFF], [100]); ``` -------------------------------- ### Creating Invert Color Filter (Pascal) Source: https://github.com/ollydev/simpleocr/blob/master/README.md Creates an Invert Color filter instance. This filter checks if pixels *do not* match specific colors within optional tolerances. This example demonstrates finding everything except brown (3358536) and black (0) with specified tolerances. ```Pascal TOCRInvertColorFilter.Create([3358536, 0], [3, 10]); ``` -------------------------------- ### Creating AnyColor Filter (Pascal) Source: https://github.com/ollydev/simpleocr/blob/master/README.md Creates an AnyColor filter instance. This filter uses the color of the first pixel of a character as the base color and checks if other pixels are within a specified tolerance. It also checks for shadows based on a maximum shadow value. ```Pascal function TOCRAnyColorFilter.Create(Tolerance: Integer; MaxShadowValue: Integer): TOCRAnyColorFilter; static; ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.