Jump to content

Recommended Posts

Posted (edited)

I am automating remote machines through a vnc client. To detect menu screens I initally tried using tesserat to read the text but this proved very slow and outputs were too variable. I moved to using pixel checksum on specific areas of the screen to determine the scripts location in the menu. This works most of the time..

My issue is that even with a very good VNC connection there are occasional small artifacts which cause Pixelchecksum to produce different values. I was trying to find a more imprecise way to compare the regions. Ideally a comparison where I could provide and accuracy value such as 98% allowing upto 2% of the region to contain artifact.

I could create a pixel array of the region and compare to a perfect sample and produce an output of the percentage match. I think coding my own version is likely to add significant delay into the script so was hopeing there was some library or function I've missed that already does this or something similar.

Thanks Kyu

EDIT: I found this basically the implementation of my idea, still would like a faster way :)

Edited by kyuzumaki
  • Moderators
Posted

kyuzumaki ,

Manadar wrote a UDF to read pixels from a screen shot in memory - perhaps that might be useful? ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

  • Moderators
Posted

kyuzumaki,

Great news. Glad I could help. :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...