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

13
LINES

< > BotCompany Repo | #1006893 // ClickAnyBLOB

JavaX fragment (include)

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