Warning: session_start(): open(/var/lib/php/sessions/sess_evg5fimg1pg9h3kibn0kk6svgm, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
cmodule FindActiveTab > DynPrintLogAndEnabled {
transient CloseToColorPredicate solution = new(0x266D9F, 0.05051);
transient int gridSize = 4;
start {
doEvery(3.0, r doIt);
}
void doIt {
if (!enabled) ret;
time "Shoot" {
BufferedImage img = shootScreenArea(0, 0, screenWidth(), 50);
}
time "Analyze" {
RGBImage rgb = new(scaleImageWithFactor(1.0/gridSize, img));
DoublePt pt = centroidForColorPredicate(solution, rgb);
}
if (pt == null) ret with print("No result");
int x = iround(pt.x*gridSize), y = iround(pt.y*gridSize);
print(x + "/" + y);
pointArrowsToArea(toRectangle(rectAround(x, y, 80, 30)), 3.0);
}
}