|
Post by Franky on Sept 29, 2016 20:58:31 GMT
Hi,
I'd like to make automated screenshots from Ankulua, and I tried Settings:snapSet() and save(), but these take black&white snapshots. Is there any way to make real screen capture?
|
|
|
Post by AnkuLua on Sept 29, 2016 22:37:51 GMT
Just create region then save it.
reg = Region(0, 0, 1280, 720) -- change to your resolution reg:save("fullScreen.png")
|
|
|
Post by Franky on Sept 30, 2016 0:23:59 GMT
That's what I've done, but the png is B&W, using the latest version of Ankulua:
rgn = Region(0, 0, getRealScreenSize():getX(), getRealScreenSize():getY()) rgn:save("temp.png")
|
|
|
Post by AnkuLua on Sept 30, 2016 0:34:55 GMT
Yes. It's B&W. All image recognition is performed with B&W for speed and memory consideration.
|
|
|
Post by Franky on Sept 30, 2016 8:22:08 GMT
Internally, it makes sense to work with B&W, but every image I feed to Ankulua is in color, because I don't bother to convert them in B&W after cropping them (and I guess nobody does).
Besides, screen captures are not specifically meant to be used for image compare. In my case, I take them to monitor progress, B&W doesn't exactly help in readability.
Saving pictures in color wouldn't harm if they are to be used for image compare, as we already use color images, and it could benefit to be used by humans.
Perhaps save() could have an additional "color" boolean param so we could use it like the Capture() function in Sikuli?
|
|
|
Post by Franky on May 18, 2020 12:12:04 GMT
Once again, I'd like to take color screenshots. rgn:save still doesn't work in color, but I thought I might have a chance with the debug option Settings:snapSet Settings:snapSet("OutputCaptureImg", true) snapshotColor() Settings:snapSet("OutputCaptureImg", false) usePreviousSnap(false)
Unfortunately, it still takes a B&W picture Did I miss something?
|
|
|
Post by AnkuLua on May 18, 2020 12:38:38 GMT
Once again, I'd like to take color screenshots. rgn:save still doesn't work in color, but I thought I might have a chance with the debug option Settings:snapSet Settings:snapSet("OutputCaptureImg", true) snapshotColor() Settings:snapSet("OutputCaptureImg", false) usePreviousSnap(false)
Unfortunately, it still takes a B&W picture Did I miss something? Currently, save() is all B&W. Will support saveColor() in next release.
|
|
|
Post by Franky on May 18, 2020 12:40:46 GMT
Will support saveColor() in next release. Thanx a lot!!!
|
|