Libraryless. Click here for Pure Java version (4354L/29K/97K).
1 | !752 |
2 | |
3 | p { |
4 | BWImage img = shootScreenBW(); |
5 | int g = 3; |
6 | AutoSegmenter as = new AutoSegmenter(3); |
7 | as.diag = true; |
8 | L<Rect> clips = as.go(img); |
9 | new L<Rect> chars; |
10 | for (Rect r : clips) |
11 | for (Rect c : horizontalAutoSplit2(img.clip(r))) |
12 | chars.add(translateRect(c, r.x, r.y)); |
13 | |
14 | setFrameTitle("g = " + g, showImageWithSelections(img.getBufferedImage(), chars)); |
15 | showBWImage("Grid", as.visualizeGrid()); |
16 | } |
Began life as a copy of #1005845
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: | #1005847 |
Snippet name: | Try auto-finding characters, diag = true, show grid |
Eternal ID of this version: | #1005847/1 |
Text MD5: | f290268c322b064fc98459870bd5cb5c |
Transpilation MD5: | 62157b2ca385ebd43047d4fc1ef003ab |
Author: | stefan |
Category: | javax / ocr |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-12-11 04:41:08 |
Source code size: | 440 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 519 / 676 |
Referenced in: | [show references] |