1 | get("#496") -- triangleness |
2 | get("#495") -- docrop2 |
3 | |
4 | function calc() |
5 | return triangleness(docrop2(lastimg1)) > triangleness(docrop2(lastimg2)) |
6 | end |
7 | |
8 | return function() |
9 | if mod == nil and solution then |
10 | mod = calc() == solution |
11 | end |
12 | lastimg1, lastimg2 = img1, img2 |
13 | return calc() == mod |
14 | end |
test run test run with input download show line numbers
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #498 |
Snippet name: | Triangles vs something else distinguisher |
Eternal ID of this version: | #498/1 |
Text MD5: | 0447a36623a725860fbd20e04438d3a4 |
Author: | stefan |
Category: | image recognition |
Type: | Lua code - Image distinction (learner) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-03-09 00:11:05 |
Source code size: | 308 bytes / 14 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 593 / 166 |
Referenced in: | [show references] |