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

58
LINES

< > BotCompany Repo | #475 // Tolerant horizontal split with crop

Lua code - Image recognition

get("#348") -- rgb functions
get("#346") -- getcrop
get("#337") -- map(list, f)

w, h = img.width, img.height
brightnessThreshold = 0.95

function averageBrightness(img, x1, y1, x2, y2)
  local b = 0
  for y=y1, y2-1 do
    for x=x1, x2-1 do 
      b = b+bright(rgb(img.getInt(x, y)))
    end
  end
  return b/((x2-x1)*(y2-y1))
end

function isEmpty(x)
  return averageBrightness(img, x, 0, x+1, h) > brightnessThreshold
end

lastEmpty = true
segments = {}

for x=0, w-1 do
  empty = isEmpty(x)
  if empty and not lastEmpty then
    table.insert(segments, {start, x})
  elseif not empty and lastEmpty then
    start = x
  end
  lastEmpty = empty
end

if not lastEmpty then
  table.insert(segments, {start, w})
end

if #segments <= 1 then -- don't bother with only 1 segment
  return
end

result = {}
for _, seg in ipairs(segments) do
  local sx1, sx2 = unpack(seg)
  
  local cropped = {
    width = sx2-sx1,
    height = img.height,
    getInt = function(x, y)
      return img.getInt(x+sx1, y)
    end
  }
  local x1, y1, x2, y2 = getcrop(cropped)
  table.insert(result, (x1+sx1)..", "..y1..", "..(x2+sx1)..", "..y2)
end

return "Parts: "..table.concat(result, "|")

Author comment

Began life as a copy of #345

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

show nils
Image Result Result calculated
#1004090 java.lang.OutOfMemoryError: Java heap space 2016-08-07 13:34:13

[raw result]
[visualize]
#1004070 LuaError: #475:3 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-08-05 15:08:32

[raw result]
[visualize]
#1004061 java.lang.OutOfMemoryError: Java heap space 2016-08-05 13:31:02

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

[raw result]
[visualize]
#1004009 Parts: 80, 11, 83, 115|130, 4, 159, 236|161, 4, 163, 235|165, 4, 167, 236|169, 4, 173, 228|174, 4, 1... 2016-08-03 17:18:07
Lua instructions: 9909k

[raw result]
[visualize]
#1000080 Parts: 22, 23, 45, 51|50, 23, 71, 51|75, 23, 99, 51|105, 23, 129, 51|134, 23, 155, 51|161, 23, 180, ... 2016-08-03 07:31:00
Lua instructions: 3245k (323 ms)

[raw result]
[visualize]
#1000015 Parts: 6, 7, 12, 18|13, 7, 16, 14|17, 7, 19, 14|20, 4, 26, 14|28, 4, 31, 14|34, 4, 38, 14|41, 7, 47,... 2016-08-03 07:12:12
Lua instructions: 196k (25 ms)

[raw result]
[visualize]
#1000113 Parts: 3, 0, 14, 525|15, 0, 685, 525 2016-08-03 04:03:49
Lua instructions: 17021k (1739 ms)

[raw result]
[visualize]
#1000162 Parts: 8, 1, 625, 768|626, 1, 627, 767|628, 1, 954, 768|1295, 1, 1296, 767|1310, 1, 1311, 767|1351, ... 2016-08-01 20:38:42
Lua instructions: 49509k (5194 ms)

[raw result]
[visualize]
#1000556 Parts: 0, 0, 646, 473|663, 0, 673, 473 2016-08-01 19:45:50
Lua instructions: 15030k (1438 ms)

[raw result]
[visualize]
#1000547 Parts: 2, 127, 169, 556|178, 73, 923, 556 2016-08-01 19:14:56
Lua instructions: 26606k (2576 ms)

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

[raw result]
[visualize]
#1000332 Parts: 36, 40, 220, 240|258, 47, 446, 241 2016-08-01 17:40:26
Lua instructions: 6733k (652 ms)

