Principle:A9T9 RPA Engine Selection
| Knowledge Sources | |
|---|---|
| Domains | Computer_Vision, Engine_Routing |
| Last Updated | 2026-10-22 00:00 GMT |
Overview
Mechanism for routing image-search requests between in-extension WASM and native desktop CV engines based on the search scope.
Description
Engine Selection is the routing decision that determines which computer-vision engine handles an image search. The routing key is the search scope:
- Browser scope: the search runs entirely within the extension using a Rust vision-core compiled to WebAssembly. The WASM module runs in a Web Worker to avoid blocking the UI thread. It uses zero-mean normalized cross-correlation (NCC) with a DPI-prior scale band.
- Desktop scope: the search runs on the native desktop CV host via native messaging. The host captures the screen at the OS level and performs template matching outside the browser, which is necessary for desktop automation where the target is outside the browser tab.
Both engines return the same `ConvertResultItem[]` contract so the caller can consume results uniformly. The routing layer (`searchImageInExtensionRouted`) dispatches to the appropriate engine.
Usage
Use this principle when a visual automation system must support both in-browser (WASM) and desktop (native) image search with a unified interface.
Theoretical Basis
Engine routing is a scope-based dispatch: