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.
Image recognition fails with new laptop/resolution
Moderators: Dorian (MJT support), JRL
- Grovkillen
- Automation Wizard
- Posts: 1131
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
- Contact:
Re: Image recognition fails with new laptop/resolution
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
https://www.mjtnet.com/mswhatsnew.htm
Re: Image recognition fails with new laptop/resolution
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.
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.
- Grovkillen
- Automation Wizard
- Posts: 1131
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
- Contact:
Re: Image recognition fails with new laptop/resolution
Have you tried to experiment with the MatchAlgorithm (CCOEFF and EXACT with different tolerances)?
https://www.mjtnet.com/manual/findimagepos.htm
https://www.mjtnet.com/manual/findimagepos.htm
Re: Image recognition fails with new laptop/resolution
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.
- Grovkillen
- Automation Wizard
- Posts: 1131
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
- Contact:
Re: Image recognition fails with new laptop/resolution
I suggest you start easing up on the tolerance until you get a working script.