Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1006893 // ClickAnyBLOB

JavaX fragment (include)

1  
AI > ClickAnyBLOB {
2  
  static ImageSurface is;
3  
  
4  
  static L<Rect> segment(RGBImage img) {
5  
    ret autoSegment(new BWImage(img), 3); // 2 is too small
6  
  }
7  
8  
  void go {
9  
    L<Rect> blobs = segment(image);
10  
    is = showImage(is, "BLOBS", rgbMarkedRects(image, blobs));
11  
    submit(random(blobs));
12  
  }
13  
}

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: 488 / 954
Version history: 2 change(s)
Referenced in: [show references]