Libraryless. Click here for Pure Java version (4363L/29K/98K).
1 | !752 |
2 | |
3 | p { |
4 | BWImage img = shootScreenBW(); |
5 | int g = 3; |
6 | L<Rect> clips = autoSegment(img, g); |
7 | new L<Rect> chars; |
8 | for (Rect r : clips) |
9 | for (Rect c : horizontalAutoSplit2(img.clip(r))) |
10 | chars.add(translateRect(c, r.x, r.y)); |
11 | |
12 | setFrameTitle("g = " + g, showImageWithSelections(img.getBufferedImage(), chars)); |
13 | } |
Began life as a copy of #1005841
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: | #1005845 |
Snippet name: | Try auto-finding characters |
Eternal ID of this version: | #1005845/1 |
Text MD5: | 223926a9fc2cbf6e65d01b2114be98bf |
Transpilation MD5: | b5277b80d5f275fc963d6608df0b7ff8 |
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 18:03:00 |
Source code size: | 342 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 482 / 645 |
Referenced in: | [show references] |