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

10
LINES

< > BotCompany Repo | #1006417 // ocr_findClosestThingTo - look for something similar to an image on screen

JavaX fragment (include)

svoid ocr_findClosestThingTo(final S imageID) {
  new ShootLoop {
    void recognize {
      FoundImg fi = bwImageSearch_best(screen, loadBWImage_cached(imageID), 0f);
      setSelection(fi);
      if (fi != null)
        quickShowZoomedImage(clipBufferedImage(originalScreen, fi.r));
    }
  }.run/*WithThumbnails*/();
}

Author comment

Began life as a copy of #1006413

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: #1006417
Snippet name: ocr_findClosestThingTo - look for something similar to an image on screen
Eternal ID of this version: #1006417/1
Text MD5: e0aca805c0256ee313428f454dfa00be
Author: stefan
Category: javax / ocr
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-01-01 19:42:25
Source code size: 330 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 497 / 513
Referenced in: [show references]