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

Compare area on screen to histogram #32

Open
2 tasks
emiln opened this issue Sep 25, 2015 · 0 comments · May be fixed by #34
Open
2 tasks

Compare area on screen to histogram #32

emiln opened this issue Sep 25, 2015 · 0 comments · May be fixed by #34

Comments

@emiln
Copy link
Owner

emiln commented Sep 25, 2015

In order to write logic for visual content on the screen, a simple start would be the ability to express a condition like:

Take a histogram of the area [x, y, width, height]. Is this within [distance] of [other histogram]?

As histograms were already implemented with #11 this is actually mostly done. A few tasks remain:

  • Allow script authors to write literal histograms. Perhaps [:histogram 0xffff...].
  • Allow script authors to generate a histogram of a portion of the screen. Perhaps [:histogram-at x y width height].
emiln added a commit that referenced this issue Oct 18, 2015
Issue #32

This adds the ability to:

- Create a histogram given a literal string encoding of one.
- Create a histogram from a rectangle of pixels on the screen.
- A condition comparing whether two histograms are sufficiently
  similar.

This allows branching based on the contents on the screen compared
a known earlier state (which must be precomputed and encoded for now.)
@emiln emiln linked a pull request Oct 18, 2015 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant