Download Jar. Uses 3874K of libraries. Click here for Pure Java version (10762L/75K).
1 | !7 |
2 | |
3 | p-subst { |
4 | final RGBImage img = shootScreenBW().toRGB(); |
5 | final L<Rect> rects = autoSegment(img); |
6 | final ImageSurface is = showImageWithSelections(img, rects); |
7 | final Var<Rect> highlighted = showImageWithSelections_highlighted; |
8 | is.specialPurposed = true; |
9 | |
10 | componentPopupMenu(is, voidfunc(JPopupMenu menu) { |
11 | //Pt p = is.pointFromEvent(componentPopupMenu_mouseEvent!); |
12 | Rect r = highlighted!; |
13 | if (r != null) { |
14 | final RGBImage clip = img.clip(r); |
15 | fS md5 = rgbMD5(clip); |
16 | addMenuItem(menu, "Comment... [MD5: " + md5 + "]", r { |
17 | SS comments = thingsOnScreenDefinitions(); |
18 | final JTextField tf = jtextfield(comments.get(md5)); |
19 | showFormTitled("Comment image " + md5, |
20 | "Image", new ImageChooser(clip), |
21 | "Comment", tf, |
22 | r { |
23 | S text = getTextTrim(tf); |
24 | addThingOnScreenDefinition(md5, text); |
25 | }); |
26 | }); |
27 | } |
28 | }); |
29 | } |
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: | #1010714 |
Snippet name: | Auto-segment current screen, allow comments [OK] |
Eternal ID of this version: | #1010714/11 |
Text MD5: | 892f3728bb9eb99b02a9d2c69ad76ed7 |
Transpilation MD5: | 8246bf7b7eb4d35cd385d819123c691b |
Author: | stefan |
Category: | javax / ocr |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-10 20:32:06 |
Source code size: | 963 bytes / 29 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 597 / 1213 |
Version history: | 10 change(s) |
Referenced in: | [show references] |