AI > MemorizeArea2 { float similarityThreshold = 0.9f; int shrinkPixels = 1; new ImageCategorizer categorizer; static ImageSurface is; Pt lastLocation; void go { // guess Rect guess = null; if (blobImage != null) { guess = foundImgToRect(rgbRawImageSearch_searchHereFirst(image, blobImage, similarityThreshold, lastLocation)); if (guess != null) lastLocation = new Pt(guess.x, guess.y); } // submit Rect solution = first(submit(guess)); // learn if (solution != null && !correct) { bool correct = solution.contains(guess); blobImage = image.clip(growRect(solution, -shrinkPixels)); if (visualize) is = showZoomedImage(is, "Memorized Area", blobImage); } } }