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).

1  
!7
2  
3  
p {
4  
  new AutoSegmenter as;
5  
  as.g = 20; // grid size
6  
  as.contrastMethod2 = false;
7  
  as.brightnessThreshold = 0.99f;
8  
  BufferedImage bi = loadImage2(#1007256);
9  
  L<Rect> rects;
10  
  time {
11  
    rects = rectsLargerThan(250, 250, as.go(new RGBImage(bi)));
12  
  }
13  
  printStruct(rects);
14  
  showImageWithSelections(bi, rects);
15  
}

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: 550 / 648
Version history: 9 change(s)
Referenced in: [show references]