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

13
LINES

< > BotCompany Repo | #1019312 // trainFaceFinderX1

JavaX fragment (include)

1  
static F1<RGBImage, Rect> trainFaceFinderX1() {
2  
  new Best<F1<RGBImage, Rect>> best;
3  
  for (int width = 8; width <= 32; width++) {
4  
    L<RGBImageAndRect> images = markedFaces_scaledToWidth(width);
5  
    int h = first(images).image.w();
6  
    for (int y1 = 0; y1 < h; y1++)
7  
     for (int y2 = y1+1; y2 <= h; y2++)
8  
      for (int deltaX1 = -3; deltaX1 <= 0; deltaX1++)
9  
       for (int deltaX2 = deltaX1+1; deltaX2 <= 3; deltaX2++)
10  
        video_scoreRect_x_step(best, images, nu(FaceFinderX1, +y1, +y2, +deltaX1, +deltaX2, +width));
11  
  }
12  
  ret best!;
13  
}

Author comment

Began life as a copy of #1019204

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: #1019312
Snippet name: trainFaceFinderX1
Eternal ID of this version: #1019312/3
Text MD5: a5100203c5ada6db32701ca75a7ace44
Author: stefan
Category: javax / image recognition
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-30 16:58:10
Source code size: 557 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 324 / 342
Version history: 2 change(s)
Referenced in: [show references]