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

180
LINES

< > BotCompany Repo | #400 - Magic Wand All, optimizing II (profiling)

Lua code - Image recognition

1  
get("#349") -- table functions
2  
get("#121") -- compareTables
3  
get("#348") -- bright and rgb
4  
5  
maxSize = {width=100, height=50}
6  
minSize = {width=4, height=4}
7  
threshold = 0.5
8  
wandSize = 3 -- magic wand size
9  
10  
local rectangles, _img
11  
12  
function cloneRectangle(r)
13  
  return newRectangle(r.x, r.y, r.width, r.height)
14  
end
15  
16  
function newRectangle(x, y, w, h)
17  
  return {x=x, y=y, width=w, height=h}
18  
end
19  
20  
function contains(r, x, y)
21  
  return x >= r.x and y >= r.y and x < r.x+r.width and y < r.y+r.width
22  
end
23  
24  
function seen(x, y)
25  
  for r, _ in pairs(rectangles) do
26  
    pTests = pTests+1
27  
    if contains(r, x, y) then
28  
      return true
29  
    end
30  
  end
31  
return false
32  
end
33  
34  
pDuplicate, pNew, pSeen, pNotSeen, pTests = 0, 0, 0, 0, 0
35  
36  
-- returns rectangle
37  
function magicWand(image, x, y)
38  
  if image ~= _img then
39  
    _img, rectangles = image, {}
40  
  end
41  
  if seen(x, y) then pSeen = pSeen+1 return nil end
42  
  pNotSeen = pNotSeen+1
43  
  local r = newRectangle(x, y, 1, 1)
44  
  
45  
  while true do
46  
    local last = cloneRectangle(r)
47  
    expandLeft(image, r)
48  
    if tooLarge(r) then return nil end
49  
    expandTop(image, r)
50  
    if tooLarge(r) then return nil end
51  
    expandRight(image, r)
52  
    if tooLarge(r) then return nil end
53  
    expandBottom(image, r)
54  
    if tooLarge(r) then return nil end    
55  
    if compareTables(last, r) then
56  
      if r.width >= minSize.width and r.height >= minSize.width then
57  
        if rectangles[r] then
58  
          pDuplicate = pDuplicate+1
59  
        else
60  
          pNew = pNew+1
61  
          rectangles[r] = true
62  
        end
63  
        return r
64  
      else
65  
        return nil
66  
      end
67  
    end
68  
  end
69  
end
70  
71  
function tooLarge(r)
72  
  return maxSize ~= nil and (r.width > maxSize.width or r.height > maxSize.height)
73  
end
74  
75  
function expandLeft(image, r)
76  
  local newX = math.max(r.x - wandSize, 0)
77  
  if newX == r.x then return end
78  
  newX = searchFromLeft(image, newRectangle(newX, r.y, r.x-newX, r.height))
79  
  r.width = r.width+r.x-newX
80  
  r.x = newX
81  
end
82  
83  
function searchFromLeft(image, r)
84  
  for x = r.x, r.x+r.width-1 do
85  
    if regionNotEmpty(image, newRectangle(x, r.y, 1, r.height)) then
86  
      return x
87  
    end
88  
  end
89  
  return r.x+r.width
90  
end
91  
92  
function expandRight(image, r)
93  
  local newX = math.min(r.x + r.width + wandSize, image.width)
94  
  if newX == r.x+r.width then return end
95  
  newX = searchFromRight(image, newRectangle(r.x+r.width, r.y, newX-(r.x+r.width), r.height))
96  
  r.width = newX-r.x
97  
end
98  
99  
function searchFromRight(image, r)
100  
  for x = r.x+r.width-1, r.x, -1 do
101  
    if regionNotEmpty(image, newRectangle(x, r.y, 1, r.height)) then
102  
      return x+1
103  
    end
104  
  end
105  
  return r.x
106  
end
107  
108  
function expandTop(image, r)
109  
  local newY = math.max(r.y - wandSize, 0)
110  
  if newY == r.y then return end
111  
  newY = searchFromTop(image, newRectangle(r.x, newY, r.width, r.y-newY))
112  
  r.height = r.height+r.y-newY
113  
  r.y = newY
114  
end
115  
116  
function searchFromTop(image, r)
117  
  for y = r.y, r.y+r.height-1 do
118  
    if regionNotEmpty(image, newRectangle(r.x, y, r.width, 1)) then
119  
      return y
120  
    end
121  
  end
122  
  return r.y+r.height
123  
end
124  
125  
function expandBottom(image, r)
126  
  local newY = math.min(r.y + r.height + wandSize, image.height)
