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

23
LINES

< > BotCompany Repo | #1015110 // Gather facts from things on screen [OK]

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

Download Jar. Uses 3874K of libraries. Click here for Pure Java version (13865L/97K).

1  
!7
2  
3  
static double interval = 4.0;
4  
static Set<S> lastFacts;
5  
static new LatestAppearance<S> factAppearance;
6  
7  
p-experiment-tt {
8  
  autoRestart();
9  
  startBotHere("Screen Segmenter.", #1015121);
10  
  
11  
  repeat with sleep interval {
12  
    long time = sysNow();
13  
    SS map = mechMap("Thing on screen => Fact");
14  
    Set<S> factsSet = lookupAllAsCISet(map, thingsOnScreen2());
15  
    L<S> factsList = factAppearance.recordAndSort(factsSet);
16  
    S facts = lines(factsList);
17  
    if (neq(factsSet, lastFacts))
18  
      printWithAsciiHeading("FACTS", or2(facts, "-"));
19  
    lastFacts = factsSet;
20  
    //done2_always(time, localDateWithSeconds() + ": Found: " + list);
21  
    consoleTitle(trim(l(factsList) + " " + first(factsList)));
22  
  }
23  
}

Author comment

Began life as a copy of #1010713

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: #1015110
Snippet name: Gather facts from things on screen [OK]
Eternal ID of this version: #1015110/10
Text MD5: a5e2a9cd1e5dd779e205c921955b5d7e
Transpilation MD5: 93a70e2e1de356ebf816ad159061db23
Author: stefan
Category: javax / ocr
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-08 15:29:21
Source code size: 731 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 403 / 1071
Version history: 9 change(s)
Referenced in: [show references]