Warning: session_start(): open(/var/lib/php/sessions/sess_076q8leheqgotnfbpog5mo7tkb, 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
please include function showImageWithSelections.
static Var showImageWithSelections_highlighted;
static ImageSurface showImageWithRecognizedTexts(BufferedImage img, ImageSurface _is, final L rects) {
final ImageSurface is = showImage(img, _is);
final new Var highlighted;
showImageWithSelections_highlighted = highlighted;
is.overlay = voidfunc(Graphics2D g) {
for (RecognizedText r : rects) {
is.drawSelectionRect(g, r.r.getRectangle(), Color.blue, blendColor(Color.black, Color.white, r.score()));
// TODO: text
}
if (highlighted.has())
fillRect(g, scaleRect(highlighted!, is.getZoomX(), is.getZoomY()), new Color(0, 0, 0, 0x30)); // semi-transparent black
};
imageSurfaceOnMouseMove(is, voidfunc(Pt p) {
repaintIf(is, setVarIfNeq(highlighted, smallestRectContaining(rects, p)));
});
ret repaint(is);
}