hpw
Full Member
Posts: 30
|
Post by hpw on Oct 21, 2020 18:14:11 GMT
Hello,
What about another command for the PIXEL family:
1 | IF | PIXEL COMPARE | At Location [X:2768 Y:602]::Size [W:100 H:50] | EQUAL | c:\temp\image.png | CONTINUE
Similar to PIXEL RANGE it would compare 2 image buffers. (size should match) One is taken from screen and the other is read from file. The code from PIXEL RANGE for comparison should be usable for the rest. The action should be free to choose.
A utility command could be:
1 | RUN ACTION | PIXEL SAVE | From Location [X:2768 Y:602]::Size [W:100 H:50] | c:\temp\image.png
Not a tesseract like image recognition, but small and usefull to check for graphical decisions! ;-)
Regards
Hans-Peter
|
|
|
Post by Steve on Oct 22, 2020 9:09:36 GMT
Yeah i love this. PIXEL SAVE and PIXEL COMPARE is can see that being useful. Great idea.
|
|
hpw
Full Member
Posts: 30
|
Post by hpw on Oct 22, 2020 16:16:25 GMT
Hello Steve,
An addition to the PIXEL SAVE:
Could it optional save to an image-buffer/vatiable? Idea is to use memory instead of file-system.
This would need an advanced DRAW PICTURE with optional reading from image-buffer instead of file-sytem. Should be faster. Also the PIXEL COMPARE could use such option. Faster.
Regards
Hans-Peter
|
|