svoid showImageWithRecognizedTexts_makeTeachable(final ImageSurface is, final L<RecognizedText> lines, final File outFile) { onImageSurfaceHighlightChange(is, voidfunc(Rect r) { RecognizedText rec = findByField(lines, +r); setToolTip(is, rec == null ? null : str(rec.text)); }); imageSurfacePopupMenuWhenHighlighted_top(is, voidfunc(JPopupMenu menu, final Rect r) { addPopupMenuItem(menu, "OK", r { RecognizedText rec = findByField(lines, +r); appendToTextFile_uniq(outFile, struct(ll(rec.text!, rec.r))); }); addSeparator(menu); }); }
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: | #1015393 |
Snippet name: | showImageWithRecognizedTexts_makeTeachable (old, see showImageWithRecognizedTexts_makeTeachable2) |
Eternal ID of this version: | #1015393/3 |
Text MD5: | 09b74baef304eb8870a7172c3f52e281 |
Author: | stefan |
Category: | javax / imaging / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-11-20 22:27:53 |
Source code size: | 600 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 409 / 441 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1015397 - showImageWithRecognizedTexts_makeTeachable2 |