-
Notifications
You must be signed in to change notification settings - Fork 13
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 crop the image? #5
Comments
Ahh yes, the cropping issue :D First of all, you should have identified the font/font-size that is most likely used. I have not found (meaning I have not looked) a way to automatically determine the symbols that are the "highest" / "lowest" or the letters with biggest ascent and descent, so you have to try out a bit. You have to crop your images in a way that the height and width are obviously multiples of 6, and the height should be so that the highest/lowest letters fit into your cropped image, even if this let some completely white rows at the top and/or bottom. If you have an example, you can post it here. |
When I run your code, I get an error saying that the number of k-means clusters is not valid. I am still not sure how to crop the image. If it is an image with a block size of 6, how should I crop the image?
The text was updated successfully, but these errors were encountered: