Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to test using a single image #40

Open
WilliamSMendes opened this issue Feb 4, 2022 · 1 comment
Open

How to test using a single image #40

WilliamSMendes opened this issue Feb 4, 2022 · 1 comment

Comments

@WilliamSMendes
Copy link

Hey, i found this code and it's amazing, thanks for all! I have a issue... how to pass a single captcha per time? In the example you pass a batch.

plus issue: how can i gerenate a black and white captcha? In this case you pass the number 3 on the argument C (RGB), i need to generate more collored type of captchas.

@snowfluke
Copy link

snowfluke commented Feb 8, 2022

For the black and white captcha I think you need to process the image generated to be grayscaled using PIL

from PIL import Image
 
img = Image.open('captcha.png').convert('L')
img.save('captcha-blackwhite.png')

If you want to pass one image you can refer to this notebook https://github.com/JackonYang/captcha-tensorflow/blob/master/captcha-solver-model-restore.ipynb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants