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

6
LINES

< > BotCompany Repo | #510 // Finde Trennlinie

Lua code - Image recognition

w, h = img.width, img.height

for y = 0, h-1 do
if img.getInt(x, y) == 0 then
return "die grenze! " .. tonumber(y) end
end

Author comment

built on the meetup

download  show line numbers   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

Comments [hide]

ID Author/Program Comment Date
43 stefan tonumber sollte eigentlich tostring heissen... aber as it turns out braucht man beides gar nicht :)

Lua ist so schlau!
2015-03-10 00:21:21

add comment

Image recognition results

show nils
Image Result Result calculated
#1000095 die grenze! 51 2016-08-08 06:12:24
Lua instructions: 2k (1 ms)

[raw result]
[visualize]
#1004090 java.lang.OutOfMemoryError: Java heap space 2016-08-07 13:34:10

[raw result]
[visualize]
#1000225 die grenze! 95 2016-08-06 23:39:31
Lua instructions: 2k

[raw result]
[visualize]
#309 die grenze! 0 2016-08-06 15:23:00
Lua instructions: 2k

[raw result]
[visualize]
#1004060 java.lang.OutOfMemoryError: Java heap space 2016-08-05 13:07:19

[raw result]
[visualize]
#1000146 die grenze! 728 2016-08-04 12:18:08
Lua instructions: 7k (15 ms)

[raw result]
[visualize]
#1000199 die grenze! 0 2016-08-04 02:43:55
Lua instructions: 2k (4 ms)

[raw result]
[visualize]
#1000611 die grenze! 0 2016-08-01 20:10:30
Lua instructions: 2k (1 ms)

[raw result]
[visualize]
#1000576 die grenze! 0 2016-08-01 19:59:14
Lua instructions: 2k (1 ms)

[raw result]
[visualize]
#1000558 die grenze! 0 2016-08-01 19:55:19
Lua instructions: 2k

[raw result]
[visualize]
#1000556 die grenze! 123 2016-08-01 19:45:45
Lua instructions: 3k

[raw result]
[visualize]
#1000544 die grenze! 77 2016-08-01 18:58:46
Lua instructions: 2k

[raw result]
[visualize]
#1000428 die grenze! 0 2016-08-01 18:29:02
Lua instructions: 2k

[raw result]
[visualize]
#1000425 die grenze! 0 2016-08-01 18:24:21
Lua instructions: 2k

[raw result]
[visualize]
#1000422 die grenze! 0 2016-08-01 18:22:18
Lua instructions: 2k

[raw result]
[visualize]
#1000421 die grenze! 0 2016-08-01 18:12:51
Lua instructions: 2k (1 ms)

[raw result]
[visualize]
#1000418 die grenze! 0 2016-08-01 18:06:06
Lua instructions: 2k

[raw result]
[visualize]
#1000338 die grenze! 0 2016-08-01 17:53:24
Lua instructions: 2k

[raw result]
[visualize]
#1000336 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-08-01 17:48:38

[raw result]
[visualize]
#1000330 java.lang.OutOfMemoryError: Java heap space 2016-08-01 17:36:32

[raw result]
[visualize]
#1000327 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-08-01 16:53:45

[raw result]
[visualize]
#1000326 java.lang.OutOfMemoryError: Java heap space 2016-08-01 16:53:14

[raw result]
[visualize]
#1000310 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-08-01 14:21:21

[raw result]
[visualize]
#1000311 java.lang.OutOfMemoryError: Java heap space 2016-08-01 14:20:59

[raw result]
[visualize]
#1000309 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-08-01 14:20:52

[raw result]
[visualize]
#1000301 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-08-01 14:20:50

[raw result]
[visualize]
#1000279 die grenze! 0 2016-08-01 13:45:03
Lua instructions: 2k

[raw result]
[visualize]
#1000276 die grenze! 0 2016-08-01 13:34:47
Lua instructions: 2k (1 ms)

[raw result]
[visualize]
#1000268 die grenze! 3 2016-08-01 13:12:03
Lua instructions: 2k (4 ms)

[raw result]
[visualize]
#1000250 die grenze! 0 2016-08-01 11:25:38
Lua instructions: 2k (1 ms)

[raw result]
[visualize]
#1000245 die grenze! 728 2016-08-01 10:46:44
Lua instructions: 7k (15 ms)

