Method ocrFinder.Exists(+ 1 overload)
Overload
Performs OCR (text recognition) and finds text in results.
public bool Exists(IFArea area)
Parameters
|
area (IFArea)
On-screen area or image:
|
Returns
|
bool
If found, sets ocrFinder.Result and returns |
Exceptions
|
AuWndException
Invalid window handle (the area argument). |
|
ArgumentException
An argument is/contains a |
|
AuException
Something failed. |
Remarks
The function captures image from screen or window (unless area is System.Drawing.Bitmap) and passes it to the OCR engine (calls IOcrEngine.Recognize). Then finds the specified text in results. If found, creates and returns an ocr object that contains results.
The speed depends on engine, area size and amount of text.
Overload(top)
Performs OCR (text recognition) and finds text in results. Can wait and throw NotFoundException.
public bool Exists(IFArea area, Seconds wait)
Parameters
|
area (IFArea)
On-screen area or image:
|
|
wait (Seconds)
The wait timeout, seconds. If 0, does not wait. If negative, does not throw exception when not found. |
Returns
|
bool
If found, sets ocrFinder.Result and returns |
Exceptions
| NotFoundException |
|
AuWndException
Invalid window handle (the area argument), or the window closed while waiting. |
|
ArgumentException
An argument is/contains a |
|
AuException
Something failed. |
Remarks
The function captures image from screen or window (unless area is System.Drawing.Bitmap) and passes it to the OCR engine (calls IOcrEngine.Recognize). Then finds the specified text in results. If found, creates and returns an ocr object that contains results.
The speed depends on engine, area size and amount of text.