Uses 19809K of libraries. Click here for Pure Java version (8658L/59K/208K).
!7 lib 1010061 // OpenIMAJ feature extraction (1.3.5) lib 1013703 // commons math lib 1009074 // trove import org.openimaj.image.segmentation.*; import org.openimaj.image.text.extraction.swt.*; import org.openimaj.image.pixel.*; static float sigma = 0.5f; static float k = 2500f / 255f; static int minSize = 20; static float scale = 1f; // scale image static int repetitions = 1; // Test HotSpot p-subst { hideConsole(); sleep(500); time "Make MBFImage" { BufferedImage screen = shootScreen2(); MBFImage image = readMBF(scaleImage(screen, scale)); } showConsole(); for (int i = 0; i < repetitions; i++) { time "Segment" { FImage monoImage = image.getBand(0); new SWTTextDetector segmenter; segmenter.analyseImage(monoImage); } if (i == 0) { L<org.openimaj.math.geometry.shape.Rectangle> rects = mapMethod('getRegularBoundingBox, segmenter.getLines()); showImageWithSelections(screen, openImajToRects(rects)); } } }
Began life as a copy of #1010064
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: | #1013701 |
Snippet name: | Test SWTTextDetector [OK, but bad results] |
Eternal ID of this version: | #1013701/10 |
Text MD5: | ef82752acc143ba527b1e221e3c4c700 |
Transpilation MD5: | 45947e2709d0cee958335668520c6a88 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-01-25 13:42:22 |
Source code size: | 1030 bytes / 38 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 458 / 601 |
Version history: | 9 change(s) |
Referenced in: | [show references] |