[raw result]
[visualize]
#1000246 die grenze! 728 2016-08-01 10:37:25
Lua instructions: 7k (3 ms)

[raw result]
[visualize]
#100 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-08-01 09:35:20

[raw result]
[visualize]
#1000180 die grenze! 111 2016-08-01 09:35:16
Lua instructions: 2k (8 ms)

[raw result]
[visualize]
#1000132 die grenze! 83 2016-08-01 09:35:12
Lua instructions: 2k (6 ms)

[raw result]
[visualize]
#1000042 die grenze! 744 2016-08-01 09:34:33
Lua instructions: 7k (6 ms)

[raw result]
[visualize]
#1000046 die grenze! 83 2016-08-01 09:33:28
Lua instructions: 2k (6 ms)

[raw result]
[visualize]
#1000152 die grenze! 5 2016-08-01 09:33:21
Lua instructions: 2k (5 ms)

[raw result]
[visualize]
#1000045 die grenze! 0 2016-08-01 09:33:12
Lua instructions: 2k (1 ms)

[raw result]
[visualize]
#112 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-08-01 09:33:01

[raw result]
[visualize]
#1000127 die grenze! 27 2016-08-01 09:32:58
Lua instructions: 2k (6 ms)

[raw result]
[visualize]
#1000047 die grenze! 1 2016-08-01 09:32:37
Lua instructions: 2k (1 ms)

[raw result]
[visualize]
#1000020 die grenze! 0 2016-08-01 09:32:11
Lua instructions: 2k (1 ms)

[raw result]
[visualize]
#1000149 die grenze! 3 2016-08-01 09:25:09
Lua instructions: 2k (4 ms)

[raw result]
[visualize]
#1000236 die grenze! 0 2016-08-01 09:07:41
Lua instructions: 2k (4 ms)

[raw result]
[visualize]
#1000211 die grenze! 0 2016-08-01 09:07:26
Lua instructions: 2k (5 ms)

[raw result]
[visualize]
#115 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-08-01 09:04:43

[raw result]
[visualize]
#1000140 die grenze! 728 2016-08-01 09:04:43
Lua instructions: 7k (14 ms)

[raw result]
[visualize]
#1000136 die grenze! 282 2016-08-01 08:54:56
Lua instructions: 4k (3 ms)

[raw result]
[visualize]
#1000145 die grenze! 728 2016-08-01 08:54:51
Lua instructions: 7k (13 ms)

[raw result]
[visualize]
#1000205 die grenze! 0 2016-08-01 08:53:59
Lua instructions: 2k

[raw result]
[visualize]
#1000212 java.lang.OutOfMemoryError: Java heap space 2016-08-01 08:53:55

[raw result]
[visualize]
#1000090 die grenze! 0 2016-08-01 08:48:16
Lua instructions: 2k (4 ms)

[raw result]
[visualize]
#1000154 die grenze! 7 2016-08-01 08:48:04
Lua instructions: 2k (4 ms)

[raw result]
[visualize]
#1000150 die grenze! 5 2016-08-01 08:48:02
Lua instructions: 2k (1 ms)

[raw result]
[visualize]
#85 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-08-01 08:47:21

[raw result]
[visualize]
#1000156 die grenze! 301 2016-08-01 08:45:21
Lua instructions: 4k (12 ms)

[raw result]
[visualize]
#48 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-08-01 08:45:04

[raw result]
[visualize]
#1000214 die grenze! 404 2016-08-01 08:45:04
Lua instructions: 5k (11 ms)

[raw result]
[visualize]
#1000161 die grenze! 213 2016-08-01 08:44:59
Lua instructions: 3k (9 ms)

[raw result]
[visualize]
#141 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-08-01 08:40:41

[raw result]
[visualize]
#1000200 die grenze! 0 2016-08-01 08:40:24
Lua instructions: 2k (1 ms)

[raw result]
[visualize]
#113 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-08-01 08:39:52

[raw result]
[visualize]
#1000196 die grenze! 0 2016-08-01 08:39:51
Lua instructions: 2k

[raw result]
[visualize]
#1000003 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-08-01 08:39:49

[raw result]
[visualize]
#1000125 die grenze! 0 2016-08-01 08:39:49
Lua instructions: 2k

[raw result]
[visualize]
#1000166 die grenze! 0 2016-08-01 08:39:49
Lua instructions: 2k (5 ms)

