1 | static int autoSegment_g = 3; |
2 | |
3 | // g = grid size - typical values are 3 or 4 |
4 | static L<Rect> autoSegment(BWImage img, int g) { |
5 | new AutoSegmenter as; |
6 | as.g = g; |
7 | ret as.go(img); |
8 | } |
9 | |
10 | static L<Rect> autoSegment(BWImage img) { |
11 | ret autoSegment(img, autoSegment_g); |
12 | } |
13 | |
14 | static L<Rect> autoSegment(BufferedImage img) { |
15 | ret autoSegment(new BWImage(img)); |
16 | } |
17 | |
18 | static L<Rect> autoSegment(BufferedImage img, int g) { |
19 | ret autoSegment(new BWImage(img), g); |
20 | } |
21 | |
22 | static L<Rect> autoSegment(RGBImage img) { |
23 | ret autoSegment(new BWImage(img)); |
24 | } |
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, iveijnkanddl, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005842 |
Snippet name: | autoSegment |
Eternal ID of this version: | #1005842/5 |
Text MD5: | 9a814a50fdba21304da2fa9eb8db8638 |
Author: | stefan |
Category: | javax / ocr |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-14 23:39:33 |
Source code size: | 556 bytes / 24 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 640 / 656 |
Version history: | 4 change(s) |
Referenced in: | [show references] |