I tried rotating the original image to get the lines straight but after -canny i get pretty much the same result.
I will have a look at connected-components.
Thank you.
Search found 6 matches
- 2015-04-23T13:13:39-07:00
- Forum: Users
- Topic: Remove horizontal and vertical white lines on black background
- Replies: 9
- Views: 4472
- 2015-04-23T08:08:30-07:00
- Forum: Users
- Topic: Remove horizontal and vertical white lines on black background
- Replies: 9
- Views: 4472
Re: Remove horizontal and vertical white lines on black background
This is an example after running this command on source: convert source -sharpen 0x3 -colorspace Gray -canny 0x1+10%+25% -morphology Thinning "1x14: 1,1,1,1,1,1,1,1,1,1,1,1,1,1" -morphology Thinning "14x3: 0,0,0,0,0,0,0,0,0,0,0,0,0,0 1,1,1,1,1,1,1,1,1,1,1,1,1,1 0,0,0,0,0,0,0,0,0,0,0,0,0,0 ...
- 2015-04-23T07:53:51-07:00
- Forum: Users
- Topic: Remove horizontal and vertical white lines on black background
- Replies: 9
- Views: 4472
Re: Remove horizontal and vertical white lines on black background
try this -- change all colors within 20% of white to black convert 2131wjq.jpg -fill black -fuzz 20% -opaque white result.jpg This will generate a black image. The source is black and white and all I want is to remove lines. Inside that grid I have text which is also white (result of -canny). I don ...
- 2015-04-23T06:20:39-07:00
- Forum: Users
- Topic: Remove horizontal and vertical white lines on black background
- Replies: 9
- Views: 4472
Re: Remove horizontal and vertical white lines on black background
Yes, replace white with black. All lines are 1px thick.
- 2015-04-23T03:29:17-07:00
- Forum: Users
- Topic: Remove horizontal and vertical white lines on black background
- Replies: 9
- Views: 4472
Re: Remove horizontal and vertical white lines on black background
I forgot to mention that I'm using ImageMagick-nox11-6.9.0.4,1 on unix.
- 2015-04-23T03:26:37-07:00
- Forum: Users
- Topic: Remove horizontal and vertical white lines on black background
- Replies: 9
- Views: 4472
Remove horizontal and vertical white lines on black background
Hello guys, This is my first post. I need to remove H and V white lines with black background. The result is a grid generated using -canny 0x1+10%+25%. The main problem is that the grid is slightly leaning: http://i60.tinypic.com/2131wjq.jpg I have tried with: convert source.jpg -morphology Thinning ...