[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:13

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

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

[raw result]
[visualize]
#1000283 Parts: 8, 0, 192, 136|208, 0, 392, 136 2016-08-01 13:50:27
Lua instructions: 2776k (372 ms)

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

[raw result]
[visualize]
#1000093 Parts: 0, 15, 10, 65|13, 20, 33, 66|39, 20, 57, 65|66, 20, 67, 59|68, 20, 71, 66|74, 20, 84, 66|91, ... 2016-08-01 09:07:33
Lua instructions: 1038k (214 ms)

[raw result]
[visualize]
#1000119 Parts: 0, 0, 263, 384|264, 0, 268, 384 2016-08-01 09:07:26
Lua instructions: 4876k (601 ms)

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

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

[raw result]
[visualize]
#1000206 Parts: 236, 592, 508, 880|595, 649, 609, 824|672, 656, 688, 824|730, 712, 735, 808|828, 696, 847, 88... 2016-08-01 07:33:43
Lua instructions: 127827k (12196 ms)

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

[raw result]
[visualize]
#1000209 Parts: 162, 34, 166, 463|582, 33, 586, 463 2016-08-01 07:12:27
Lua instructions: 19939k (2122 ms)

[raw result]
[visualize]
#1000197 Parts: 0, 161, 1, 820|33, 0, 1248, 821|1279, 8, 1280, 820 2016-08-01 05:10:41
Lua instructions: 49534k (4704 ms)

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

[raw result]
[visualize]
#1000214 Parts: 0, 399, 7, 526|99, 226, 107, 699|198, 0, 802, 926|894, 226, 902, 699|993, 398, 1000, 527 2016-08-01 05:10:22
Lua instructions: 43952k (4583 ms)

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

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

[raw result]
[visualize]
#1000212 java.lang.OutOfMemoryError: Java heap space 2016-08-01 05:10:12

[raw result]
[visualize]
#1000076 Parts: 25, 28, 33, 77|56, 28, 63, 77 2016-08-01 04:29:55
Lua instructions: 589k (146 ms)

[raw result]
[visualize]
#1000043 Parts: 0, 0, 276, 433|278, 0, 696, 433|699, 0, 713, 430 2016-08-01 04:29:54
Lua instructions: 14589k (1498 ms)

[raw result]
[visualize]
#1000012 Parts: 0, 1, 218, 766|219, 1, 245, 766|246, 1, 933, 766|935, 1, 936, 766|937, 1, 938, 766|949, 1, 95... 2016-08-01 04:29:51
Lua instructions: 50022k (5065 ms)

[raw result]
[visualize]
#1000103 Parts: 0, 35, 61, 57|62, 35, 64, 57|65, 35, 321, 57 2016-08-01 03:49:26
Lua instructions: 1021k (208 ms)

[raw result]
[visualize]
#1000092 Parts: 0, 0, 72, 117|74, 95, 75, 116|79, 95, 81, 116|83, 95, 91, 116|93, 95, 95, 116|109, 95, 124, 1... 2016-08-01 03:31:21
Lua instructions: 1955k (206 ms)

[raw result]
[visualize]
#1000185 Parts: 0, 1, 6, 10|9, 3, 12, 10|13, 3, 19, 10|20, 3, 26, 10|27, 1, 31, 10|33, 3, 38, 10|41, 3, 46, 1... 2016-08-01 03:04:14
Lua instructions: 32k (65 ms)

[raw result]
[visualize]
#1000183 Parts: 0, 0, 6, 12|8, 5, 14, 12|16, 2, 21, 12|22, 3, 26, 12|28, 3, 29, 5|31, 5, 37, 12|39, 5, 45, 12 2016-08-01 02:54:45
Lua instructions: 35k (69 ms)

[raw result]
[visualize]
#1000182 Parts: 0, 1, 6, 9|8, 2, 13, 9|15, 2, 21, 12|23, 2, 29, 9|31, 2, 35, 9|36, 2, 42, 9|44, 2, 50, 9|51, ... 2016-08-01 02:54:42
Lua instructions: 48k (89 ms)

[raw result]
[visualize]
#1000181 Parts: 0, 1, 7, 10|9, 3, 15, 10|17, 3, 22, 10|24, 1, 28, 10|30, 3, 35, 10|37, 3, 42, 10|45, 3, 50, 1... 2016-08-01 02:54:26
Lua instructions: 32k (57 ms)

[raw result]
[visualize]
#1000085 Parts: 20, 23, 45, 62|53, 24, 67, 61|81, 24, 105, 62|116, 24, 133, 61|137, 22, 150, 62|155, 24, 179,... 2016-08-01 02:54:14
Lua instructions: 1963k (358 ms)

[raw result]
[visualize]
#1000178 Parts: 0, 0, 1009, 768|1012, 1, 1013, 767|1015, 1, 1016, 767|1018, 1, 1019, 767|1021, 1, 1024, 767|1... 2016-08-01 02:21:41
Lua instructions: 50365k (5002 ms)

[raw result]
[visualize]
#1000086 Parts: 25, 20, 48, 46|53, 20, 72, 46|76, 19, 96, 47|101, 20, 123, 46|128, 20, 145, 46|150, 20, 166, ... 2016-08-01 02:17:50
Lua instructions: 2627k (368 ms)

[raw result]
[visualize]
#1000150 Parts: 0, 0, 37, 170|42, 21, 48, 63|50, 21, 51, 63|52, 21, 53, 63|55, 21, 56, 63|58, 21, 59, 63|60, ... 2016-08-01 02:17:49
Lua instructions: 7908k (867 ms)

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

[raw result]
[visualize]
#1000084 Parts: 22, 18, 48, 57|54, 19, 76, 56|83, 18, 107, 56|112, 18, 136, 57|141, 19, 163, 56|172, 19, 196,... 2016-08-01 02:17:48
Lua instructions: 1416k (253 ms)

[raw result]
[visualize]
#1000149 Parts: 0, 0, 124, 106|127, 19, 128, 61|132, 19, 143, 61|147, 19, 165, 61|166, 19, 194, 61|195, 19, 2... 2016-08-01 02:02:47
Lua instructions: 4292k (542 ms)

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

[raw result]
[visualize]
#1000051 Parts: 30, 100, 32, 114|35, 13, 120, 128|127, 100, 129, 114 2016-08-01 02:02:46
Lua instructions: 1157k (226 ms)

[raw result]
[visualize]
#1000102 Parts: 0, 22, 46, 44|47, 22, 49, 44|50, 22, 51, 43|52, 0, 281, 44 2016-08-01 02:02:46
Lua instructions: 619k (161 ms)

[raw result]
[visualize]
#1000036 Parts: 3, 2, 373, 385|374, 2, 375, 385 2016-08-01 02:00:00
Lua instructions: 7216k (757 ms)

[raw result]
[visualize]
#1000046 Parts: 0, 0, 104, 249|105, 0, 138, 249|139, 1, 140, 248|142, 1, 167, 249|168, 1, 179, 248|185, 0, 70... 2016-08-01 01:59:59
Lua instructions: 8357k (953 ms)

[raw result]
[visualize]
#1000014 Parts: 1, 1, 7, 18|9, 1, 14, 18|16, 1, 20, 18|21, 1, 27, 18|29, 1, 35, 18|37, 1, 43, 18|45, 1, 50, 1... 2016-08-01 01:59:59
Lua instructions: 166k (26 ms)

[raw result]
[visualize]
#1000027 Parts: 1, 2, 241, 417|243, 2, 602, 417|605, 2, 616, 417 2016-08-01 01:59:38
Lua instructions: 12306k (1184 ms)

[raw result]
[visualize]
#1000077 Parts: 12, 16, 30, 32|32, 9, 49, 32|50, 16, 81, 32|86, 9, 117, 32|119, 16, 136, 32 2016-08-01 01:59:37
Lua instructions: 293k (44 ms)

[raw result]
[visualize]
#1000144 Parts: 3, 1, 125, 701|130, 29, 131, 696|134, 29, 135, 696|137, 29, 138, 696|142, 29, 143, 696|145, 2... 2016-08-01 01:59:30
Lua instructions: 47205k (4615 ms)

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

[raw result]
[visualize]
#1000157 Parts: 0, 0, 168, 768|170, 1, 176, 767|177, 1, 184, 767|185, 1, 189, 767|191, 1, 223, 767|225, 1, 23... 2016-08-01 01:59:12
Lua instructions: 37598k (3633 ms)

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

[raw result]
[visualize]
#1000039 Parts: 0, 1, 81, 199|86, 1, 95, 198|97, 1, 105, 198|107, 1, 110, 198|112, 1, 115, 198|117, 1, 120, 1... 2016-08-01 01:59:12
Lua instructions: 2909k (299 ms)

[raw result]
[visualize]
#1000025 Parts: 468, 1, 980, 1097|985, 1, 1093, 1097|1128, 1, 1428, 1097|1901, 7, 1906, 1097 2016-08-01 01:59:08
Lua instructions: 98486k (9956 ms)

[raw result]
[visualize]
#1000056 Parts: 25, 37, 37, 81|47, 37, 60, 81 2016-08-01 01:59:08
Lua instructions: 495k (55 ms)

[raw result]
[visualize]
#1000160 Parts: 1, 1, 6, 767|8, 1, 14, 767|15, 1, 20, 767|22, 1, 24, 767|25, 1, 27, 767|31, 1, 33, 767|36, 1,... 2016-08-01 01:59:08
Lua instructions: 3138k (421 ms)

[raw result]
[visualize]
#1000151 Parts: 0, 0, 25, 120|40, 3, 41, 15|61, 3, 62, 15|103, 3, 104, 15|110, 5, 111, 15|152, 3, 153, 15|175... 2016-08-01 01:58:50
Lua instructions: 4707k (575 ms)

[raw result]
[visualize]
#1000130 Parts: 0, 1, 218, 768|219, 1, 253, 768|254, 1, 256, 767|257, 1, 258, 767|259, 1, 267, 767|268, 1, 27... 2016-08-01 01:58:49
Lua instructions: 49998k (4906 ms)

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

[raw result]
[visualize]
#1000083 Parts: 21, 14, 45, 42|50, 14, 73, 42|78, 14, 105, 42|109, 14, 130, 42|134, 14, 157, 42|163, 14, 185,... 2016-08-01 01:58:44
Lua instructions: 1107k (228 ms)

[raw result]
[visualize]
#1000114 Parts: 3, 0, 14, 525|15, 0, 685, 525 2016-08-01 01:58:14
Lua instructions: 17021k (1749 ms)

[raw result]
[visualize]
#1000154 Parts: 0, 0, 40, 173|45, 18, 52, 120|53, 18, 59, 120|60, 18, 80, 120|81, 18, 87, 120|88, 18, 94, 120... 2016-08-01 01:58:12
Lua instructions: 7734k (906 ms)

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

[raw result]
[visualize]
#1000153 Parts: 0, 0, 25, 120|30, 75, 32, 90|38, 35, 39, 90|40, 3, 41, 90|46, 3, 47, 90|48, 3, 50, 90|52, 4, ... 2016-08-01 01:58:11
Lua instructions: 4623k (455 ms)

[raw result]
[visualize]
#1000122 Parts: 0, 0, 259, 384|260, 0, 268, 383 2016-08-01 01:58:07
Lua instructions: 4874k (567 ms)

[raw result]
[visualize]
#1000143 Parts: 0, 0, 814, 768|815, 0, 1366, 768 2016-08-01 01:58:06
Lua instructions: 49430k (4924 ms)

[raw result]
[visualize]
#1000155 Parts: 0, 0, 25, 126|30, 3, 34, 75|39, 3, 40, 75|42, 3, 44, 75|45, 4, 49, 75|52, 3, 57, 75|60, 3, 62... 2016-08-01 01:58:06
Lua instructions: 4992k (617 ms)

[raw result]
[visualize]
#1000042 Parts: 14, 1, 864, 766|865, 1, 866, 766|869, 1, 870, 766|872, 1, 875, 766|879, 1, 882, 766|884, 1, 8... 2016-08-01 01:58:00
Lua instructions: 49893k (5043 ms)

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

[raw result]
[visualize]
#1000087 Parts: 56, 64, 57, 85|87, 64, 119, 85|126, 64, 141, 85|148, 64, 166, 85|175, 64, 179, 86|185, 64, 18... 2016-08-01 01:58:00
Lua instructions: 1662k (266 ms)

[raw result]
[visualize]
#1000079 Parts: 19, 19, 49, 116|57, 19, 90, 115|92, 19, 111, 116|118, 19, 123, 87|124, 19, 201, 116|202, 19, ... 2016-08-01 01:57:55
Lua instructions: 4953k (497 ms)

[raw result]
[visualize]
#1000105 Parts: 31, 32, 49, 53|55, 32, 75, 54|79, 32, 87, 54|91, 32, 101, 54|104, 32, 126, 54|128, 32, 134, 5... 2016-08-01 01:57:55
Lua instructions: 860k (93 ms)

[raw result]
[visualize]
#1000112 Parts: 0, 0, 418, 399|419, 1, 424, 398|426, 1, 439, 398|440, 1, 450, 398 2016-08-01 01:57:54
Lua instructions: 8509k (903 ms)

[raw result]
[visualize]
#1000033 Parts: 21, 340, 26, 778|28, 10, 29, 992|44, 9, 45, 990|46, 9, 88, 1064|90, 9, 93, 1053|94, 9, 112, 1... 2016-08-01 01:57:53
Lua instructions: 54575k (6003 ms)

[raw result]
[visualize]
#1000170 Parts: 2, 5, 224, 616|225, 5, 571, 616|572, 6, 580, 574|586, 6, 587, 185|590, 5, 944, 588 2016-08-01 01:57:48
Lua instructions: 29300k (3217 ms)

[raw result]
[visualize]
#1000137 Parts: 0, 0, 43, 515|54, 1, 55, 514|83, 1, 84, 514|103, 1, 104, 514|114, 0, 116, 514|118, 1, 120, 51... 2016-08-01 01:57:40
Lua instructions: 20058k (2063 ms)

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

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

[raw result]
[visualize]
#1000041 Parts: 52, 58, 58, 408|68, 41, 251, 433 2016-08-01 01:57:37
Lua instructions: 6993k (713 ms)

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

[raw result]
[visualize]
#1000172 Parts: 55, 105, 71, 126|84, 45, 125, 127|127, 45, 133, 126|136, 45, 145, 126|154, 45, 156, 126|160, ... 2016-08-01 01:57:37
Lua instructions: 1912k (332 ms)

[raw result]
[visualize]
#1000173 Parts: 55, 105, 71, 126|83, 44, 122, 127|123, 44, 125, 127|127, 44, 133, 126|136, 44, 145, 126|154, ... 2016-08-01 01:57:37
Lua instructions: 1915k (323 ms)

[raw result]
[visualize]
#1000091 Parts: 0, 61, 32, 82|39, 61, 54, 82|61, 61, 79, 82|86, 61, 106, 83|113, 61, 114, 76|116, 61, 118, 83... 2016-08-01 01:57:37
Lua instructions: 1380k (154 ms)

[raw result]
[visualize]
#309 java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operat... 2016-08-01 01:57:37

[raw result]
[visualize]
#1000096 Parts: 0, 1, 1, 186|3, 0, 546, 189 2016-08-01 01:57:36
Lua instructions: 4913k (586 ms)

[raw result]
[visualize]
#1000131 Parts: 0, 1, 99, 768|100, 1, 267, 768|268, 1, 274, 767|275, 1, 277, 767|279, 1, 280, 767|282, 1, 288... 2016-08-01 01:57:34
Lua instructions: 50187k (6427 ms)

[raw result]
[visualize]
#1000136 Parts: 10, 0, 262, 497|263, 0, 736, 497 2016-08-01 01:57:29
Lua instructions: 18023k (1945 ms)

[raw result]
[visualize]
#1000032 Parts: 0, 1, 686, 413|687, 1, 697, 413 2016-08-01 01:57:27
Lua instructions: 13668k (1371 ms)

[raw result]
[visualize]
#1000139 Parts: 0, 0, 43, 515|54, 1, 55, 514|83, 1, 84, 514|103, 1, 104, 514|114, 0, 116, 514|118, 1, 120, 51... 2016-08-01 01:57:26
Lua instructions: 20058k (2292 ms)

[raw result]
[visualize]
#1000138 Parts: 0, 0, 43, 515|54, 1, 55, 514|83, 1, 84, 514|103, 1, 104, 514|114, 0, 116, 514|118, 1, 120, 51... 2016-08-01 01:57:24
Lua instructions: 20058k (2073 ms)

[raw result]
[visualize]
#1000010 Parts: 0, 1, 92, 1198|93, 1, 95, 1198|98, 1, 260, 1198|261, 1, 274, 1198|275, 1, 280, 1198|290, 1, 2... 2016-08-01 01:57:21
Lua instructions: 112052k (11197 ms)

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

[raw result]
[visualize]
#1000082 Parts: 38, 29, 69, 66|75, 29, 105, 66|114, 29, 146, 66|162, 29, 193, 66|200, 29, 230, 66|237, 28, 27... 2016-08-01 01:57:02
Lua instructions: 4417k (540 ms)

[raw result]
[visualize]
#1000081 Parts: 34, 23, 41, 60|57, 23, 63, 60|73, 23, 103, 60|111, 23, 138, 60|147, 23, 175, 60|182, 23, 212,... 2016-08-01 01:57:02
Lua instructions: 2996k (401 ms)

[raw result]
[visualize]
#1000047 Parts: 0, 1, 22, 768|24, 1, 34, 767|45, 1, 46, 767|61, 1, 62, 767|165, 1, 166, 767|167, 1, 1220, 768... 2016-08-01 01:57:00
Lua instructions: 49686k (4842 ms)

[raw result]
[visualize]
#1000013 Parts: 0, 1, 153, 1198|154, 1, 164, 1198|165, 1, 168, 1198|170, 1, 171, 1198|180, 1, 181, 1198|187, ... 2016-08-01 01:56:55
Lua instructions: 110280k (10608 ms)

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

[raw result]
[visualize]
#1000100 Parts: 14, 11, 15, 115|18, 11, 19, 114|20, 11, 22, 115|23, 11, 25, 115|27, 11, 29, 115|30, 13, 35, 1... 2016-08-01 01:56:36
Lua instructions: 2019k (310 ms)

[raw result]
[visualize]
#1000142 Parts: 0, 1, 87, 768|88, 1, 90, 767|91, 0, 392, 768|394, 1, 406, 767|408, 1, 415, 767|417, 1, 418, 7... 2016-08-01 01:56:35
Lua instructions: 49796k (4932 ms)

[raw result]
[visualize]
#1000116 Parts: 11, 0, 22, 531|23, 0, 693, 531 2016-08-01 01:56:30
Lua instructions: 17790k (1956 ms)

[raw result]
[visualize]
#1000148 Parts: 0, 0, 23, 342|29, 5, 31, 73|43, 5, 45, 57|51, 2, 52, 57|65, 5, 66, 57|89, 5, 90, 57|136, 3, 1... 2016-08-01 01:56:30
Lua instructions: 4061k (523 ms)

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

[raw result]
[visualize]
#1000171 Parts: 1, 0, 39, 34|42, 0, 62, 34|66, 9, 86, 44|101, 0, 127, 34|129, 9, 151, 35|153, 9, 174, 35|176,... 2016-08-01 01:56:28
Lua instructions: 1602k (278 ms)

[raw result]
[visualize]
#1000222 LuaError: #475:3 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 18:52:03

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

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

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

[raw result]
[visualize]
#1000141 LuaError: #475:3 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 18:43:15

[raw result]
[visualize]
#1003958 LuaError: #475:3 vm error: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientCon... 2016-07-31 18:32:17

[raw result]
[visualize]
#1000554 Parts: 0, 0, 4, 453|17, 0, 20, 453|82, 0, 86, 453|88, 0, 94, 453|98, 0, 100, 453|106, 0, 112, 453|13... 2015-08-12 21:09:46
Lua instructions: 9469k (938 ms)

[raw result]
[visualize]
#1000553 Parts: 0, 0, 406, 445|423, 0, 431, 445 2015-08-12 20:56:14
Lua instructions: 9064k (890 ms)

[raw result]
[visualize]
#1000519 Parts: 14, 1, 396, 768|397, 1, 400, 767|401, 1, 402, 767|406, 1, 414, 767|415, 1, 421, 767|422, 1, 4... 2015-08-10 08:53:37
Lua instructions: 50082k (4845 ms)

[raw result]
[visualize]
#1000019 Parts: 17, 9, 21, 34|48, 9, 50, 99|52, 9, 55, 99|57, 9, 64, 99|66, 9, 69, 99|71, 9, 73, 99|75, 9, 77... 2015-07-18 06:02:55
Lua instructions: 2930k (406 ms)

[raw result]
[visualize]
#183 Parts: 2, 0, 14, 46|18, 0, 30, 46|34, 0, 46, 46|50, 0, 62, 46|66, 2, 78, 46|82, 0, 94, 46|98, 0, 110... 2015-07-18 01:40:33
Lua instructions: 1251k (141 ms)

[raw result]
[visualize]
#1000038 Parts: 0, 1, 35, 198|42, 1, 46, 198|48, 1, 52, 198|54, 1, 61, 198|63, 1, 71, 198|73, 1, 76, 198|86, ... 2015-07-18 01:35:00
Lua instructions: 2933k (331 ms)

[raw result]
[visualize]
#1000301 javax.imageio.IIOException: Can't get input stream from URL! 2015-07-17 02:14:42

[raw result]
[visualize]
#1000331 Parts: 49, 107, 50, 194|53, 0, 309, 285 2015-07-15 01:49:17
Lua instructions: 4858k (463 ms)

[raw result]
[visualize]
#1000294 Parts: 3, 4, 8, 37|10, 4, 15, 37|16, 4, 18, 28|19, 4, 24, 37|25, 4, 29, 28|30, 4, 35, 37|36, 4, 38, ... 2015-06-22 07:36:57
Lua instructions: 521k (159 ms)

[raw result]
[visualize]
#1000152 Parts: 0, 0, 37, 170|42, 21, 48, 138|50, 21, 56, 138|57, 21, 62, 138|63, 21, 70, 138|71, 21, 76, 138... 2015-06-03 23:51:23
Lua instructions: 7336k (845 ms)

[raw result]
[visualize]
#1000248 Parts: 0, 1, 1, 767|4, 0, 26, 768|27, 1, 30, 767|31, 1, 63, 768|64, 1, 87, 768|88, 1, 90, 767|91, 1,... 2015-05-31 00:04:54
Lua instructions: 49718k (5011 ms)

[raw result]
[visualize]
#1000259 Parts: 0, 1, 4, 501|5, 0, 669, 505 2015-05-20 20:46:53
Lua instructions: 15946k (1549 ms)

[raw result]
[visualize]
#1000022 Parts: 2, 0, 587, 271|589, 0, 597, 204|598, 0, 618, 204|619, 1, 647, 204|649, 1, 657, 204|658, 1, 67... 2015-05-20 11:17:54
Lua instructions: 11473k (1273 ms)

[raw result]
[visualize]
#1000078 Parts: 11, 9, 39, 44|47, 9, 81, 45|99, 9, 113, 44|119, 9, 133, 44|137, 9, 165, 44|170, 9, 184, 44|19... 2015-05-15 22:27:38
Lua instructions: 866k (205 ms)

[raw result]
[visualize]
#1000204 Parts: 0, 0, 11, 611|589, 0, 600, 611 2015-05-09 15:17:33
Lua instructions: 17285k (1818 ms)

[raw result]
[visualize]
#1000180 Parts: 0, 19, 4, 148|6, 21, 12, 148|13, 21, 19, 148|20, 21, 25, 149|27, 21, 32, 149|34, 21, 40, 136|... 2015-05-07 16:06:10
Lua instructions: 2228k (314 ms)

[raw result]
[visualize]
#1000205 java.lang.OutOfMemoryError: Java heap space 2015-05-02 03:08:07

[raw result]
[visualize]
#1000026 Parts: 3, 1, 243, 416|245, 1, 604, 416|607, 1, 618, 416|624, 183, 626, 413|627, 183, 636, 413|637, 1... 2015-04-28 01:31:07
Lua instructions: 19146k (2160 ms)

[raw result]
[visualize]
#1000241 java.lang.IllegalArgumentException: image == null! 2015-04-27 08:41:05

[raw result]
[visualize]
#1000184 Parts: 0, 1, 6, 10|8, 3, 13, 10|15, 3, 21, 13|23, 3, 29, 10|31, 0, 37, 10|39, 3, 45, 10|47, 0, 48, 1... 2015-04-25 00:16:08
Lua instructions: 40k (63 ms)

[raw result]
[visualize]
#1000238 Parts: 8, 1, 502, 768|503, 1, 1163, 768|1297, 1, 1298, 767|1351, 1, 1366, 767 2015-04-07 00:25:53
Lua instructions: 49477k (4758 ms)

[raw result]
[visualize]

Snippet ID: #475
Snippet name: Tolerant horizontal split with crop
Eternal ID of this version: #475/1
Text MD5: f8e55565e3c7397dce693998e7991058
Author: stefan
Category:
Type: Lua code - Image recognition
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-02-22 18:18:51
Source code size: 1224 bytes / 58 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 1907 / 177
Referenced in: [show references]