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

201
LINES

< > BotCompany Repo | #404 // Magic Wand + Hashes (column range, improving)

Lua code - Image recognition

get("#349") -- table functions
get("#380") -- hashImage
get("#121") -- compareTables
get("#348") -- bright and rgb

maxSize = {width=100, height=50}
minSize = {width=4, height=4}
threshold = 0.5
wandSize = 3 -- magic wand size

col1 = col1 or 10
col2 = col2 or img.width-10

local rectangles, _img

function cloneRectangle(r)
  return newRectangle(r.x, r.y, r.width, r.height)
end

function newRectangle(x, y, w, h)
  return {x=x, y=y, width=w, height=h}
end

function contains(r, x, y)
  return x >= r.x and y >= r.y and x < r.x+r.width and y < r.y+r.width
end

function nextX(x, y)
  for r, _ in pairs(rectangles) do
    pTests = pTests+1
    if contains(r, x, y) then
      return r.x+r.width
    end
  end
  return nil
end

pDuplicate, pNew, pSeen, pNotSeen, pTests = 0, 0, 0, 0, 0

-- returns rectangle
function magicWand(image, x, y)
  if image ~= _img then
    _img, rectangles = image, {}
  end
  local nx = nextX(x, y)
  if nx ~= nil then
    pSeen = pSeen+1
    return nil, nx
  end
  pNotSeen = pNotSeen+1
  local r = newRectangle(x, y, wandSize, wandSize)
  
  while true do
    local last = cloneRectangle(r)
    expandLeft(image, r)
    if tooLarge(r) then return nil end
    expandTop(image, r)
    if tooLarge(r) then return nil end
    expandRight(image, r)
    if tooLarge(r) then return nil end
    expandBottom(image, r)
    if tooLarge(r) then return nil end    
    if compareTables(last, r) then
      if r.width >= minSize.width and r.height >= minSize.width then
        if rectangles[r] then
          pDuplicate = pDuplicate+1
        else
          pNew = pNew+1
          rectangles[r] = true
        end
        return r
      else
        return nil
      end
    end
  end
end

function tooLarge(r)
  return maxSize ~= nil and (r.width > maxSize.width or r.height > maxSize.height)
end

function expandLeft(image, r)
  local newX = math.max(r.x - wandSize, 0)
  if newX == r.x then return end
  newX = searchFromLeft(image, newRectangle(newX, r.y, r.x-newX, r.height))
  r.width = r.width+r.x-newX
  r.x = newX
end

function searchFromLeft(image, r)
  for x = r.x, r.x+r.width-1 do
    if regionNotEmpty(image, newRectangle(x, r.y, 1, r.height)) then
      return x
    end
  end
  return r.x+r.width
end

function expandRight(image, r)
  local newX = math.min(r.x + r.width + wandSize, image.width)
  if newX == r.x+r.width then return end
  newX = searchFromRight(image, newRectangle(r.x+r.width, r.y, newX-(r.x+r.width), r.height))
  r.width = newX-r.x
end

function searchFromRight(image, r)
  for x = r.x+r.width-1, r.x, -1 do
    if regionNotEmpty(image, newRectangle(x, r.y, 1, r.height)) then
      return x+1
    end
  end
  return r.x
end

function expandTop(image, r)
  local newY = math.max(r.y - wandSize, 0)
  if newY == r.y then return end
  newY = searchFromTop(image, newRectangle(r.x, newY, r.width, r.y-newY))
  r.height = r.height+r.y-newY
  r.y = newY
end

function searchFromTop(image, r)
  for y = r.y, r.y+r.height-1 do
    if regionNotEmpty(image, newRectangle(r.x, y, r.width, 1)) then
      return y
    end
  end
  return r.y+r.height
end

function expandBottom(image, r)
  local newY = math.min(r.y + r.height + wandSize, image.height)
  if newY == r.y+r.height then return end
  newY = searchFromBottom(image, newRectangle(r.x, r.y + r.height, r.width, newY-(r.y+r.height)))
  r.height = newY-r.y
end

function searchFromBottom(image, r)
  for y = r.y+r.height-1, r.y, -1 do
    if regionNotEmpty(image, newRectangle(r.x, y, r.width, 1)) then
      return y+1
    end
  end
  return r.y
end

-- we're looking for dark pixels this time
function regionNotEmpty(image, r)
  --return image.clip(rectangle).anyPixelBrighterThan(threshold)
  for y=r.y, r.y+r.height-1 do
    for x=r.x, r.x+r.width-1 do
      if bright(rgb(image.getInt(x, y))) < threshold then
        return true
      end
    end
  end
  return false
