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

25
LINES

< > BotCompany Repo | #1005698 // continuousFind

JavaX fragment (include)

// requires #1005686 (PIF Classes v2)

static L<Found> continuousFind_step(L<Clip> clips) {
  ret continuousFind_step(clips, shootScreen2());
}

// creates TransientScreenshot and Found objects
static L<Found> continuousFind_step(L<Clip> clips, BufferedImage screenshot) {
  ret continuousFind_step(clips, screenshot, 1, true);
}

static L<Found> continuousFind_step(L<Clip> clips, BufferedImage screenshot, int maxTotal, bool fullSearch) {
  TransientScreenshot t = //unlisted(TransientScreenshot, screenshot);
    new TransientScreenshot(screenshot);
  try {
    ImageFinder finder = new ImageFinder(ll(t/Screenshot), clips);
    finder.maxTotal = maxTotal;
    finder.fullSearch = fullSearch;
    finder.run();
  } finally {
    t.disposeImage();
  }
  print("#found = " + countConcepts(Found));
  ret findBackRefs(Found, t);
}

Author comment

Began life as a copy of #1005685

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: #1005698
Snippet name: continuousFind
Eternal ID of this version: #1005698/1
Text MD5: 5679488f29056046555ac216429505be
Author: stefan
Category: javax / ocr
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-05 22:43:20
Source code size: 854 bytes / 25 lines
Pitched / IR pitched: No / No
Views / Downloads: 626 / 651
Referenced in: [show references]