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

16
LINES

< > BotCompany Repo | #1006812 // Check Precision Of Random Screen Parts [WORKS]

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

Libraryless. Click here for Pure Java version (4923L/35K/123K).

1  
!7
2  
3  
static ImageSurface isGood, isBad;
4  
5  
p {
6  
  repeat with sleep 1 {
7  
    Rect r = randomScreenRect(50, 50);
8  
    RGBImage clip = rgbShootScreen(r);
9  
    float prec = rgbInnerPrecision(clip);
10  
    print(prec);
11  
    if (prec >= 0.5f)
12  
      isGood = showImage(isGood, "Precise", clip);
13  
    else
14  
      isBad = showImage(isBad, "Wobbly", clip);
15  
  }
16  
}

Author comment

Began life as a copy of #1006798

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: #1006812
Snippet name: Check Precision Of Random Screen Parts [WORKS]
Eternal ID of this version: #1006812/7
Text MD5: 78c42994e0a9c178e46ffd00aa05ff21
Transpilation MD5: 1ddeca9aa1fa6ba392b22635b23084ac
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:36:58
Source code size: 355 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 515 / 585
Version history: 6 change(s)
Referenced in: [show references]