static RGBImage ocr_explodedView1(RGBImage rgb) { ocr_explodedView1_init(); new L<RGBImage> images; for (Rect r : ocr_wideBlack_vsplit(rgb)) { RGBImage line = rgb.clip(r); new L<RGBImage> lineImages; for (Rect r2 : ocr_highBlack_hsplit(line)) { RGBImage cell = line.clip(r2); if (rgbTall(cell, 2)) lineImages.add(mergeImagePartsVertically(cell, ocr_wideBlack_vsplit(cell))); else lineImages.add(cell); } images.add(mergeImagesHorizontally(lineImages)); } ret mergeImagesVertically(images; } svoid ocr_explodedView1_init() { blackHigh_maxBrightness = wideBlack_maxBrightness = 0.12f; }
Began life as a copy of #1006389
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: | #1006395 |
Snippet name: | ocr_explodedView1 |
Eternal ID of this version: | #1006395/1 |
Text MD5: | a183d437551d8d495970ac669014b7fa |
Author: | stefan |
Category: | javax / ocr |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-01-01 17:19:22 |
Source code size: | 673 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 565 / 562 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |