Warning: session_start(): open(/var/lib/php/sessions/sess_umjqep7btrlog59fs1odp9k4eu, 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
sclass G22AnalyzerIDE extends G22LAScriptIDE {
*(G22Utils g22utils) { super(g22utils); }
settable double timeoutToRecognizeAnImage = 10.0;
//swappable BufferedImage exampleImage() { ret loadImage2(#1101126); }
transient ConceptsComboBox cbExampleImage;
{
onSettingUpIDE(ide -> {
ide.runScript = -> {
G22Analyzer.CompiledAnalyzer analyzer = cast ide.freshCompileResult();
if (!analyzer.runnable()) ret;
var image = exampleImage();
var bg = g22utils.backgroundProcessesUI();
temp bg?.tempAdd(new BackgroundProcessesUI.Entry("Run recognizer on example image"));
var result = okOrError(-> analyzer.get(image));
ide.showScriptResult(result);
};
});
}
cachedVisual
centerAndSouthWithMargin(
super,
withLabel("Example image to analyze:", cbExampleImage = new ConceptsComboBox<>(g22utils.concepts, G22GalleryImage)));
}