Warning: session_start(): open(/var/lib/php/sessions/sess_mvc0hkss00eo0uuib7kt8vm95v, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
Mark white areas on screen [1006216]

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

13
LINES

< > BotCompany Repo | #1006216 // Mark white areas on screen

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

Libraryless. Click here for Pure Java version (5887L/41K/145K).

!752

p {
  RGBImage img = shootScreen();
  Color color = Color.white;
  L<Rect> clips = areasColored(img, color);
  print(n(clips, "areas") + " found for color " + new RGB(color) + ": " + struct(clips));
  
  //BufferedImage thumb = shrinkScreenshot(img.getBufferedImage());
  BufferedImage thumb = img.getBufferedImage();
  double factor = thumb.getWidth()/(double) img.w();
  showImageWithSelections(thumb, scaleRects(clips, factor));
}

Author comment

Began life as a copy of #1006203

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006216
Snippet name: Mark white areas on screen
Eternal ID of this version: #1006216/1
Text MD5: 50e6b71b02397d6981cb64e9b042de06
Transpilation MD5: a16897aef10feff971f37d0b476bca05
Author: stefan
Category: javax / ocr
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-02-24 11:31:42
Source code size: 451 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 842 / 1008
Referenced in: #1006217 - Try to find URL area in browser [works for me]