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

27
LINES

< > BotCompany Repo | #1005685 // Test ImageFinder on Start Button [dev.]

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

Libraryless. Click here for Pure Java version (5496L/35K/119K).

!752

concepts.

!include #1005686 // PIF Classes v2

p {
  loadConceptsFrom("#1005676");
  
  //new ImageFinder(list(Screenshot), list(Clip)).run();
  print("#found = " + countConcepts(Found));
  
  while licensed {
    TransientScreenshot t = unlisted(TransientScreenshot, shootScreen2());
    time {
      setConsoleIcon("#1005541");
      ImageFinder finder = new ImageFinder(ll(t/Screenshot), list(Clip));
      finder.maxTotal = 1; // one clip found is enough
      finder.run();
      setConsoleIcon(null);
    }
    t.disposeImage();
    print("#found = " + countConcepts(Found));
    setConsoleTitle((hasBackRef(Found, t) ? "FOUND" : "NOT FOUND") + " - " + getProgramTitle());
    sleepSeconds(5);
  }
}

Author comment

Began life as a copy of #1005676

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005685
Snippet name: Test ImageFinder on Start Button [dev.]
Eternal ID of this version: #1005685/1
Text MD5: fb65599f472c7da908e5b2f0d5af0577
Transpilation MD5: d830c476b07d2a8a1fd2af93f08bf395
Author: stefan
Category: javax / ocr
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-03 21:48:27
Source code size: 738 bytes / 27 lines
Pitched / IR pitched: No / No
Views / Downloads: 486 / 698
Referenced in: [show references]