static L<Rect> ocr_wideBlack_vsplit(RGBImage rgb) {
int w = rgb.w(), h = rgb.h();
*float[h] data;
for y to h:
data[y] = l_wideBlack(rgb, w/2, y);
float threshold = max(data)/2;
*bool[h] split;
for y to h:
split[y] = data[y] >= threshold;
ret ocr_vsplit(rgb, split);
}
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: | #1006391 |
| Snippet name: | ocr_wideBlack_vsplit |
| Eternal ID of this version: | #1006391/1 |
| Text MD5: | d4d2557d074d1aad899c9d2118a1a1f3 |
| Author: | stefan |
| Category: | javax / ocr |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-12-29 23:52:02 |
| Source code size: | 301 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 966 / 946 |
| Referenced in: | #1006392 - ocr_highBlack_hsplit #1006654 - Standard functions list 2 (LIVE, continuation of #761) |