-
Notifications
You must be signed in to change notification settings - Fork 40
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
You have '.png' hardcoded in the server. #22
Comments
Hi kofoednielsen, PNG is hardcoded since AOCR only supports PNG and not JPG. The labelling script supports labelling JPG files, but they still need to be converted to PNG before uploading to the server. I haven't gotten around to adding this conversion function to the labeller script. In the mean time, you can use something like this to convert all your images to PNG for uploading:
This is usually the small script I use for conversion, but I'd like to integrate it into the labelling script to already convert images to PNG. |
You can also do it with a simple Just wanted to let you know, as others might run into the same problem. |
Hi kofoednielsen, Apologies for the late response but I've been busy at work. Yes, command line tools can also be used to solve this problem. However I want to code a converter into the labelling script already. I've reopened the issue and will close it once I get around to releasing the new version with the above update added. |
If i run
captcha22 client label --image-type jpg
, and give the genreated zip file to the engine. I get this errorLikely because you have .png hardcoded here:
https://github.com/FSecureLABS/captcha22/blob/f5e2662f64cbb4d2606982a1b1d0a449a081631f/captcha22/lib/server/captcha22.py#L60
The text was updated successfully, but these errors were encountered: