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

15
LINES

< > BotCompany Repo | #1007258 // Extract Smilies [WORKS]

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (6657L/46K/160K).

!7

p {
  new AutoSegmenter as;
  as.g = 20; // grid size
  as.contrastMethod2 = false;
  as.brightnessThreshold = 0.99f;
  BufferedImage bi = loadImage2(#1007256);
  L<Rect> rects;
  time {
    rects = rectsLargerThan(250, 250, as.go(new RGBImage(bi)));
  }
  printStruct(rects);
  showImageWithSelections(bi, rects);
}

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: #1007258
Snippet name: Extract Smilies [WORKS]
Eternal ID of this version: #1007258/10
Text MD5: caad66de6334d04b5f4f00b84ed71cfb
Transpilation MD5: 0f02ddad2c0441d689070dee8ebd8779
Author: stefan
Category: javax / imaging
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-14 13:49:02
Source code size: 334 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 477 / 551
Version history: 9 change(s)
Referenced in: [show references]