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

21
LINES

< > BotCompany Repo | #376 - Image Hasher using MD5 (disabled for now)

Lua code

1  
get("#374") -- md5.calc
2  
get("#348") -- rgb functions
3  
4  
w, h = img.width, img.height
5  
tbl, i = {}, 0
6  
7  
h = 1 -- XXX
8  
9  
for y = 0, h-1 do
10  
  for x = 0, w-1 do
11  
    r, g, b = rgb(img.getInt(x, y))
12  
    i=i+1 tbl[i]=string.char(r, g, b)
13  
    if i % 10000 == 0 then
14  
      print(i.." pixels converted")
15  
    end
16  
  end
17  
end
18  
19  
s = table.concat(tbl)
20  
hash = md5.calc(s)
21  
return "Image Hash (partial): "..hash

Author comment

Creates an image hash using MD5

test run  test run with input  download  show line numbers   

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

No comments. add comment

Image recognition results

show nils
Image Result Result calculated
#1000054 Image Hash (partial): cf220640afef7034c6b2758e331ab857 2016-08-07 18:11:17
Lua instructions: 35k

[raw result]
[visualize]
#1000061 Image Hash (partial): cd280564feeb173d1a56577317192953 2016-08-07 18:11:16
Lua instructions: 35k

[raw result]
[visualize]
#1000056 Image Hash (partial): f340e4c1fd95980fe602ee0e417b6a40 2016-08-07 18:11:16
Lua instructions: 29k

[raw result]
[visualize]
#1000055 Image Hash (partial): e399c307ba632d17d12bb84bdd6ca406 2016-08-07 18:11:16
Lua instructions: 29k

[raw result]
[visualize]
#1000072 Image Hash (partial): ea1ea7788f79c53db7a479da5b3faac0 2016-08-03 22:21:43
Lua instructions: 35k

[raw result]
[visualize]
#1000063 Image Hash (partial): 1668a6cc22b95f3ce1555a996d8d1c90 2016-08-03 16:29:26
Lua instructions: 30k

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[raw result]
[visualize]

Snippet ID: #376
Snippet name: Image Hasher using MD5 (disabled for now)
Eternal ID of this version: #376/1
Text MD5: 8ae289647ce8f2d5116767a863dc7695
Author: stefan
Category:
Type: Lua code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-02-01 21:40:14
Source code size: 405 bytes / 21 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 1109 / 110
Referenced in: [show references]

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