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

25
LINES

< > BotCompany Repo | #1005698 // continuousFind

JavaX fragment (include)

1  
// requires #1005686 (PIF Classes v2)
2  
3  
static L<Found> continuousFind_step(L<Clip> clips) {
4  
  ret continuousFind_step(clips, shootScreen2());
5  
}
6  
7  
// creates TransientScreenshot and Found objects
8  
static L<Found> continuousFind_step(L<Clip> clips, BufferedImage screenshot) {
9  
  ret continuousFind_step(clips, screenshot, 1, true);
10  
}
11  
12  
static L<Found> continuousFind_step(L<Clip> clips, BufferedImage screenshot, int maxTotal, bool fullSearch) {
13  
  TransientScreenshot t = //unlisted(TransientScreenshot, screenshot);
14  
    new TransientScreenshot(screenshot);
15  
  try {
16  
    ImageFinder finder = new ImageFinder(ll(t/Screenshot), clips);
17  
    finder.maxTotal = maxTotal;
18  
    finder.fullSearch = fullSearch;
19  
    finder.run();
20  
  } finally {
21  
    t.disposeImage();
22  
  }
23  
  print("#found = " + countConcepts(Found));
24  
  ret findBackRefs(Found, t);
25  
}

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: 627 / 652
Referenced in: [show references]