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

11
LINES

< > BotCompany Repo | #451 // getIcons (include, grid size=3)

Lua code

function getIcons()
  hashes = otherresults["#442"] or error("Need result of #442, please recalc")
  
  j, icons = nil, {}
  while true do
    i, j, r, hash = string.find(hashes, "(%d+, %d+, %d+, %d+) %-> ([a-f0-9]+)", j)
    if i == nil then break end
    
    icons[hash] = r
  end
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: #451
Snippet name: getIcons (include, grid size=3)
Eternal ID of this version: #451/1
Text MD5: 959adb88a043d8129268fb2a260f5c8e
Author: stefan
Category: image recognition
Type: Lua code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-02-12 23:53:32
Source code size: 297 bytes / 11 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 845 / 208
Referenced in: #447 - Java recognizer pre-experiment
#452 - Java grid locator (include)
#3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)