end


function recttostring(r)
  return r.x..", "..r.y..", "..r.x+r.width..", "..r.y+r.height
end

function magicWandColumnRange(image, col1, col2)
  local allrects = {}

  for y = 0, image.height-1, 2 do
    for x = col1, col2, 2 do
      local r = magicWand(image, x, y)
      if r then
        allrects[recttostring(r)] = true
      end
    end
  end
  
  return allrects
end

allrects = magicWandColumnRange(img, col1, col2)

function stringtorect(s)
  local _, _, x1, y1, x2, y2 = string.find(s, "(%d+),%s*(%d+),%s*(%d+),%s*(%d+)")
  x1, y1, x2, y2 = tonumber(x1), tonumber(y1), tonumber(x2), tonumber(y2)
  return newRectangle(x1, y1, x2-x1, y2-y1)
end

result = {}
for s, _ in pairs(allrects) do
  r = stringtorect(s)
  cropped = {width=r.width, height=r.height,
    getInt = function(x, y) return img.getInt(x+r.x, y+r.y) end}
  hash = hashImage(cropped)
  table.insert(result, s.." -> "..hash)
end
result = table.concat(result, "|")
if result ~= '' then
  return "Magic Wand + hashes (wand size="..wandSize..", columns="..col1.."-"..col2.."): "..result
end

Author comment

Began life as a copy of #403

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

Image recognition results [IR DISABLED]

show nils
Image Result Result calculated
#1000119 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 102919 2016-08-08 03:40:57

[raw result]
[visualize]
#1000121 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 102919 2016-08-05 06:20:34

[raw result]
[visualize]
#1000199 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-08-04 19:21:34

[raw result]
[visualize]
#1000113 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-08-04 19:18:27

[raw result]
[visualize]
#1000146 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-08-04 05:15:26

[raw result]
[visualize]
#1000015 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 3455 2016-08-03 17:25:43

[raw result]
[visualize]
#1000072 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 12987 2016-08-03 01:34:12

[raw result]
[visualize]
#1000207 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 41623 2016-08-01 08:10:20

[raw result]
[visualize]
#488 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-08-01 07:29:05

[raw result]
[visualize]
#489 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-08-01 07:29:05

[raw result]
[visualize]
#1000219 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-08-01 07:23:38

[raw result]
[visualize]
#1000221 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-08-01 07:21:44

[raw result]
[visualize]
#1000217 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 135427 2016-08-01 07:20:03

[raw result]
[visualize]
#1000209 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 422627 2016-08-01 07:19:11

[raw result]
[visualize]
#1000210 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-08-01 07:06:26

[raw result]
[visualize]
#1000220 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 50183 2016-08-01 07:04:47

[raw result]
[visualize]
#1000198 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 360007 2016-08-01 06:39:07

[raw result]
[visualize]
#1000197 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-08-01 06:37:39

[raw result]
[visualize]
#1000196 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-08-01 06:36:01

[raw result]
[visualize]
#1000203 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 176407 2016-08-01 06:33:13

[raw result]
[visualize]
#1000201 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 90007 2016-08-01 06:31:12

[raw result]
[visualize]
#1000208 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 147463 2016-08-01 06:30:36

[raw result]
[visualize]
#1000211 Magic Wand + hashes (wand size=3, columns=10-210): 96, 16, 100, 26 -> 000895a3|98, 14, 116, 26 -> 00... 2016-08-01 06:29:49
Lua instructions: 162895k

[raw result]
[visualize]
#1000213 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 147463 2016-08-01 06:29:33

[raw result]
[visualize]
#1000214 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-08-01 06:28:41

[raw result]
[visualize]
#1000212 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-08-01 06:27:02

[raw result]
[visualize]
#1000216 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-08-01 06:25:11

[raw result]
[visualize]
#1000218 java.lang.OutOfMemoryError: Java heap space 2016-08-01 06:23:20

[raw result]
[visualize]
#1000195 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-08-01 04:29:14

[raw result]
[visualize]
#1000194 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-08-01 04:13:06

[raw result]
[visualize]
#1000189 Magic Wand + hashes (wand size=3, columns=10-439): 0, 0, 17, 7 -> 001f6e5f|20, 0, 37, 15 -> 001e1943... 2016-08-01 03:32:16
Lua instructions: 315965k

[raw result]
[visualize]
#1000187 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-08-01 03:07:59