[raw result]
[visualize]
#1000202 die grenze! 0 2016-08-01 08:39:49
Lua instructions: 2k (4 ms)

[raw result]
[visualize]
#1000181 die grenze! 1 2016-08-01 08:39:49
Lua instructions: 2k (3 ms)

[raw result]
[visualize]
#178 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-08-01 08:39:49

[raw result]
[visualize]
#1000216 die grenze! 0 2016-08-01 08:39:48
Lua instructions: 2k

[raw result]
[visualize]
#1000129 die grenze! 0 2016-08-01 08:39:48
Lua instructions: 2k (4 ms)

[raw result]
[visualize]
#182 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-08-01 08:39:48

[raw result]
[visualize]
#1000126 die grenze! 0 2016-08-01 08:39:48
Lua instructions: 2k (4 ms)

[raw result]
[visualize]
#499 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-08-01 08:39:46

[raw result]
[visualize]
#1000184 die grenze! 1 2016-08-01 08:39:46
Lua instructions: 2k

[raw result]
[visualize]
#87 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-08-01 08:39:46

[raw result]
[visualize]
#93 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-08-01 08:39:46

[raw result]
[visualize]
#84 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-08-01 08:39:46

[raw result]
[visualize]
#1000167 die grenze! 0 2016-08-01 08:39:46
Lua instructions: 2k (1 ms)

[raw result]
[visualize]
#500 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-08-01 08:39:46

[raw result]
[visualize]
#1000179 die grenze! 0 2016-08-01 08:39:46
Lua instructions: 2k (1 ms)

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

[raw result]
[visualize]
#92 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-08-01 08:39:45

[raw result]
[visualize]
#1000163 die grenze! 5 2016-08-01 08:39:44
Lua instructions: 2k (1 ms)

[raw result]
[visualize]
#1000221 die grenze! 0 2016-08-01 08:39:44
Lua instructions: 2k (4 ms)

[raw result]
[visualize]
#1000088 die grenze! 0 2016-08-01 08:39:44
Lua instructions: 2k (4 ms)

[raw result]
[visualize]
#1000089 die grenze! 0 2016-08-01 08:39:43
Lua instructions: 2k (1 ms)

[raw result]
[visualize]
#1000218 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-08-01 08:39:43

[raw result]
[visualize]
#1000185 die grenze! 1 2016-08-01 08:39:43
Lua instructions: 2k (4 ms)

[raw result]
[visualize]
#145 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-08-01 08:39:43

[raw result]
[visualize]
#1000227 die grenze! 0 2016-08-01 08:39:43
Lua instructions: 2k (1 ms)

[raw result]
[visualize]
#1000186 die grenze! 2 2016-08-01 08:39:43
Lua instructions: 2k (4 ms)

[raw result]
[visualize]
#1000128 die grenze! 0 2016-08-01 08:39:43
Lua instructions: 2k (4 ms)

[raw result]
[visualize]
#1000182 die grenze! 0 2016-08-01 08:39:43
Lua instructions: 2k (4 ms)

[raw result]
[visualize]
#1000101 die grenze! 0 2016-08-01 08:39:43
Lua instructions: 2k (4 ms)

[raw result]
[visualize]
#1000219 java.lang.OutOfMemoryError: Java heap space 2016-07-31 18:51:36

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

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

[raw result]
[visualize]
#1000339 die grenze! 0 2015-08-03 21:13:33
Lua instructions: 2k (1 ms)

[raw result]
[visualize]
#509 die grenze! 50 2015-07-11 18:11:59
Lua instructions: 2k (1 ms)

[raw result]
[visualize]
#1000215 die grenze! 0 2015-07-09 19:38:25
Lua instructions: 2k (1 ms)

[raw result]
[visualize]
#1000232 die grenze! 0 2015-07-07 23:23:34
Lua instructions: 2k (4 ms)

[raw result]
[visualize]
#1000241 java.lang.IllegalArgumentException: image == null! 2015-07-06 06:34:18

[raw result]
[visualize]

Snippet ID: #510
Snippet name: Finde Trennlinie
Eternal ID of this version: #510/1
Text MD5: bd7fe9cdcbf0ed599e9b6599d4a82c51
Author: irrationalcoder
Category: image recognition
Type: Lua code - Image recognition
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-03-09 19:27:50
Source code size: 127 bytes / 6 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 2002 / 183
Referenced in: [show references]