Tune SikuliX image-matching similarity and handle multi-DPI screen differences

domain: sikulix.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Wrap reference images in a Pattern and explicitly set similarity, e.g. Pattern("btn.png").similar(0.95), rather than relying on the library's implicit 0.7 default for reliable click targets
  2. Capture reference images with minimal background, keeping non-unique surrounding pixels below roughly 20% of the image area to avoid false-positive matches
  3. Don't treat very high similarity thresholds (0.98+) as a blanket safety net on images with large flat/solid-color regions — SikuliX can report near-perfect similarity for visually different solid-color areas
  4. When the same script must run on machines with different screen size/DPI, capture and store DPI-specific image sets and select the right set at startup rather than assuming images scale
  5. For remote/virtualized targets with mismatched DPI, drive the automation over a fixed-resolution VNC session so captured and runtime images match

Known gotchas

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans