!7 sclass GrabbedImage { //long lastScreenshotTime; //Rect lastRect; BWImage image; S md5; //int count; BWImage visualizedSplit; new L rects; new L characters; new L characterMD5s; L groupedRecognition; S recognition; } static BufferedImage img; static L texts; static ImageSurface is; static ReliableSingleThread rst; p-experiment { print("Shooting"); img = shootScreenHidingConsole(); print("Recognizing"); texts = ocr_recognizeMultiLine_scored(img); L lines = onlyStringsLongerThan(1, mapMethod('text, texts)); printNumbered(lines); rst = new ReliableSingleThread(f reRecognize); is = showImageWithRecognizedTexts(img, null, texts); showImageWithRecognizedTexts_makeTeachable2(img, is, texts, filledSimpleRecognizer_cached(), r { rst.trigger() }); } svoid reRecognize { replaceCollection(texts, ocr_recognizeMultiLine_scored(img)); is.repaint(); }