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

Direction of Stroke Width Transform #99

Open
redserpent7 opened this Issue Feb 2, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@redserpent7
Copy link

redserpent7 commented Feb 2, 2016

Hi,

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.

@jonhare

This comment has been minimized.

Copy link
Member

jonhare commented Feb 2, 2016

In the original MSR paper I think they just applied directions one after the other.

@redserpent7

This comment has been minimized.

Copy link
Author

redserpent7 commented Feb 2, 2016

@jonhare This works if I only need to highlight the text areas of an image. What I am looking for however is a way to create an image that only has the text from the input image. Not sure how or if such a thing is possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.