1 | static Best<F1<RGBImage, RectAndState>> video_scoreRectAndState_step(Best<F1<RGBImage, RectAndState>> best, L<RGBImageRectAndState> images, F1<RGBImage, RectAndState> recognizer, O... _) { |
2 | double tolerance = first(images).image.getWidth()/2.0; |
3 | new Scorer scorer; |
4 | for (RGBImageRectAndState i : images) |
5 | video_scoreRectAndState(scorer, i.rect, i.state, recognizer.get(i.image), tolerance); |
6 | if (optPar(_, print := true)) |
7 | best.putAndPrintIfNewBest(recognizer, scorer!); |
8 | else |
9 | best.put(recognizer, scorer!); |
10 | ret best; |
11 | } |
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: | 265 / 309 |
Referenced in: | [show references] |