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

15
LINES

< > BotCompany Repo | #1006550 // Screen Lens with funny b/w conversion

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

Uses 3874K of libraries. Click here for Pure Java version (8400L/61K/202K).

1  
!7
2  
3  
static ScreenLens lens;
4  
5  
p-substance {
6  
  lens = new ScreenLens;
7  
  lens.postProcess = func(BufferedImage img) {
8  
    //BWImage bw = bwImageTo2Bit_inner(new BWImage(img), 0.2f, 0.85f);
9  
    BWImage bw = bwImageTo2Bit_outer(new BWImage(img), 0.2f, 0.8f);
10  
    img = bw.getBufferedImage();
11  
    drawBoxes(img, rectsToRectangles(autoSegment_blackBG(bw)), Color.red, 0.8f);
12  
    ret img;
13  
  };
14  
  lens.start();
15  
}

Author comment

Began life as a copy of #1006531

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, nnmtytuibrzp, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006550
Snippet name: Screen Lens with funny b/w conversion
Eternal ID of this version: #1006550/1
Text MD5: 432e5e4141120492ce0512baf7fbb26b
Transpilation MD5: c841f081dff9c80dc62ef045e64a7454
Author: stefan
Category: javax / gui / ocr
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-03 14:07:12
Source code size: 417 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 529 / 648
Referenced in: [show references]