AI > MemorizeBrightBLOB2 { float similarityThreshold = 0.9f; RGBImage blobImage; static ImageSurface is; static L segment(RGBImage img) { ret autoSegment_blackBG(new BWImage(img), 3); // 2 is too small } void go { // guess L myRects = segment(image); Rect guess = null; if (blobImage != null) guess = rgbFindMostSimilarClip(image, blobImage, myRects, similarityThreshold); // submit Rect solution = first(submit(guess)); // learn if (blobImage == null && solution != null) { solution = autoCropOfRGBImage_blackBG(image, solution); Rect mine = smallestRectContaining(myRects, centerOfRect(solution)); if (mine != null) { blobImage = image.clip(mine); is = showZoomedImage(is, "Memorized BLOB", blobImage); } } } }