Uses 3874K of libraries. Click here for Pure Java version (7939L/56K/195K).
!7 static ScreenLens lens; static volatile L<Rect> segments; static BufferedImage imageForSegments; static int zoom = 3; // can also choose 2 p-substance { lens = new ScreenLens; lens.w = lens.h = 100; lens.postProcess = func(BufferedImage img) { //BWImage bw = bwImageTo2Bit(new BWImage(img), 0.5f); BWImage bw = bwResizeSmooth(new BWImage(img), img.getWidth()*zoom); img = bw.getBufferedImage(); segments = autoSegment(bw, 3); imageForSegments = img; drawBoxes(img, rectsToRectangles(segments), Color.red, 0.8f); ret img; }; lens.start(); }
Began life as a copy of #1006558
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: | #1007158 |
Snippet name: | Screen Lens with nanoAutoSegment [WORKS] |
Eternal ID of this version: | #1007158/6 |
Text MD5: | 02ea508befec2d9f0132050968c31f2b |
Transpilation MD5: | 433407d02e601f926ce3da2d37b3236b |
Author: | stefan |
Category: | javax / gui / ocr |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-06 00:55:51 |
Source code size: | 602 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 468 / 583 |
Version history: | 5 change(s) |
Referenced in: | #1010192 - Screen Lens with fhSegment [OK] |