!752 import ai.d.ai17.*; lib 1003956 // TinyBrain p { new DesktopRecognizer rec; rec.setKeepScreenshot(true); S result; long time = now(); result = rec.run411(); done(time, "411"); MultiMap hashes = irParseHashes(result); printStructure(hashes); for (S hash : hashes.keySet()) { File file = getImgFile(hash); if (file.exists()) continue; L rects = hashes.get(hash); Rectangle r = first(rects); BufferedImage clip = rec.getScreenshot().clip(r).getBufferedImage(); savePNG(clip, file); print("Saved " + file.getAbsolutePath() + " (" + n(file.length(), "byte") + ")"); } print("Hashes found: " + hashes.keySet().size()); } static File getImgFile(S hash) { ret prepareProgramFile("images/" + hash + ".png"); }