[raw result]
[visualize]
#1000186 Magic Wand + hashes (wand size=3, columns=10-98): 0, 1, 53, 13 -> 00a1fcf6|54, 0, 108, 12 -> 0094886... 2016-08-01 03:04:16
Lua instructions: 376k

[raw result]
[visualize]
#1000185 Magic Wand + hashes (wand size=3, columns=10-38): 0, 0, 48, 10 -> 00c0f049 2016-08-01 03:04:14
Lua instructions: 52k

[raw result]
[visualize]
#1000184 Magic Wand + hashes (wand size=3, columns=10-38): 0, 0, 48, 13 -> 00030a6d 2016-08-01 02:54:47
Lua instructions: 61k

[raw result]
[visualize]
#1000183 Magic Wand + hashes (wand size=3, columns=10-35): 0, 0, 45, 12 -> 004aea5a 2016-08-01 02:54:47
Lua instructions: 55k

[raw result]
[visualize]
#1000182 Magic Wand + hashes (wand size=3, columns=10-53): 0, 0, 63, 12 -> 00d3e46d 2016-08-01 02:54:43
Lua instructions: 73k

[raw result]
[visualize]
#1000181 Magic Wand + hashes (wand size=3, columns=10-40): 0, 0, 50, 10 -> 00adb081 2016-08-01 02:54:26
Lua instructions: 55k

[raw result]
[visualize]
#1000180 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 42007 2016-08-01 02:54:12

[raw result]
[visualize]
#1000179 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-08-01 02:52:46

[raw result]
[visualize]
#1000178 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-08-01 02:36:57

[raw result]
[visualize]
#1000177 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 55007 2016-08-01 02:20:41

[raw result]
[visualize]
#1000176 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-08-01 02:17:09

[raw result]
[visualize]
#1000175 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 143863 2016-08-01 02:02:40

[raw result]
[visualize]
#1000172 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 37345 2016-08-01 01:55:56

[raw result]
[visualize]
#1000173 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 37345 2016-08-01 01:55:31

[raw result]
[visualize]
#1000171 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 30443 2016-08-01 01:48:32

[raw result]
[visualize]
#1000170 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-08-01 01:46:03

[raw result]
[visualize]
#1000169 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 61497 2016-08-01 01:26:27

[raw result]
[visualize]
#1000168 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 4107 2016-08-01 01:16:00

[raw result]
[visualize]
#1000167 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 25496 2016-08-01 01:09:25

[raw result]
[visualize]
#1000166 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 25496 2016-08-01 01:07:49

[raw result]
[visualize]
#1000164 Magic Wand + hashes (wand size=3, columns=10-49): 0, 0, 59, 21 -> 01d477b6 2016-08-01 01:04:01
Lua instructions: 99k

[raw result]
[visualize]
#1000163 Magic Wand + hashes (wand size=3, columns=10-332): 210, 56, 242, 63 -> 004887d6|213, 56, 245, 63 -> ... 2016-07-31 23:39:52
Lua instructions: 46552k

[raw result]
[visualize]
#1000162 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 23:21:17

[raw result]
[visualize]
#1000161 Magic Wand + hashes (wand size=3, columns=10-71): 11, 36, 23, 46 -> 000806c8|42, 36, 53, 47 -> 0028e... 2016-07-31 23:19:12
Lua instructions: 29682k

[raw result]
[visualize]
#1000160 Magic Wand + hashes (wand size=3, columns=10-71): 8, 665, 13, 681 -> 001b8124|11, 36, 23, 46 -> 0020... 2016-07-31 23:17:02
Lua instructions: 157854k

[raw result]
[visualize]
#1000158 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 3187 2016-07-31 23:11:59

[raw result]
[visualize]
#1000157 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-07-31 23:00:11

[raw result]
[visualize]
#1000156 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 61292 2016-07-31 22:38:08

[raw result]
[visualize]
#1000149 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 85125 2016-07-31 22:34:18

[raw result]
[visualize]
#1000150 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 137877 2016-07-31 22:33:53

[raw result]
[visualize]
#1000151 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 91447 2016-07-31 22:33:22

[raw result]
[visualize]
#1000154 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 141348 2016-07-31 22:32:37

[raw result]
[visualize]
#1000155 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 96019 2016-07-31 22:31:57

[raw result]
[visualize]
#1000152 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 137877 2016-07-31 22:26:38

[raw result]
[visualize]
#1000153 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 91447 2016-07-31 22:26:07

[raw result]
[visualize]
#1000148 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 83113 2016-07-31 22:16:23

