Download Jar. Libraryless. Click here for Pure Java version (11580L/83K).
1 | !7 |
2 | |
3 | static int width = 8; |
4 | |
5 | p-exp { |
6 | new L<BufferedImage> images; |
7 | for (File f : listImageFiles(ai_markedFacesDir())) { |
8 | BufferedImage img = loadImage2(f); |
9 | Rect face = unstruct(getFileInfoField(f, "Face position")); |
10 | if (face == null) continue; |
11 | BufferedImage img2 = scaleImageToWidth(img, width); |
12 | Rect face2 = rescaleRect_imageToImage(face, img, img2); |
13 | BufferedImage img3 = scaleImage_noSmooth(img2, 128.0/img2.getWidth()); |
14 | Rect face3 = rescaleRect_imageToImage(face2, img2, img3); |
15 | drawRect(img3, face3, Color.white); |
16 | images.add(img3); |
17 | } |
18 | showImage(mergeBufferedImagesVertically(images)); |
19 | } |
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019193 |
Snippet name: | Show Marked Faces Pixelated [OK] |
Eternal ID of this version: | #1019193/4 |
Text MD5: | 53c0eec30b9f3ef3a0f69e85af666a17 |
Transpilation MD5: | 3a253e0dbed8262339915ac9cfc95206 |
Author: | stefan |
Category: | javax / image recognition |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-27 14:46:22 |
Source code size: | 646 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 518 / 1051 |
Version history: | 3 change(s) |
Referenced in: | [show references] |