Sikuli not able to recognise images taken through Remote desktop and when run directly on system due to font antialiasing

Asked by Nishant

Hi,

I have captured images using remote desktop connection as didn't have direct access to machine and when executing it through RDC(Remote Desktop Connection) its working fine but when we tried it to run the same script directly on the system it is not able to recognise most of the image and after doing some R&D we found that images captured through RDC in that font are aliased to maintain the performance in RDC and when we use the system directly windows automatically make the fonts anti-aliased because of which sikuli not able to recognise those image.

Did anyone face the similar issue and can give any suggestion to make use of the images captured through RDC as image captured in RDC is huge and don't want to get into rework.

Regards,
Nishant Singh

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alex Lunyov (lunyov-av) said :
#1

There are two main ways to solve your problem:
1. Make both interfaces to use either antialiased or non-antialiased fonts. E.g. switch it OFF or ON both machines.
2. Reduce the factor of similarity, using standard Sikuli IDE instruments. So that your script could catch antialiased and non-antialiased screenshots of text.

The last way make your script less robust and so you should test all your images on both computers. For large text (let it be more then 10–15 pixels in height) the last way is suitable and for small text the first way may be the only suitable in your case.

Revision history for this message
Nishant (nishant-vicky007) said :
#2

Thanks Alex,

but can you please explain how can we use the first option suggested by you as we are able to disable cleartype setting of windows to used non-antialiased fonts but we are manually disabling it is there any way we can do it pragmatically.

Please suggest.

Regards,
Nishant Singh

Revision history for this message
Alex Lunyov (lunyov-av) said :
#3

Could you manually disable antialiasing on the remote system? If yes, does that system keep this setting?

Revision history for this message
Nishant (nishant-vicky007) said :
#4

actually now we are running the script directly so we are able to disable the anitaliasing setting and yes system keep that setting but as it is being used by other people after running the scripts we have to revert the setting back. So if we can do this pragmatically that will resolve our issue

and Alex please let me know if I use Settings.similarity to reset the similarity factor I need to increase the value or decrease it I am very new to sikuli so I am asking these basic questions.

Revision history for this message
Alex Lunyov (lunyov-av) said :
#5

OK, there should be a way to run *.bat file to toggle ClearType on/off, look here: http://www.techsupportforum.com/forums/f10/solved-cleartype-command-does-it-exist-332657.html

Or you could try to "sikulify" the sequence of your mouse clicks to get antialiasing on/off to revert it back, that would be good exsercise for you. Yes, this is right setting, but keep in mind that this is global setting, and in my tasks I prefer set similarity for each image manually. Sometimes I need 99% similarity both with 50% etc.

Can you help with this problem?

Provide an answer of your own, or ask Nishant for more information if necessary.

To post a message you must log in.