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

31
LINES

< > BotCompany Repo | #1006434 // Windows XP: Find Taskbar On the Left [dev.]

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

Libraryless. Click here for Pure Java version (2577L/16K/55K).

!7

p {
  RGBImage rgb1 = loadImage(#1006432);
  int x1 = 444;
  RGBImage rgb2 = loadImage(#1006433);
  int x2 = 418;
  
  new XLearner(litorderedmap(rgb1, 444, rgb2, 418));
}

sclass XLearner {
  sclass Example {
    RGBImage rgb;
    int x;
    
    RGBImage col() {
      ret rgbCol(rgb, x);
    }
  }
  
  new L<Example> examples;
  
  *(Map<RGBImage, Int> _examples) {
    for (RGBImage rgb : keys(_examples))
      examples.add(nu(Example.class, +rgb, x := _examples.get(rgb)));
      
    for (Example e : examples)
      print(rgbAverageBrightness(e.col()));
  }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

-
Snippet ID: #1006434
Snippet name: Windows XP: Find Taskbar On the Left [dev.]
Eternal ID of this version: #1006434/1
Text MD5: a005393937cd45fd1cba8d57eff1651a
Transpilation MD5: e1ba9d0f97420c0458c946e7385abd3d
Author: stefan
Category: javax / ocr
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-01-02 01:10:54
Source code size: 602 bytes / 31 lines
Pitched / IR pitched: No / No
Views / Downloads: 615 / 724
Referenced in: