Best Practices for Improving AI Employee Speed
-
Image searching is much faster than OCR text searching. (Especially if the image is small.)
-
When waiting for a web page to load, it is often faster to monitor for an image to load on the screen instead of monitoring for text to load on the screen, since OCR is slower than image matching.
-
When possible, use image matching to first define smaller search regions on the screen before reading text with OCR. Small search regions improve OCR speeds and accuracy.
-
To improve speed, it is often possible to define regions using a “single image match” or a “single text match” then expand the found region by adjusting the region to increase its size. This way the AI Employee does not have to find and identify four new borders.
-
Avoid searching for images that contain text, if possible. The gradients (anti-aliasing) that screens apply when they render text often makes text unreliable for pixel-by-pixel image matching.
-
Remember that you can reuse regions you’ve defined previously. This is often faster than redefining new regions over and over again. Just reuse the regions you’ve already defined whenever possible.
-
When working with web pages, first try to load the exact page URL you want to access that is behind the login to see if a login is necessary. Then, proceed to log in only if prompted to do so. There is no need to visit the login page and go through the login steps for every process instance, if the user session has already been created.
-
One good thing about websites is that we can often navigate directly to the URL we want to access. Whenever possible, use this method instead of using the website’s navigation menu. This can save a lot of time.
-
When using the AI Employee to capture images, try to stay away from gradients as much as possible. Try to find solid colors and clean sharp edges, if you can. This isn’t absolutely required but it will help with reliability, because gradients can render with subtle differences.
-
When training AI Employees using Computer Vision, always enable debug mode and pay close attention to the image log output in your c:\temp or d:\temp folder. This will help you verify that the AI Employee is correctly defining the regions you want to use. (Remember, the smaller the region, the more accurate and fast the OCR.)