forked from 00nanhai/captchacker2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.txt
517 lines (343 loc) · 22.2 KB
/
error.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
Traceback (most recent call last):
File "train.py", line 5, in <module>
app.generate_simulation_base()
TypeError: generate_simulation_base() takes exactly 3 arguments (1 given)
Traceback (most recent call last):
File "train.py", line 5, in <module>
app.generate_simulation_base(True,False)
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 65, in generate_simulation_base
characters_generate_simulation_db.generate_simulation_base(GENERATE_TRAINING_SET,GENERATE_VALIDATION_SET)
File "/Users/tangxuguo/django/spider/captchacker2/a/characters_generate_simulation_db.py", line 43, in generate_simulation_base
DISTORTION_H_MAX,SCALE_MIN,SCALE_MAX,STEP, elem_to_gen, FONTS, ALIGN_RANGEX, ALIGN_RANGEY, DEFAULT_SIZE, ROTATIONS)
File "/Users/tangxuguo/django/spider/captchacker2/a/characters_generate_element.py", line 87, in Generate_Set
captcha=MyCaptcha(scale, distortion = (distort_w,distort_h), solution = elem, font=font, alignx=alignx, aligny=aligny, size = DEFAULT_SIZE)
File "/Users/tangxuguo/django/spider/captchacker2/a/characters_generate_element.py", line 29, in __init__
font = ImageFont.truetype(*self.fontFactory.pick())
File "/Library/Python/2.7/site-packages/PIL/ImageFont.py", line 262, in truetype
return FreeTypeFont(font, size, index, encoding)
File "/Library/Python/2.7/site-packages/PIL/ImageFont.py", line 142, in __init__
self.font = core.getfont(font, size, index, encoding)
IOError: cannot open resource
Traceback (most recent call last):
File "train.py", line 5, in <module>
app.generate_simulation_base(True,False)
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 65, in generate_simulation_base
characters_generate_simulation_db.generate_simulation_base(GENERATE_TRAINING_SET,GENERATE_VALIDATION_SET)
File "/Users/tangxuguo/django/spider/captchacker2/a/characters_generate_simulation_db.py", line 43, in generate_simulation_base
DISTORTION_H_MAX,SCALE_MIN,SCALE_MAX,STEP, elem_to_gen, FONTS, ALIGN_RANGEX, ALIGN_RANGEY, DEFAULT_SIZE, ROTATIONS)
File "/Users/tangxuguo/django/spider/captchacker2/a/characters_generate_element.py", line 87, in Generate_Set
captcha=MyCaptcha(scale, distortion = (distort_w,distort_h), solution = elem, font=font, alignx=alignx, aligny=aligny, size = DEFAULT_SIZE)
File "/Users/tangxuguo/django/spider/captchacker2/a/characters_generate_element.py", line 29, in __init__
font = ImageFont.truetype(*self.fontFactory.pick())
File "/Library/Python/2.7/site-packages/PIL/ImageFont.py", line 262, in truetype
return FreeTypeFont(font, size, index, encoding)
File "/Library/Python/2.7/site-packages/PIL/ImageFont.py", line 142, in __init__
self.font = core.getfont(font, size, index, encoding)
IOError: cannot open resource
Traceback (most recent call last):
File "train.py", line 6, in <module>
app.generate_simulation_based_model()
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 69, in generate_simulation_based_model
characters_train_test_SVM.generate_simulation_based_model()
File "/Users/tangxuguo/django/spider/captchacker2/a/characters_train_test_SVM.py", line 46, in generate_simulation_based_model
characters_train_model(MODEL_FILE,TRAINING_FOLDER)
File "/Users/tangxuguo/django/spider/captchacker2/a/characters_train_model.py", line 52, in characters_train_model
param = svm_parameter('-t %s -c %s -b %s' % (KERNEL, C, 1))
NameError: global name 'KERNEL' is not defined
Traceback (most recent call last):
File "train.py", line 6, in <module>
app.generate_simulation_based_model()
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 69, in generate_simulation_based_model
characters_train_test_SVM.generate_simulation_based_model()
File "/Users/tangxuguo/django/spider/captchacker2/a/characters_train_test_SVM.py", line 46, in generate_simulation_based_model
characters_train_model(MODEL_FILE,TRAINING_FOLDER)
File "/Users/tangxuguo/django/spider/captchacker2/a/characters_train_model.py", line 39, in characters_train_model
labels.append(ord(folder[-1])-65)
KeyboardInterrupt
Traceback (most recent call last):
File "train.py", line 6, in <module>
app.generate_simulation_based_model()
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 69, in generate_simulation_based_model
characters_train_test_SVM.generate_simulation_based_model()
File "/Users/tangxuguo/django/spider/captchacker2/a/characters_train_test_SVM.py", line 46, in generate_simulation_based_model
characters_train_model(MODEL_FILE,TRAINING_FOLDER)
File "/Users/tangxuguo/django/spider/captchacker2/a/characters_train_model.py", line 52, in characters_train_model
param = svm_parameter('-t %s -c %s -b %s' % (KERNEL, C, 1))
NameError: global name 'C' is not defined
Traceback (most recent call last):
File "train.py", line 6, in <module>
app.generate_simulation_based_model()
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 69, in generate_simulation_based_model
characters_train_test_SVM.generate_simulation_based_model()
File "/Users/tangxuguo/django/spider/captchacker2/a/characters_train_test_SVM.py", line 158, in generate_simulation_based_model
im = Image.open(os.path.join(folder, file))
NameError: global name 'Image' is not defined
Traceback (most recent call last):
File "train.py", line 6, in <module>
app.generate_simulation_based_model()
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 69, in generate_simulation_based_model
characters_train_test_SVM.generate_simulation_based_model()
File "/Users/tangxuguo/django/spider/captchacker2/a/characters_train_test_SVM.py", line 200, in generate_simulation_based_model
model = load_model(os.path.join(MODEL_FOLDER, MODEL_FILE))
NameError: global name 'load_model' is not defined
Traceback (most recent call last):
File "train.py", line 6, in <module>
app.generate_simulation_based_model()
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 69, in generate_simulation_based_model
characters_train_test_SVM.generate_simulation_based_model()
File "/Users/tangxuguo/django/spider/captchacker2/a/characters_train_test_SVM.py", line 235, in generate_simulation_based_model
write(MODEL_FILE + '\t' + str((1 - (1.*nb_errors/nb_captchas_tested))*100) + "%")
NameError: global name 'write' is not defined
Traceback (most recent call last):
File "train.py", line 5, in <module>
app.generate_simulation_base(True,True)
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 66, in generate_simulation_base
characters_generate_simulation_db.generate_simulation_base(GENERATE_TRAINING_SET,GENERATE_VALIDATION_SET)
File "/Users/tangxuguo/django/spider/captchacker2/a/characters_generate_simulation_db.py", line 47, in generate_simulation_base
process_folder(DESTINATION_FOLDER)
File "/Users/tangxuguo/django/spider/captchacker2/a/characters_center.py", line 65, in process_folder
process_file(os.path.join(folder, file),WIDTH, HEIGHT)
File "/Users/tangxuguo/django/spider/captchacker2/a/characters_center.py", line 24, in process_file
srcImg = cv.LoadImage(filenameIN,0)
NameError: global name 'cv' is not defined
Traceback (most recent call last):
File "train.py", line 1, in <module>
from captchacker import *
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 11, in <module>
import characters_train_test_SVM
File "/Users/tangxuguo/django/spider/captchacker2/a/characters_train_test_SVM.py", line 222
print file.split('number')[0],set_files_errors.
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "train.py", line 7, in <module>
app.generate_simulation_based_model(model_file)
TypeError: generate_simulation_based_model() takes exactly 1 argument (2 given)
Traceback (most recent call last):
File "train.py", line 6, in <module>
model_file = app.generate_simulation_based_model()
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 69, in generate_simulation_based_model
characters_train_test_SVM.generate_simulation_based_model()
File "/Users/tangxuguo/django/spider/captchacker2/a/characters_train_test_SVM.py", line 154, in generate_simulation_based_model
im = Image.open(os.path.join(folder, file))
File "/Library/Python/2.7/site-packages/PIL/Image.py", line 2266, in open
im = factory(fp, filename)
File "/Library/Python/2.7/site-packages/PIL/ImageFile.py", line 97, in __init__
self._open()
File "/Library/Python/2.7/site-packages/PIL/BmpImagePlugin.py", line 194, in _open
self._bitmap(offset=offset)
File "/Library/Python/2.7/site-packages/PIL/BmpImagePlugin.py", line 180, in _bitmap
self.tile = [('raw', (0, 0, file_info['width'], file_info['height']), offset or self.fp.tell(),
KeyboardInterrupt
Traceback (most recent call last):
File "train.py", line 8, in <module>
TypeError: generate_simulation_based_model() takes exactly 1 argument (2 given)
Traceback (most recent call last):
File "train.py", line 13, in <module>
model_file = app.generate_simulation_based_model()
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 69, in generate_simulation_based_model
characters_train_test_SVM.generate_simulation_based_model()
File "/Users/tangxuguo/django/spider/captchacker2/a/characters_train_test_SVM.py", line 157, in generate_simulation_based_model
samples.append(list(im.point(lambda i: (i/255.)).getdata()))
File "/Library/Python/2.7/site-packages/PIL/Image.py", line 1384, in point
lut = [lut(i) for i in range(256)] * self.im.bands
File "/Users/tangxuguo/django/spider/captchacker2/a/characters_train_test_SVM.py", line 157, in <lambda>
samples.append(list(im.point(lambda i: (i/255.)).getdata()))
KeyboardInterrupt
Traceback (most recent call last):
File "train.py", line 15, in <module>
app.generate_simulation_based_model(model_file)
TypeError: generate_simulation_based_model() takes exactly 1 argument (2 given)
Traceback (most recent call last):
File "train.py", line 15, in <module>
app.test_simulation_based_model(model_file)
AttributeError: captchacker instance has no attribute 'test_simulation_based_model'
Traceback (most recent call last):
File "train.py", line 17, in <module>
app.test_based_model(model_file,'DBTest-Simulation_based')
TypeError: test_based_model() takes at most 2 arguments (3 given)
Traceback (most recent call last):
File "train.py", line 17, in <module>
app.test_based_model(model_file,'DBTest-Simulation_based')
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 79, in test_based_model
File "/Users/tangxuguo/django/spider/captchacker2/a/characters_train_test_SVM.py", line 164, in test_based_model
char, max_score, scores = predict(model, im)
File "/Users/tangxuguo/django/spider/captchacker2/a/break_captcha_utils.py", line 86, in predict
prediction,p_acc ,p_vals= svm_predict([1],[data],model,'-b 1')
File "/Users/tangxuguo/django/spider/captchacker2/a/svmutil.py", line 212, in svm_predict
svm_type = m.get_svm_type()
AttributeError: 'NoneType' object has no attribute 'get_svm_type'
Traceback (most recent call last):
File "train.py", line 14, in <module>
app.generate_simulation_base(True,True,True,True)
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 67, in generate_simulation_base
characters_generate_simulation_db.generate_simulation_base(GENERATE_TRAINING_SET,GENERATE_VALIDATION_SET)
TypeError: generate_simulation_base() takes exactly 4 arguments (2 given)
Traceback (most recent call last):
File "test.py", line 8, in <module>
file = save_image(i,image_url)
File "/Users/tangxuguo/django/spider/captchacker2/a/break_captcha_utils.py", line 80, in save_image
write_file(file, a)
File "/Users/tangxuguo/django/spider/captchacker2/a/break_captcha_utils.py", line 55, in write_file
f=open(file, 'wb')
IOError: [Errno 2] No such file or directory: 'Egoshare/Rough Captchas/Image000.jpg'
Traceback (most recent call last):
File "test.py", line 8, in <module>
file = save_image(i,image_url)
File "/Users/tangxuguo/django/spider/captchacker2/a/break_captcha_utils.py", line 80, in save_image
write_file(file, a)
File "/Users/tangxuguo/django/spider/captchacker2/a/break_captcha_utils.py", line 55, in write_file
f=open(file, 'wb')
IOError: [Errno 2] No such file or directory: 'Rough Captchas/Image000.jpg'
Traceback (most recent call last):
File "test.py", line 10, in <module>
values,prob,predictions_detail = app.get_result()
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 52, in get_result
self.load_svm_models()
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 31, in load_svm_models
print 'The specified model file: \"'+chemin +'\" was not found. Aborting.'
NameError: global name 'chemin' is not defined
Traceback (most recent call last):
File "test.py", line 10, in <module>
values,prob,predictions_detail = app.get_result()
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 53, in get_result
letters_path = preprocess_captcha_part(self.image_file)
File "/Users/tangxuguo/django/spider/captchacker2/a/break_captcha_utils.py", line 221, in preprocess_captcha_part
letter = Image.fromstring("L", cv.GetSize(letters[i]), letters[i].tostring())
TypeError: CvArr argument 'arr' must be IplImage, CvMat or CvMatND. Use fromarray() to convert numpy arrays to CvMat or cvMatND
Traceback (most recent call last):
File "test.py", line 10, in <module>
values,prob,predictions_detail = app.get_result()
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 54, in get_result
values,prob,predictions_detail = break_captcha(self.model, letters_path)
File "/Users/tangxuguo/django/spider/captchacker2/a/break_captcha_utils.py", line 100, in break_captcha
letters.append(Image.open(letters_path[i]))
File "/Library/Python/2.7/site-packages/PIL/Image.py", line 2257, in open
prefix = fp.read(16)
File "/Library/Python/2.7/site-packages/PIL/Image.py", line 622, in __getattr__
raise AttributeError(name)
AttributeError: read
Traceback (most recent call last):
File "test.py", line 10, in <module>
values,prob,predictions_detail = app.get_result()
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 54, in get_result
values,prob,predictions_detail = break_captcha(self.model, letters_path)
File "/Users/tangxuguo/django/spider/captchacker2/a/break_captcha_utils.py", line 101, in break_captcha
letters.append(Image.open(letters_path[i]))
File "/Library/Python/2.7/site-packages/PIL/Image.py", line 2257, in open
prefix = fp.read(16)
File "/Library/Python/2.7/site-packages/PIL/Image.py", line 622, in __getattr__
raise AttributeError(name)
AttributeError: read
Traceback (most recent call last):
File "test.py", line 10, in <module>
values,prob,predictions_detail = app.get_result()
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 55, in get_result
values,prob,predictions_detail = break_captcha(self.model, letters_path)
File "/Users/tangxuguo/django/spider/captchacker2/a/break_captcha_utils.py", line 101, in break_captcha
letters.append(Image.open(letters_path[i]))
File "/Library/Python/2.7/site-packages/PIL/Image.py", line 2257, in open
prefix = fp.read(16)
File "/Library/Python/2.7/site-packages/PIL/Image.py", line 622, in __getattr__
raise AttributeError(name)
AttributeError: read
Traceback (most recent call last):
File "test.py", line 10, in <module>
values,prob,predictions_detail = app.get_result()
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 55, in get_result
values,prob,predictions_detail = break_captcha(self.model, letters_path)
File "/Users/tangxuguo/django/spider/captchacker2/a/break_captcha_utils.py", line 103, in break_captcha
prediction, max_score, dico = predict(model, letters[i])
File "/Users/tangxuguo/django/spider/captchacker2/a/break_captcha_utils.py", line 86, in predict
prediction,p_acc ,p_vals= svm_predict([1],[data],model,'-b 1')
File "/Users/tangxuguo/django/spider/captchacker2/a/svmutil.py", line 230, in svm_predict
label = libsvm.svm_predict_probability(m, xi, prob_estimates)
KeyboardInterrupt
Traceback (most recent call last):
File "test.py", line 10, in <module>
values,prob,predictions_detail = app.get_result()
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 53, in get_result
letters_path = preprocess_captcha_part(self.image_file)
File "/Users/tangxuguo/django/spider/captchacker2/a/break_captcha_utils.py", line 219, in preprocess_captcha_part
letters = split_captcha(file)
File "/Users/tangxuguo/django/spider/captchacker2/a/break_captcha_utils.py", line 214, in split_captcha
process_file(letters_path[i], WIDTH = 31, HEIGHT = 31)
NameError: global name 'process_file' is not defined
Traceback (most recent call last):
File "test.py", line 10, in <module>
values,prob,predictions_detail = app.get_result()
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 53, in get_result
letters_path = preprocess_captcha_part(self.image_file)
File "/Users/tangxuguo/django/spider/captchacker2/a/break_captcha_utils.py", line 219, in preprocess_captcha_part
letters = split_captcha(file)
File "/Users/tangxuguo/django/spider/captchacker2/a/break_captcha_utils.py", line 214, in split_captcha
process_file(letters_path[i], WIDTH = 31, HEIGHT = 31)
IndexError: list index out of range
Traceback (most recent call last):
File "test.py", line 10, in <module>
values,prob,predictions_detail = app.get_result()
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 52, in get_result
self.load_svm_models()
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 37, in load_svm_models
self.model = svm_load_model(self.svm_model_files)
File "/Users/tangxuguo/django/spider/captchacker2/a/svmutil.py", line 42, in svm_load_model
model = libsvm.svm_load_model(model_file_name.encode())
KeyboardInterrupt
Traceback (most recent call last):
File "test.py", line 10, in <module>
values,prob,predictions_detail = app.get_result()
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 52, in get_result
self.load_svm_models()
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 37, in load_svm_models
self.model = svm_load_model(self.svm_model_files)
File "/Users/tangxuguo/django/spider/captchacker2/a/svmutil.py", line 42, in svm_load_model
model = libsvm.svm_load_model(model_file_name.encode())
KeyboardInterrupt
Traceback (most recent call last):
File "test.py", line 10, in <module>
values,prob,predictions_detail = app.get_result()
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 53, in get_result
letters_path = preprocess_captcha_part(self.image_file)
File "/Users/tangxuguo/django/spider/captchacker2/a/break_captcha_utils.py", line 224, in preprocess_captcha_part
letters = split_captcha(file)
File "/Users/tangxuguo/django/spider/captchacker2/a/break_captcha_utils.py", line 187, in split_captcha
if (CCs4[2].comp[0] < 20):
IndexError: list index out of range
Traceback (most recent call last):
File "train.py", line 14, in <module>
app.generate_simulation_base(True,True,False,True,False)
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 69, in generate_simulation_base
characters_generate_simulation_db.generate_simulation_base(GENERATE_TRAINING_SET,GENERATE_VALIDATION_SET,GENERATE_CAPITAL_LETTERS,GENERATE_DIGITS )
TypeError: generate_simulation_base() takes exactly 5 arguments (4 given)
Traceback (most recent call last):
File "train.py", line 14, in <module>
app.generate_simulation_base(True,True,False,True,False)
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 69, in generate_simulation_base
characters_generate_simulation_db.generate_simulation_base(GENERATE_TRAINING_SET,GENERATE_VALIDATION_SET,GENERATE_CAPITAL_LETTERS,GENERATE_SMALL_LETTERS,GENERATE_DIGITS )
File "/Users/tangxuguo/django/spider/captchacker2/a/characters_generate_simulation_db.py", line 25, in generate_simulation_base
elem_to_gen = Generate_Element_List(GENERATE_CAPITAL_LETTERS, GENERATE_DIGITS)
TypeError: Generate_Element_List() takes exactly 3 arguments (2 given)
Traceback (most recent call last):
File "train.py", line 14, in <module>
app.generate_simulation_base(True,True,False,True,False)
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 69, in generate_simulation_base
characters_generate_simulation_db.generate_simulation_base(GENERATE_TRAINING_SET,GENERATE_VALIDATION_SET,GENERATE_CAPITAL_LETTERS,GENERATE_SMALL_LETTERS,GENERATE_DIGITS )
File "/Users/tangxuguo/django/spider/captchacker2/a/characters_generate_simulation_db.py", line 55, in generate_simulation_base
elem_to_gen = Generate_Element_List(GENERATE_CAPITAL_LETTERS, GENERATE_DIGITS)
TypeError: Generate_Element_List() takes exactly 3 arguments (2 given)
Traceback (most recent call last):
File "test.py", line 10, in <module>
values,prob,predictions_detail = app.get_result()
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 55, in get_result
values,prob,predictions_detail = break_captcha(self.model, letters_path)
File "/Users/tangxuguo/django/spider/captchacker2/a/break_captcha_utils.py", line 117, in break_captcha
prob = prob/len(predictions_detail)
ZeroDivisionError: float division by zero
Traceback (most recent call last):
File "test.py", line 10, in <module>
values,prob,predictions_detail = app.get_result()
File "/Users/tangxuguo/django/spider/captchacker2/a/captchacker.py", line 55, in get_result
values,prob,predictions_detail = break_captcha(self.model, letters_path)
File "/Users/tangxuguo/django/spider/captchacker2/a/break_captcha_utils.py", line 117, in break_captcha
prob = prob/len(predictions_detail)
ZeroDivisionError: float division by zero