Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1019182 // ai_saveMarkedFace

JavaX fragment (include)

1  
svoid ai_saveMarkedFace(BufferedImage img, Rect r) {
2  
  File f = putImageInDirectory_jpeg(img, ai_markedFacesDir());
3  
  setFileInfoField(f, "Faces", r != null ? 1 : 0);
4  
  setFileInfoField(f, "Face position", structOrNull(r));
5  
  infoBox("Marked face saved");
6  
}

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: #1019182
Snippet name: ai_saveMarkedFace
Eternal ID of this version: #1019182/5
Text MD5: 1957dea68350dbc84104125b23dbd97a
Author: stefan
Category: javax / image recognition
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-05-05 17:58:16
Source code size: 262 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 359 / 399
Version history: 4 change(s)
Referenced in: [show references]