Search found 5 matches

by pkz
2016-12-27T02:12:53-07:00
Forum: Users
Topic: Removing corners from scanned cards
Replies: 10
Views: 6751

Re: Removing corners from scanned cards

Thank you again. Will definitiely look into that.
by pkz
2016-12-26T14:44:44-07:00
Forum: Users
Topic: Removing corners from scanned cards
Replies: 10
Views: 6751

Re: Removing corners from scanned cards

Thank you! Total cleanup script will look something like this. Hole will be floodfilled as well. This script will hopefully reduce a lot of garbage from Tesseract OCR. # coordinates for hole fill hole_x=`convert $1 -format "%[fx:50*w/100]" info:` hole_y=`convert $1 -format "%[fx:88*h/100]" info ...
by pkz
2016-12-26T07:55:49-07:00
Forum: Users
Topic: Removing corners from scanned cards
Replies: 10
Views: 6751

Re: Removing corners from scanned cards

After the area is filled, is there a simple way to shave off e.g. 2px or so to clean the darker part of the remaining paper edge? I guess one option would be to trace the contour and try to add an inset border some way (preferably a few pixels wide with gradually diminishing transparency).
by pkz
2016-12-26T03:32:56-07:00
Forum: Users
Topic: Removing corners from scanned cards
Replies: 10
Views: 6751

Re: Removing corners from scanned cards

Thank you! The fuzzy fill works very well. If I add a black 10px border around the image first it will touch all black areas (corners, skew gaps etc) and the fill will work for many scenarios. convert mypic.jpg \ -bordercolor black -border 10x10 \ -fuzz 30% -fill white -draw "color 5,5 floodfill ...
by pkz
2016-12-25T08:43:50-07:00
Forum: Users
Topic: Removing corners from scanned cards
Replies: 10
Views: 6751

Removing corners from scanned cards

Hi! I'm looking at preprocessing scanned catalog cards before doing OCR. To reduce OCR noise I want to remove the top right and left black area (the rounded corners). They differ in size and sometimes additional dark areas appear from misaligned cards (se first image below top left and bottom right ...