Hi,
I am currently running through the Windows 10 surface automation tutorial 5.0.3 (the one using the BP calculator). However I have become stuck on section 5.1.2 as the behaviour is not as described.
In the region editor I have defined a region for the equals button, set retain image to true, and confirmed that the image shows up in the application modeler. However when I try to set a wait stage to check for "Contains Image", it always fails and times out.
So instead I used a read stage to grab a copy of the captured region image, exported to PNG, then re-imported into a data object. Then during runtime I re-read the equals key region, and compare the two images. This always fails with the comparison showing false. I have extracted the originally exported PNG and the run-time one and compared them pixel-by-pixel, and they are identical.
However I know image comparison is possible, because if I pause after the image read stage and extract the result so both the data items contain the newly extracted run-time image, the decision stage passes as true.
So it seems like the read image from region stage is reading a different result each time. I am unable to resolve this. Font smoothing is disabled in windows so that can't be the issue.
According to the knowledge base there is a VBO called "Utility - Image Manipulation Other". However, that file does not exist in the VBO folder, only "Utility - Image Manipulation" which does not have "Compare Images In Monochrome". Nor is that VBO available from the website.
Has anyone encountered this, and knows how to fix it? Without being able to extract and compare images, I won't really be able to use surface automation.