AI > MemorizeBrightBLOB2 { float similarityThreshold = 0.9f; RGBImage blobImage; static ImageSurface is; static L<Rect> segment(RGBImage img) { ret autoSegment_blackBG(new BWImage(img), 3); // 2 is too small } void go { // guess L<Rect> 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); } } } }
Began life as a copy of #1006892
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment