Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Direction of Stroke Width Transform #99
I am trying to apply stroke width transform on some jpeg files to highlight the text area. The implementation is pretty straight forward. However, I am having a problem determining which direction to use.
Some images have light text on dark background, some have dark on light and some have both.
What is the best way to detect which direction to choose based on the loaded image.