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

!7

static int g = 20;

p {
  final RGBImage img = rgbShootScreen();
  final int gw = img.w()/g, gh = img.h()/g;
  final BWImage map = new BWImage(gw, gh);
  for y to gh: for x to gw: {
    Rect r = new Rect(x*g, y*g, g, g);
    float prec = rgbLocalPrecision(img, r);
    print(prec);
    map.setPixel(x, y, 1-prec);
  }
  awt {
    showZoomedImage(map, 4);
    final RGBImage img2 = rgbResize(img, gw, gh);
    moveFrameDown(100, showZoomedImage(img2, 4);
  }
}

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: 443 / 571
Version history: 16 change(s)
Referenced in: [show references]