Image recognition fails with new laptop/resolution

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
ari
Junior Coder
Posts: 23
Joined: Tue Jul 15, 2014 4:12 pm

Image recognition fails with new laptop/resolution

Post by ari » Wed Nov 23, 2016 4:56 pm

Hi,
I recently upgraded from a 1440x900 resolution laptop to a 2560x1440 laptop. I use MS to interact with a medical record program over citrix so I use image recognition a lot. It seems like all of my scripts using image recognition have broken. They do work when I delete the old bitmaps and redo them with the wizard, but this is a tedious process. Any advice? I went into it thinking that pixels were pixels but I guess not. Also note that I have to run MS locally on my computer.

User avatar
Grovkillen
Automation Wizard
Posts: 1009
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Image recognition fails with new laptop/resolution

Post by Grovkillen » Wed Nov 23, 2016 5:06 pm

Please post version number. 14.3 04 fixed a DPI bug which might be what is causing your problem.

https://www.mjtnet.com/mswhatsnew.htm
Let>ME=%Script%

Running: 15.0.24
version history

ari
Junior Coder
Posts: 23
Joined: Tue Jul 15, 2014 4:12 pm

Re: Image recognition fails with new laptop/resolution

Post by ari » Wed Nov 23, 2016 5:17 pm

14.3.07

I tried an updated hi res script on the old lower res laptop and it failed as well. There must be an issue with citrix and the way it scales the desktop? I have been using the "actual size" option with the citrix desktop viewer which I assumed was 1:1 mapping.

User avatar
Grovkillen
Automation Wizard
Posts: 1009
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Image recognition fails with new laptop/resolution

Post by Grovkillen » Wed Nov 23, 2016 5:19 pm

Have you tried to experiment with the MatchAlgorithm (CCOEFF and EXACT with different tolerances)?

https://www.mjtnet.com/manual/findimagepos.htm
Let>ME=%Script%

Running: 15.0.24
version history

ari
Junior Coder
Posts: 23
Joined: Tue Jul 15, 2014 4:12 pm

Re: Image recognition fails with new laptop/resolution

Post by ari » Wed Nov 23, 2016 5:25 pm

I have not, I have been using EXACT matching with 0 tolerance because I assumed this was fastest and my EMR is a very static program, it does not change much with updates.

User avatar
Grovkillen
Automation Wizard
Posts: 1009
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Image recognition fails with new laptop/resolution

Post by Grovkillen » Wed Nov 23, 2016 5:32 pm

I suggest you start easing up on the tolerance until you get a working script.
Let>ME=%Script%

Running: 15.0.24
version history

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts