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

11
LINES

< > BotCompany Repo | #1019557 // video_scoreRectAndState_step

JavaX fragment (include)

static Best<F1<RGBImage, RectAndState>> video_scoreRectAndState_step(Best<F1<RGBImage, RectAndState>> best, L<RGBImageRectAndState> images, F1<RGBImage, RectAndState> recognizer, O... _) {
  double tolerance = first(images).image.getWidth()/2.0;
  new Scorer scorer;
  for (RGBImageRectAndState i : images)
    video_scoreRectAndState(scorer, i.rect, i.state, recognizer.get(i.image), tolerance);
  if (optPar(_, print := true))
    best.putAndPrintIfNewBest(recognizer, scorer!);
  else
    best.put(recognizer, scorer!);
  ret best;
}

Author comment

Began life as a copy of #1019529

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: #1019557
Snippet name: video_scoreRectAndState_step
Eternal ID of this version: #1019557/1
Text MD5: 53a38b034e4c46f36e29317669f59c03
Author: stefan
Category: javax / image recognition
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-12 00:40:17
Source code size: 546 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 263 / 306
Referenced in: [show references]