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

16
LINES

< > BotCompany Repo | #419 // String rep renderer test

Rendered image

Lua code - Image

get("#137") -- split

--code = "XXXXXXXVFKXXXXXXXXXXXXXXXXVIBAIWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXVFKXXXXX.GAAAAANVINXXXXXXXXXXXXXXXXKCPSTXXXXXXXXXXXXXXXXXXXXLCUXXXXXXXXPBSXXXXXXXXVFKXXXXX.GFQRRRUXXXXXXXXXXXXXXXXXXWFJXXXXXXXXXXXXXXXXXXXXXXXPBRXXVHLXXXLDVXXXXXXXXVFKXXXXX.GHWXXXXVFKXWLCABOXWLCAFRXVFAAALXWMCAEQXXOBQXVGIWXXXSBNXXRBEVXWHGWXWLCAFRXVFDCADPX.GHWXXXXVFKXVFGQQUXKCORGDUVFITTVXLBMQHBRXWIEUMDTXXXXVEJXXLCCRXVEKXXKCORGDUVFDNQIBQ.GAAAAEVVFKXVFKXXXUCOXXTCPVFKXXXUCLXXVFHWXTDGCOXXXXXWHFVVEMGKXSCPXUCOXXTCPVFKXXWFH.GFSSSTXVFKXVFKXXXQBAAAAANVFKXXXRBQXXXKEVXXOAGWXXXXXXMCTQDTNDUOCTXQBAAAAANVFKXXXKE.GHWXXXXVFKXVFKXXXQBNTTTTVVFKXXXQBQXXXKEVXWJACSXXXXXXRBPJHWTCOJFWXQBNTTTTVVFKXXXKE.GHWXXXXVFKXVFKXXXTCLXXXXXVFKXXXUCMXXVFHWXPCQGGWXXXXXVDHDPXWIFEKXXTCLXXXXXVFKXXVEH.GHWXXXXVFKXVFKXXXWJBLRPPWVFKXXXXKBMQIBQXUELXSCNXXXXXXJAEVXXQBBQXXWJBLRPPWVFGQPGBR.GHWXXXXVFKXVFKXXXXWLCABJWVFKXXXXWLCAEQXXLDUXXKDUXXXXXPALXXXVEDVXXXWLCABJWWKCAAFRX"

code = "XYVYYXWYEJXXXXXXXXXXXXXXXXWIAAHWXXXXXXXXXXXXXXXXXXYXVYWXXVXWXWXXYXXXXXXXXWGJWXXXX.FABAABLVILXXXXXXXXXXXXXXXXJEORRYXWXXXXXXXXXXXXXXXXWMCTXWYZYXWYQCQYXXXXXXXWEHWXXXX.GEQQRSTXYWXXXXXXXXXXXXXXXXHFYYWYXWXXXXXXXXXXXXXXXXXQARXYVGKWYXNAVWXXXXXXXWFIXXXXX.IGWXWXWXFIWXKCBBLYXLCAERXWGAABKXXLCBEPWXQBQXWEGYWXWUBLXXTACWXWIEWWXLCBERXVEDDBDPW.HEVXXWXWEKXVHGPQUWJCORHBUXEITRTXMCKRIBQZWIDVNDUWXWWUEHYXLDCQXWDIXXJCOSHCUXGBNQIBP.GCAAADUYGIXVFIWYYUEMXXUDNXGIXYYUDJZVWFGWWUCGCMVYXYXWICWWELGIWUBNXVEMXXTCNWGIWYXFG.HDRTTSXWEJWWFJWWXTAAABBANXGHWWWTBQXXXKDVWXTBFYXWYWXXMBSTCTOCVQCSXSAAAAAANXGIXWXLD.HEWWXYWWFIWXFJXWXSAOTRTUTXGIXXXTBRWXXKDWXWJCBQZVYXXXSCNLHXVCNJFVXSAOTRTUUXHHWXYLC.HFWWYZVXGJWXEIXXYUCJYYXWYWGHWYYUDJYWWFFWWQCRHEVYXXYWVDHDOXXHEEIXWUBJYYXWYWFJYYWFH.HFXWWXWXFIXXFIWWXXKAJRRNWVDJXXXYLBLSICQYUFKVUBMWYXYXWJBDVXXRBCPYWWKAJRQNWVFEQQGBR.HEWXYWYWFJXWFJXXXXWLDBCHWWFIVYXYVMCADQXVOBVXWMDUYXWYWSAIYXWYDBVWXWWLDBCIWWKCABGRW"

code = split(code, ".")
w, h = #code[1], #code
pixels = {}

for y=0, h-1 do
  for x=0, w-1 do
    local r = math.floor((string.byte(code[y+1], x+1)-string.byte('A'))/25*255+0.5)
    pixels[y*w+x+1] = r*0x010101
  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

Image recognition results

