This change fixes the symptom (crashing with an exception) but not the problem (failing to find a vertical segmentation). For us, the fix to the latter problem was cropping the image so that the gutter and facing page are totally removed. At any rate, I think this change is an improvement so I'm making this PR.
This change fixes the symptom (crashing with an exception) but not the problem (failing to find a vertical segmentation). For us, the fix to the latter problem was cropping the image so that the gutter and facing page are totally removed. At any rate, I think this change is an improvement so I'm making this PR.