127  
  if newY == r.y+r.height then return end
128  
  newY = searchFromBottom(image, newRectangle(r.x, r.y + r.height, r.width, newY-(r.y+r.height)))
129  
  r.height = newY-r.y
130  
end
131  
132  
function searchFromBottom(image, r)
133  
  for y = r.y+r.height-1, r.y, -1 do
134  
    if regionNotEmpty(image, newRectangle(r.x, y, r.width, 1)) then
135  
      return y+1
136  
    end
137  
  end
138  
  return r.y
139  
end
140  
141  
-- we're looking for dark pixels this time
142  
function regionNotEmpty(image, r)
143  
  --return image.clip(rectangle).anyPixelBrighterThan(threshold)
144  
  for y=r.y, r.y+r.height-1 do
145  
    for x=r.x, r.x+r.width-1 do
146  
      if bright(rgb(image.getInt(x, y))) < threshold then
147  
        return true
148  
      end
149  
    end
150  
  end
151  
  return false
152  
end
153  
154  
155  
function recttostring(r)
156  
  return r.x..", "..r.y..", "..r.x+r.width..", "..r.y+r.height
157  
end
158  
159  
function magicWandAll(image)
160  
  local allrects = {}
161  
162  
  for y = 0, image.height-1, 2 do
163  
    for x = 0, image.width-1, 2 do
164  
      local r = magicWand(image, x, y)
165  
      
166  
      if r then
167  
        allrects[recttostring(r)] = true
168  
      end
169  
    end
170  
  end
171  
  
172  
  return allrects
173  
end
174  
175  
allrects = magicWandAll(img)
176  
177  
result = table.concat(keystolist(allrects), "|")
178  
if result ~= '' then
179  
  return "Magic Wand All (optimizing): "..result
180  
end

Author comment

Began life as a copy of #399

download  show line numbers   

Travelled to 8 computer(s): aoiabmzegqzx, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

No comments. add comment

Image recognition results [IR DISABLED]

show nils
Image Result Result calculated
#1000075 Magic Wand All (optimizing): 27, 28, 69, 77|26, 28, 69, 77|27, 28, 71, 77|24, 28, 69, 77 2016-08-07 23:55:47
Lua instructions: 15290k

[raw result]
[visualize]
#1000010 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-08-07 20:51:32

[raw result]
[visualize]
#1000063 Magic Wand All (optimizing): 30, 21, 77, 65|30, 21, 79, 65|28, 21, 76, 65|30, 18, 76, 65 2016-08-04 20:50:57
Lua instructions: 2854k

[raw result]
[visualize]
#1000113 LuaError: LuaTimeOutSandbox.loader:17 timeout <1000000k> 2016-08-04 02:15:33

[raw result]
[visualize]
#1000072 Magic Wand All (optimizing): 36, 26, 81, 75|36, 26, 78, 75|36, 26, 79, 75|34, 26, 78, 75 2016-08-03 04:13:40
Lua instructions: 13828k

[raw result]
[visualize]
#1000015 Magic Wand All (optimizing): 90, 4, 158, 17|88, 5, 151, 17|6, 2, 46, 17|174, 4, 179, 15|55, 4, 85, 1... 2016-08-03 02:37:39
Lua instructions: 2002k

[raw result]
[visualize]
#1000117 LuaError: #400:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:53:23

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[raw result]
[visualize]
#1000042 LuaError: #400:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:49:42

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

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

[raw result]
[visualize]
#1000025 java.lang.OutOfMemoryError: Java heap space 2016-07-31 19:49:40

[raw result]
[visualize]
#1000047 LuaError: #400:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:49:39

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

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

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

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

[raw result]
[visualize]
#1000045 LuaError: #400:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:49:34

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

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

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

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

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

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

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

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

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

[raw result]
[visualize]
#1000044 LuaError: #400:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:49:26

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

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

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

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

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

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

[raw result]
[visualize]
#1000033 LuaError: #400:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:49:24

[raw result]
[visualize]
#1000012 LuaError: #400:2 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 19:49:20

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

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

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

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

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

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

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

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

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

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

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

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

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

[raw result]
[visualize]

Snippet ID: #400
Snippet name: Magic Wand All, optimizing II (profiling)
Eternal ID of this version: #400/1
Text MD5: 49f10097125c736a0c4e5437f2a2ee93
Author: stefan
Category: image recognition
Type: Lua code - Image recognition
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-02-06 01:07:40
Source code size: 4448 bytes / 180 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 1085 / 92
Referenced in: [show references]

Formerly at http://tinybrain.de/400 & http://400.tinybrain.de