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

14
LINES

< > BotCompany Repo | #498 // Triangles vs something else distinguisher

Lua code - Image distinction (learner)

get("#496") -- triangleness
get("#495") -- docrop2

function calc()
  return triangleness(docrop2(lastimg1)) > triangleness(docrop2(lastimg2))
end

return function()
  if mod == nil and solution then
    mod = calc() == solution
  end
  lastimg1, lastimg2 = img1, img2
  return calc() == mod
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: 532 / 144
Referenced in: [show references]