1 | static <Recognizer extends F1<RGBImage, Rect>> Best<Recognizer> video_scoreRect_step(Best<Recognizer> best, L<RGBImageAndRect> images, Recognizer recognizer, O... _) { |
2 | double tolerance = optPar tolerance(_, first(images).image.getWidth()/2.0); |
3 | new Scorer scorer; |
4 | for (RGBImageAndRect i : images) |
5 | video_scoreRect(scorer, i.rect, 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 #1019216
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: | #1019529 |
Snippet name: | video_scoreRect_step |
Eternal ID of this version: | #1019529/5 |
Text MD5: | 81777c87047e4a6d6b785d28e0479e7b |
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 19:53:56 |
Source code size: | 524 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 341 / 371 |
Version history: | 4 change(s) |
Referenced in: | [show references] |