AI > ClickAnyBLOB {
static ImageSurface is;
static L<Rect> segment(RGBImage img) {
ret autoSegment(new BWImage(img), 3); // 2 is too small
}
void go {
L<Rect> blobs = segment(image);
is = showImage(is, "BLOBS", rgbMarkedRects(image, blobs));
submit(random(blobs));
}
}download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1006893 |
| Snippet name: | ClickAnyBLOB |
| Eternal ID of this version: | #1006893/3 |
| Text MD5: | 40d50985933efb52e191f9e4bc099d39 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-02-14 02:07:48 |
| Source code size: | 310 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 721 / 1197 |
| Version history: | 2 change(s) |
| Referenced in: | #1006878 - A. I. Game 3.3 / Close The Window [SOLVED] #1006901 - A. I. Game 3.4 / Close The Window If Any [SOLVED] |