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

32
LINES

< > BotCompany Repo | #1005530 // PIF [Persistent Image Finder] Classes

JavaX fragment (include)

concept Screenshot {
  *() {} // for persistance
  *(BufferedImage img) {
    savePNG(pngFile(), img);
  }
  
  File pngFile() {
    ret prepareProgramFile(_programID(), "screenshot" + id + ".png");
  }
}

Clip > MarkedClip {
  Screenshot screenshot; // todo: turn into Ref
  Rect positionInScreenshot;
}

concept Clip {
  long originalID; // ID in #1005389
  BWImage img;
  S description;
}

concept Found {
  new Ref<Screenshot> screenshot;
  new Ref<Clip> clip;
  FoundImg fi;
}

concept FullySearched {
  new Ref<Screenshot> screenshot;
  new Ref<Clip> clip;
}

Author comment

Began life as a copy of #1005522

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005530
Snippet name: PIF [Persistent Image Finder] Classes
Eternal ID of this version: #1005530/1
Text MD5: 2dc11a2cfcb379c8c3c319aff93f4b30
Author: stefan
Category: javax / ocr
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-03 15:03:42
Source code size: 595 bytes / 32 lines
Pitched / IR pitched: No / No
Views / Downloads: 467 / 1283
Referenced in: #1005522 - Persistent Image Finder [WORKS] - makes screenshot and searches for all known clips in them
#1005531 - PIF Reasoning 1 [Clustering, works, but might not be accurate if not every clip was searched in every screenshot]
#1005562 - PIF Reasoning 2 [Clip positions, WORKS]
#1005684 - class ImageFinder
#1005686 - PIF [Persistent Image Finder] Classes v2