Skip to content

Commit

Permalink
Merge pull request #7 from fsarachu/bugfix/dynamic-num-letters
Browse files Browse the repository at this point in the history
Dynamically pass num_letters argument based on captcha solution
  • Loading branch information
dominhhai authored Oct 30, 2019
2 parents efed6ce + 96f23d8 commit 69789a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/create_train_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def build_data_map(data_path):
grayscale_image = rgb2gray(original_image)

# split image
letters = split_letters(grayscale_image, debug=True)
letters = split_letters(grayscale_image, num_letters=len(contents), debug=True)
if letters != None:
for i, letter in enumerate(letters):
content = contents[i]
Expand Down

0 comments on commit 69789a6

Please sign in to comment.