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

20
LINES

< > BotCompany Repo | #1006808 // Local Precision Map Of Screen [WORKS]

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

Libraryless. Click here for Pure Java version (5218L/36K/129K).

1  
!7
2  
3  
static int g = 20;
4  
5  
p {
6  
  final RGBImage img = rgbShootScreen();
7  
  final int gw = img.w()/g, gh = img.h()/g;
8  
  final BWImage map = new BWImage(gw, gh);
9  
  for y to gh: for x to gw: {
10  
    Rect r = new Rect(x*g, y*g, g, g);
11  
    float prec = rgbLocalPrecision(img, r);
12  
    print(prec);
13  
    map.setPixel(x, y, 1-prec);
14  
  }
15  
  awt {
16  
    showZoomedImage(map, 4);
17  
    final RGBImage img2 = rgbResize(img, gw, gh);
18  
    moveFrameDown(100, showZoomedImage(img2, 4);
19  
  }
20  
}

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: #1006808
Snippet name: Local Precision Map Of Screen [WORKS]
Eternal ID of this version: #1006808/17
Text MD5: 5c5c61a1bc60f944b159430cd1a1bd37
Transpilation MD5: 902b18680e3f568b8735eee8dbc44e17
Author: stefan
Category: javax / ocr
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-02-05 03:17:54
Source code size: 482 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 446 / 575
Version history: 16 change(s)
Referenced in: [show references]