Recognizer Recognition Result Visualize Recalc
#418 Floodfill string rep: [visualize]
#330 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#322 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#447 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#436 nil [visualize]
#446 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#324 [show] java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#491 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#437 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#455 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#440 LXTerminal icon not found [visualize]
#441 nil [visualize]
#1000071 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#439 nil [visualize]
#326 [cropped] Vertical symmetry: 71% [visualize]
#442 Floodfill: 0, 0, 47, 9 -> 0028007f|51, 0, 81, 9 -> 007bc408 [visualize]
#323 Probably an A [visualize]
#291 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#351 nil [visualize]
#482 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#342 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#303 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#340 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#307 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#288 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#468 nil [visualize]
#421 Floodfill (limited start area): 0, 0, 80, 8 -> 0076dc22 [visualize]
#420 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#395 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#449 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#1000060 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#317 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#296 nil [visualize]
#384 Magic Wand All (optimized): 0, 0, 10, 11|41, 2, 47, 11|51, 1, 72, 11|26, 0, 47, 11|12, 0, 39, 11|26,... [visualize]
#465 Floodfill: [visualize]
#332 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#423 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#445 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#406 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#315 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#334 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#409 Floodfill: 0, 0, 80, 8 [visualize]
#383 No Battery Symbol [visualize]
#408 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#361 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#456 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#397 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#382 nil [visualize]
#354 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#290 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#364 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#328 [cropped] 180° symmetry: 66% [visualize]
#412 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#407 Grid: 0, 0, 4, 4|4, 0, 8, 4|8, 0, 12, 4|12, 0, 16, 4|16, 0, 20, 4|20, 0, 24, 4|24, 0, 28, 4|28, 0, 3... [visualize]
#381 Image Hash: 0044923f [visualize]
#402 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#335 nil [visualize]
#463 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#353 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#404 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#345 nil [visualize]
#453 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#292 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#510 nil [visualize]
#444 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#462 nil [visualize]
#438 nil [visualize]
#422 Floodfill: 0, 0, 80, 8 -> 0076dc22 [visualize]
#385 Magic Wand All (size=3): 0, 0, 81, 11|0, 0, 47, 11|51, 0, 81, 11|50, 0, 81, 11 [visualize]
#386 Magic Wand + hashes (wand size=3): 0, 0, 81, 11 -> 0044923f|0, 0, 47, 11 -> 00c6c650|51, 0, 81, 11 -... [visualize]
#416 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#405 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#466 Colors: white=66%, black=34% [visualize]
#411 Floodfill: 0, 0, 80, 8 -> 0076dc22 [visualize]
#399 Magic Wand All (optimizing): 50, 2, 81, 11|0, 0, 47, 11|52, 0, 81, 11 [visualize]
#461 Floodfill: 0, 1, 7, 2 -> 0001418b|26, 0, 47, 10 -> 00213131|51, 1, 54, 4 -> 00039a73|52, 1, 64, 10 -... [visualize]
#458 Grid: 0, 0, 3, 3|3, 0, 6, 3|6, 0, 9, 3|9, 0, 12, 3|24, 0, 27, 3|27, 0, 30, 3|30, 0, 33, 3|51, 0, 54,... [visualize]
#403 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#459 Grid: 0, 0, 2, 2|2, 0, 4, 2|4, 0, 6, 2|6, 0, 8, 2|26, 0, 28, 2|28, 0, 30, 2|30, 0, 32, 2|50, 0, 52, ... [visualize]
#293 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#434 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#289 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#477 [visualize]
#469 Floodfill: 0, 0, 47, 9 -> 0028007f|51, 0, 81, 9 -> 007bc408 [visualize]
#470 Grid: 0, 0, 3, 3|3, 0, 6, 3|6, 0, 9, 3|9, 0, 12, 3|24, 0, 27, 3|27, 0, 30, 3|30, 0, 33, 3|51, 0, 54,... [visualize]
#493 Triangleness: 0.77060884 [visualize]
#302 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#475 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#494 Rectangleness: 0.3594419 [visualize]
#336 nil [visualize]
#391 LuaError: #391:10 bad argument: table expected, got nil [visualize]
#432 nil [visualize]
#424 LXTerminal icon not found [visualize]
#359 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#607 nil [visualize]
#464 Floodfill: [visualize]
#371 Brightness range: 0-100% [visualize]
#429 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#297 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#358 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#394 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#287 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#344 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#393 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#357 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#427 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#368 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#443 nil [visualize]
#295 nil [visualize]
#301 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#327 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#472 nil [visualize]
#467 nil [visualize]
#379 Image Hash (RS): ffffffff [visualize]
#360 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#425 LXTerminal icon not found [visualize]
#401 Magic Wand All (optimizing): 0, 0, 81, 11|0, 0, 47, 11|51, 0, 81, 11|50, 0, 81, 11 [visualize]
#286 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#318 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]
#319 Vertical symmetry: 71% [visualize]
#298 nil [visualize]
#426 LXTerminal icon not found [visualize]
#306 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... [visualize]

Snippet ID: #419
Snippet name: String rep renderer test
Eternal ID of this version: #419/1
Text MD5: ae93086e8ad243830dccdca9b7faac87
Author: stefan
Category: image recognition
Type: Lua code - Image
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-02-06 14:35:44
Source code size: 2083 bytes / 16 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 948 / 212
Referenced in: [show references]