[raw result]
[visualize]
#1000147 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 41299 2016-07-31 22:12:04

[raw result]
[visualize]
#1000144 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-07-31 21:57:25

[raw result]
[visualize]
#1000145 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-07-31 21:55:10

[raw result]
[visualize]
#1000143 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-07-31 21:33:48

[raw result]
[visualize]
#1000142 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-07-31 21:22:53

[raw result]
[visualize]
#1000137 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 419217 2016-07-31 21:07:52

[raw result]
[visualize]
#1000139 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 419217 2016-07-31 21:06:56

[raw result]
[visualize]
#1000140 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-07-31 21:05:32

[raw result]
[visualize]
#1000138 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 419217 2016-07-31 21:03:31

[raw result]
[visualize]
#1000141 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-07-31 21:02:33

[raw result]
[visualize]
#1000136 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 379721 2016-07-31 20:50:35

[raw result]
[visualize]
#1000132 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-07-31 20:43:29

[raw result]
[visualize]
#1000131 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-07-31 20:32:57

[raw result]
[visualize]
#1000130 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-07-31 20:25:30

[raw result]
[visualize]
#1000127 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-07-31 20:21:08

[raw result]
[visualize]
#1000126 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 261415 2016-07-31 20:13:57

[raw result]
[visualize]
#1000125 Magic Wand + hashes (wand size=3, columns=10-331): 41, 270, 53, 282 -> 003290b8|232, 272, 241, 277 -... 2016-07-31 20:10:47
Lua instructions: 393801k

[raw result]
[visualize]
#1000124 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-07-31 20:07:58

[raw result]
[visualize]
#1000123 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 156387 2016-07-31 20:03:48

[raw result]
[visualize]
#1000122 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 102919 2016-07-31 20:02:41

[raw result]
[visualize]
#419 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 20:02:18

[raw result]
[visualize]
#1000120 Magic Wand + hashes (wand size=3, columns=10-71): 0, 0, 81, 11 -> 01254317|0, 0, 47, 11 -> 00cfc842 2016-07-31 20:01:25
Lua instructions: 132k

[raw result]
[visualize]
#1000118 LuaError: #404:154 vm error: java.lang.ArrayIndexOutOfBoundsException: 102919 2016-07-31 20:00:55

[raw result]
[visualize]
#1000114 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-07-31 19:58:15

[raw result]
[visualize]
#1000116 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-07-31 19:56:33

[raw result]
[visualize]
#1000112 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:12

[raw result]
[visualize]
#1000038 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:11

[raw result]
[visualize]
#1000020 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:11

[raw result]
[visualize]
#1000035 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 19:50:11

[raw result]
[visualize]
#1000019 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:11

[raw result]
[visualize]
#1000034 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 19:50:10

[raw result]
[visualize]
#1000024 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:10

[raw result]
[visualize]
#100 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 19:50:10

[raw result]
[visualize]
#1000013 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 19:50:10

[raw result]
[visualize]
#309 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 19:50:10

[raw result]
[visualize]
#112 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 19:50:10

[raw result]
[visualize]
#1000003 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 19:50:10

[raw result]
[visualize]
#1000021 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:10

[raw result]
[visualize]
#1000041 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:10

[raw result]
[visualize]
#1000040 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:10

[raw result]
[visualize]
#1000039 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:10

[raw result]
[visualize]
#1000022 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:10

[raw result]
[visualize]
#1000018 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:10

[raw result]
[visualize]
#1000076 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:09

[raw result]
[visualize]
#84 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 19:50:09

[raw result]
[visualize]
#1000084 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:09

[raw result]
[visualize]
#1000079 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:09

[raw result]
[visualize]
#1000017 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 19:50:09

[raw result]
[visualize]
#1000083 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:09

[raw result]
[visualize]
#1000086 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:09

[raw result]
[visualize]
#1000097 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:09

[raw result]
[visualize]
#1000054 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:09

[raw result]
[visualize]
#1000010 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 19:50:09

[raw result]
[visualize]
#141 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 19:50:09

[raw result]
[visualize]
#1000027 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:09

[raw result]
[visualize]
#1000043 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:08

[raw result]
[visualize]
#1000109 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:08

[raw result]
[visualize]
#1000014 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:08

[raw result]
[visualize]
#1000056 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:08

[raw result]
[visualize]
#1000082 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:08

[raw result]
[visualize]
#1000062 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:08

[raw result]
[visualize]
#1000092 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:08

