Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New feature request : Find image in image #110

Open
neoarc opened this issue Aug 31, 2018 · 0 comments · May be fixed by #113
Open

New feature request : Find image in image #110

neoarc opened this issue Aug 31, 2018 · 0 comments · May be fixed by #113
Labels
Request A cool feature request for the library
Milestone

Comments

@neoarc
Copy link

neoarc commented Aug 31, 2018

A short and descriptive title

  • Find image in image

A detailed description of the feature

  • If we have 2 image objects, we can test imageA is part of imageB.
  • If imageA contains imageB, returns relative coordinates (or absolute coords)

A few typical use case scenarios

  • See this pseudo code
    Screen.grab(imageA, ...whole screen...)
    Screen.grab(imageB, ...image of some button...) // bad-way, i will request this issue separately
    var coord = new Coord;
    if (imageA.findImage(imageB, coord) == true) {
    robot.Mouse().click(coord); // click found image
    }

How you expect the feature to work

  • Must be very fast
  • Don't require to turn Aero off

Any other useful information

  • This implementation provides the easiest way to automate UI automation, making it easier for end users who do not know programming to easily access them.
  • Comparing image buffers directly to pixels by pixel is much faster than expected.
  • This is the method used by AutoHotkey, NaMacroJS (My own javascript platform similar to robot-js).

PS. Sorry, I'm finally robot-js user, not robot native. But I'm a c ++ developer.

@dkrutsko dkrutsko added the Request A cool feature request for the library label Mar 25, 2022
@dkrutsko dkrutsko added this to the Robot 2.1.0 milestone Mar 25, 2022
@dkrutsko dkrutsko linked a pull request Mar 25, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Request A cool feature request for the library
Development

Successfully merging a pull request may close this issue.

2 participants