1 | // g = grid size - typical values are 3 or 4 |
2 | static L<Rect> autoSegment_blackBG(BWImage img, int g) { |
3 | new AutoSegmenter as; |
4 | as.blackBG = true; |
5 | as.g = g; |
6 | as.go(img); |
7 | ret as.clips; |
8 | } |
9 | |
10 | static L<Rect> autoSegment_blackBG(BWImage img) { |
11 | ret autoSegment_blackBG(img, 3); |
12 | } |
13 | |
14 | static L<Rect> autoSegment_blackBG(BufferedImage img) { |
15 | ret autoSegment_blackBG(new BWImage(img)); |
16 | } |
Began life as a copy of #1005842
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: | #1006556 |
Snippet name: | autoSegment_blackBG - autoSegment optimized for black backgrounds |
Eternal ID of this version: | #1006556/1 |
Text MD5: | 9140afb19c3079ef389bed4ce7f75087 |
Author: | stefan |
Category: | javax / ocr |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-01-16 12:33:15 |
Source code size: | 397 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 538 / 533 |
Referenced in: | [show references] |