1 | svoid saveScreenClip(BWImage img) { |
2 | S md5 = ocrMD5OfBWImage(img); |
3 | File f = screenClipFileForMD5(md5); |
4 | if (!f.exists()) { |
5 | BufferedImage bufferedImage = img.getBufferedImage(); |
6 | assertBWImagesIdentical(img, new BWImage(bufferedImage)); |
7 | // verify 1 |
8 | //assertEquals("BufferedImage md5", md5, ocrMD5OfBufferedImage(bufferedImage)); |
9 | savePNG(f, bufferedImage); |
10 | //bufferedImage = loadBufferedImage(f); |
11 | // verify 2 |
12 | //assertEquals("loaded", md5, ocrMD5OfBufferedImage(bufferedImage)); |
13 | } |
14 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1015223 |
Snippet name: | saveScreenClip |
Eternal ID of this version: | #1015223/4 |
Text MD5: | c645422a177841af95083ac62157d64f |
Author: | stefan |
Category: | javax / ocr |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-10 23:45:23 |
Source code size: | 529 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 386 / 424 |
Version history: | 3 change(s) |
Referenced in: | [show references] |