kiniry / straightener

Automatically exported from code.google.com/p/straightener
2 stars 0 forks source link

Truncating left/right side of ballot #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Example 1 (truncation):
$ python straightener.py test1.tif
Actual results: test1-unrotated.tif has timing marks on left and right sides 
cropped.
Expected results: nothing was cropped.

Example 2 (no truncation):
$ python straightener.py test2.tif
Actual results: test2-unrotated.tif is same as test2.tif, with nothing cropped
This is as I expected.

What is the intended behavior?  Why is this inconsistent across the two images? 
 Seems like test2.tif is handled correctly, and handling of test1.tif is a bug: 
what do you think?

Original issue reported on code.google.com by goo...@web.dwdw.me on 10 Feb 2012 at 8:47

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed for the example you've provided (not sure about the general case). The 
final cropping step was something I put in at the last minute and it's 
extremely naive, so I would expect some issues to surface.

Original comment by imotyas...@berkeley.edu on 10 Feb 2012 at 9:55