static void analyzeGrabbedImage(GrabbedImage gi, SimpleRecognizer sr) { if (gi.visualizedSplit == null) { L<Rect> rects = horizontalAutoSplit2ThenAutoCrop(gi.image); gi.visualizedSplit = new BWImage(mergeImagePartsHorizontally(gi.image.toRGB(), rects)); for (Rect r : rects) { BWImage cImg = gi.image.clip(r); gi.rects.add(r); gi.characters.add(cImg); gi.characterMD5s.add(md5OfBWImage(cImg)); } } gi.groupedRecognition = sr.recognizeGrouped(gi.image); gi.recognition = ocr_unescape(ocr_joinGroups(gi.groupedRecognition)); }
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: | 564 / 616 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |