static int nanoAutoSegment_g = 3; static int nanoAutoSegment_zoom = 2; static L<Rect> nanoAutoSegment(BWImage img) { new AutoSegmenter as; int zoom = nanoAutoSegment_zoom; BWImage zoomedImg = bwResizeSmooth(img, img.w()*zoom, img.h()*zoom); as.g = nanoAutoSegment_g; as.go(zoomedImg); ret scaleRects(as.clips, 1.0/zoom); } static L<Rect> nanoAutoSegment(BufferedImage img) { ret nanoAutoSegment(new BWImage(img)); } static L<Rect> nanoAutoSegment(RGBImage img) { ret nanoAutoSegment(new BWImage(img)); }
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: | #1007156 |
| Snippet name: | nanoAutoSegment - zoom, then auto-segment |
| Eternal ID of this version: | #1007156/1 |
| Text MD5: | a3d020914f92b8bdeb0c8d22db72847d |
| Author: | stefan |
| Category: | javax / ocr |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-03-08 16:03:42 |
| Source code size: | 540 bytes / 19 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 619 / 657 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |