eriq-augustine / jocr

Japanese OCR
GNU General Public License v2.0
9 stars 5 forks source link

Blob.collapseBorderPoints() #11

Open eriq-augustine opened 11 years ago

eriq-augustine commented 11 years ago

There are some cases that are very hard to distinguish between.

This is because horizontal lines (which may not be just on the top or bottom) generate a border point for every point on the horizontal. This becomes problematic when ranges are brought into the picture.

Should the range be extended from the horizontal set to the single point on the other size?

Ex: [45, 46, 47, 112] Does it go from 45 - 112 ? 45 - 47, 112 ?

Not to mention, that this does not handle multiple range cases without horizontals like: [45, 66, 77, 88]. This could be: 45 - 66, 77 - 88 or 45, 66 - 77, 88

This method needs more support from getOutline().