kiniry / straightener

Automatically exported from code.google.com/p/straightener

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Truncating left/right side of ballot

GoogleCodeExporter opened this issue · comments

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:

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

  • Changed state: Started
  • Added labels: ****
  • Removed labels: ****