Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to detect straight lines in an image and clean them up?

I'm just starting to look into OpenCV, so I have completely 100% zero experience yet. However, what I need to do, is remove straight lines from an image. Here is an example I made in Photoshop:

image description

I assume a mask should be generated and then somehow applied. Any tips, ideas or solutions?

Preferring solutions in Java, but will truly appreciate any language.