1 | static void analyzeGrabbedImage(GrabbedImage gi, SimpleRecognizer sr) { |
2 | if (gi.visualizedSplit == null) { |
3 | L<Rect> rects = horizontalAutoSplit2ThenAutoCrop(gi.image); |
4 | gi.visualizedSplit = new BWImage(mergeImagePartsHorizontally(gi.image.toRGB(), rects)); |
5 | for (Rect r : rects) { |
6 | BWImage cImg = gi.image.clip(r); |
7 | gi.rects.add(r); |
8 | gi.characters.add(cImg); |
9 | gi.characterMD5s.add(md5OfBWImage(cImg)); |
10 | } |
11 | } |
12 | |
13 | gi.groupedRecognition = sr.recognizeGrouped(gi.image); |
14 | gi.recognition = ocr_unescape(ocr_joinGroups(gi.groupedRecognition)); |
15 | } |
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: | #1015396 |
Snippet name: | analyzeGrabbedImage |
Eternal ID of this version: | #1015396/2 |
Text MD5: | b00f310f06375530fd88819dc9eea9b7 |
Author: | stefan |
Category: | javax / imaging / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-13 16:51:05 |
Source code size: | 589 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 351 / 392 |
Version history: | 1 change(s) |
Referenced in: | [show references] |