!7 sclass OCR > DynModule { transient ImageSurface is; JComponent visualize() { ret withCenteredButtons( jscroll(is = imageSurfaceWithStandardOperations()), "Recognize Screen (3s delay)", rThread recognize); } void recognize { print("Will shoot screen in 3 seconds..."); sleepSeconds(3); print("Shooting."); is.setImage(shootScreen2()); new OCRRecognizeAndTeach(is.getImage()); } }