[raw result]
[visualize]
#1000093 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:08

[raw result]
[visualize]
#1000106 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:08

[raw result]
[visualize]
#1000087 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:08

[raw result]
[visualize]
#1000091 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:08

[raw result]
[visualize]
#1000088 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:08

[raw result]
[visualize]
#1000074 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:08

[raw result]
[visualize]
#1000081 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:08

[raw result]
[visualize]
#1000078 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:08

[raw result]
[visualize]
#1000105 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:08

[raw result]
[visualize]
#1000104 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:08

[raw result]
[visualize]
#183 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 19:50:08

[raw result]
[visualize]
#1000036 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:08

[raw result]
[visualize]
#1000055 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:08

[raw result]
[visualize]
#1000073 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:08

[raw result]
[visualize]
#1000042 java.lang.OutOfMemoryError: Java heap space 2016-07-31 19:50:07

[raw result]
[visualize]
#1000064 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:07

[raw result]
[visualize]
#1000063 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:07

[raw result]
[visualize]
#1000028 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:07

[raw result]
[visualize]
#1000075 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:07

[raw result]
[visualize]
#1000031 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:07

[raw result]
[visualize]
#145 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 19:50:07

[raw result]
[visualize]
#1000030 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:07

[raw result]
[visualize]
#85 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 19:50:07

[raw result]
[visualize]
#1000080 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:07

[raw result]
[visualize]
#1000045 java.lang.OutOfMemoryError: Java heap space 2016-07-31 19:50:06

[raw result]
[visualize]
#1000085 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:06

[raw result]
[visualize]
#1000102 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:06

[raw result]
[visualize]
#98 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 19:50:06

[raw result]
[visualize]
#1000061 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:06

[raw result]
[visualize]
#1000107 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:06

[raw result]
[visualize]
#1000090 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:06

[raw result]
[visualize]
#1000026 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:06

[raw result]
[visualize]
#1000029 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:06

[raw result]
[visualize]
#178 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 19:50:05

[raw result]
[visualize]
#1000052 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:05

[raw result]
[visualize]
#1000096 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:05

[raw result]
[visualize]
#1000100 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:05

[raw result]
[visualize]
#115 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 19:50:05

[raw result]
[visualize]
#1000077 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:05

[raw result]
[visualize]
#1000012 java.lang.OutOfMemoryError: Java heap space 2016-07-31 19:50:05

[raw result]
[visualize]
#1000099 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:05

[raw result]
[visualize]
#92 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 19:50:05

[raw result]
[visualize]
#93 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 19:50:05

[raw result]
[visualize]
#87 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 19:50:05

[raw result]
[visualize]
#1000103 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:05

[raw result]
[visualize]
#1000046 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:05

[raw result]
[visualize]
#48 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 19:50:05

[raw result]
[visualize]
#1000101 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:05

[raw result]
[visualize]
#1000095 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:05

[raw result]
[visualize]
#1000044 java.lang.OutOfMemoryError: Java heap space 2016-07-31 19:50:04

[raw result]
[visualize]
#1000053 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 19:50:04

[raw result]
[visualize]
#1000025 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 19:50:04

[raw result]
[visualize]
#1000047 java.lang.OutOfMemoryError: Java heap space 2016-07-31 19:50:04

[raw result]
[visualize]
#182 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 19:50:04

[raw result]
[visualize]
#1000051 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:04

[raw result]
[visualize]
#1000110 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:04

[raw result]
[visualize]
#1000032 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:04

[raw result]
[visualize]
#113 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-07-31 19:50:04

[raw result]
[visualize]
#1000108 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:03

[raw result]
[visualize]
#1000111 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:03

[raw result]
[visualize]
#1000033 java.lang.OutOfMemoryError: Java heap space 2016-07-31 19:50:03

[raw result]
[visualize]
#1000089 LuaError: #404:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:50:03

[raw result]
[visualize]

Snippet ID: #404
Snippet name: Magic Wand + Hashes (column range, improving)
Eternal ID of this version: #404/1
Text MD5: bc1710d8fbf381e6aeec05a5bede652d
Author: stefan
Category: image recognition
Type: Lua code - Image recognition
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-03-06 20:43:51
Source code size: 5143 bytes / 201 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 2051 / 202
Referenced in: #406 - Magic Wand + Hashes (special case recognizer)
#3000188 - Answer for stefanreich(>> t search)
#3000202 - Answer for stefanreich (>> T conversion bot)
#3000238 - Answer for stefanreich (>> t power bot)
#3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)